[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#803899: linux-image-4.2.0-1-amd64: Intel NUC built-in SD card reader requires PINCTRL module support



Package: src:linux
Version: 4.2.5-1
Severity: normal

Dear Maintainer,

(Resending bug report because the Debian BTS appears to
have dropped my previous message from another account.
Sorry if this is a dupe.)

The built-in SDHC card reader on my Intel 5th Generation
Braswell NUC (NUC5PPYH) doesn't work under Debian Unstable
running Linux kernel 4.2. The card reader, however, works
fine under an Ubuntu 15.10 live USB session, which runs
a differently configured Linux 4.2 kernel.

Below is a comparison between the runtime kernel
messages and kernel configuration for both Debian Unstable
and Ubuntu 15.10 (Wily Werewolf).

The important difference between the Debian and Ubuntu
kernels with regard my problem is the enabling of several
PINCTRL options in the Ubuntu kernel config.

Comparison between the relevant parts of dmesg output for
Debian Unstable and Ubuntu Wily Werewolf (15.10):

$ dmesg | grep -i sdhci #Debian Unstable
[    1.237764] sdhci: Secure Digital Host Controller Interface driver
[    1.237770] sdhci: Copyright(c) Pierre Ossman
[ 1.263087] sdhci-pci 0000:00:12.0: SDHCI controller found [8086:2296] (rev 21)
[    1.263442] sdhci-pci 0000:00:12.0: failed to setup card detect gpio
[    1.264537] sdhci-pci 0000:00:12.0: No vmmc regulator found
[    1.264543] sdhci-pci 0000:00:12.0: No vqmmc regulator found
[    1.268300] mmc0: SDHCI controller on PCI [0000:00:12.0] using ADMA

$ dmesg | grep -i sdhci #Ubuntu 15.10
[   11.433662] sdhci: Secure Digital Host Controller Interface driver
[   11.433666] sdhci: Copyright(c) Pierre Ossman
[ 11.472483] sdhci-pci 0000:00:12.0: SDHCI controller found [8086:2296] (rev 21)
[   11.473841] sdhci-pci 0000:00:12.0: No vmmc regulator found
[   11.473845] sdhci-pci 0000:00:12.0: No vqmmc regulator found
[   11.477273] mmc0: SDHCI controller on PCI [0000:00:12.0] using ADMA

Proof that the pinctrl driver can be compiled as a module:

$ lsmod | grep -Ei 'sdhci|pinctrl' #Debian Unstable
sdhci_pci              24576  0
sdhci_acpi             16384  0
sdhci                  40960  2 sdhci_acpi,sdhci_pci
mmc_core              126976  3 sdhci,sdhci_acpi,sdhci_pci

$ lsmod | grep -Ei 'sdhci|pinctrl' #Ubuntu 15.10
sdhci_pci              24576  0
sdhci_acpi             16384  0
sdhci                  45056  2 sdhci_acpi,sdhci_pci
pinctrl_cherryview     32768  2

Comparison between relevant portions of Debian and Ubuntu
kernel configs:

$ grep -i pinctrl /boot/config-4.2.0-1-amd64 #Debian Unstable
# CONFIG_I2C_MUX_PINCTRL is not set
CONFIG_PINCTRL=y
# CONFIG_DEBUG_PINCTRL is not set
# CONFIG_PINCTRL_AMD is not set
# CONFIG_PINCTRL_BAYTRAIL is not set
# CONFIG_PINCTRL_CHERRYVIEW is not set
# CONFIG_PINCTRL_SUNRISEPOINT is not set

$ grep -i pinctrl /boot/config-4.2.0-16-generic #Ubuntu 15.10
CONFIG_I2C_MUX_PINCTRL=m
CONFIG_PINCTRL=y
# CONFIG_DEBUG_PINCTRL is not set
CONFIG_PINCTRL_AMD=y
CONFIG_PINCTRL_BAYTRAIL=y
CONFIG_PINCTRL_CHERRYVIEW=m
CONFIG_PINCTRL_INTEL=m
CONFIG_PINCTRL_SUNRISEPOINT=m

$ lspci #Debian Unstable
00:00.0 Host bridge: Intel Corporation Device 2280 (rev 21)
00:02.0 VGA compatible controller: Intel Corporation Device 22b1 (rev 21)
00:12.0 SD Host controller: Intel Corporation Device 2296 (rev 21)
00:13.0 SATA controller: Intel Corporation Device 22a3 (rev 21)
00:14.0 USB controller: Intel Corporation Device 22b5 (rev 21)
00:18.0 DMA controller: Intel Corporation Device 22c0 (rev 21)
00:18.6 Serial bus controller [0c80]: Intel Corporation Device 22c6 (rev 21) 00:18.7 Serial bus controller [0c80]: Intel Corporation Device 22c7 (rev 21)
00:1a.0 Encryption controller: Intel Corporation Device 2298 (rev 21)
00:1b.0 Audio device: Intel Corporation Device 2284 (rev 21)
00:1c.0 PCI bridge: Intel Corporation Device 22c8 (rev 21)
00:1c.1 PCI bridge: Intel Corporation Device 22ca (rev 21)
00:1c.2 PCI bridge: Intel Corporation Device 22cc (rev 21)
00:1f.0 ISA bridge: Intel Corporation Device 229c (rev 21)
00:1f.3 SMBus: Intel Corporation Device 2292 (rev 21)
02:00.0 Network controller: Intel Corporation Wireless 3165 (rev 81)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

-- Package-specific info:
** Version:
Linux version 4.2.0-1-amd64 (debian-kernel@lists.debian.org) (gcc version 4.9.3 (Debian 4.9.3-5) ) #1 SMP Debian 4.2.5-1 (2015-10-27)

** Command line:
BOOT_IMAGE=/boot/vmlinuz-4.2.0-1-amd64 root=UUID=[XXX] ro quiet

** Not tainted

** Model information
bios_vendor: Intel Corp.
bios_version: PYBSWCEL.86A.0044.2015.0925.1143
board_vendor: Intel Corporation
board_name: NUC5PPYB
board_version: H76558-102

-- System Information:

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)

Versions of packages linux-image-4.2.0-1-amd64 depends on:
ii  debconf [debconf-2.0]                   1.5.57
ii  initramfs-tools [linux-initramfs-tool]  0.120
ii  kmod                                    21-1
ii  linux-base                              4.0

Versions of packages linux-image-4.2.0-1-amd64 recommends:
ii  firmware-linux-free  3.4
pn  irqbalance           <none>

Versions of packages linux-image-4.2.0-1-amd64 suggests:
pn  debian-kernel-handbook         <none>
pn  grub-pc | grub-efi | extlinux  <none>
pn  linux-doc-4.2                  <none>

Versions of packages linux-image-4.2.0-1-amd64 is related to:
pn  firmware-atheros                         <none>
pn  firmware-bnx2                            <none>
pn  firmware-bnx2x                           <none>
pn  firmware-brcm80211                       <none>
pn  firmware-intelwimax                      <none>
pn  firmware-ipw2x00                         <none>
pn  firmware-ivtv                            <none>
ii  firmware-iwlwifi                         20151018-2
pn  firmware-libertas                        <none>
ii  firmware-linux                           20151018-2
ii  firmware-linux-nonfree                   20151018-2
ii  firmware-misc-nonfree [firmware-ralink]  20151018-2
pn  firmware-myricom                         <none>
pn  firmware-netxen                          <none>
pn  firmware-qlogic                          <none>
ii  firmware-realtek                         20151018-2
pn  xen-hypervisor                           <none>

-- debconf information:
linux-image-4.2.0-1-amd64/postinst/depmod-error-initrd-4.2.0-1-amd64: false
  linux-image-4.2.0-1-amd64/postinst/mips-initrd-4.2.0-1-amd64:
linux-image-4.2.0-1-amd64/prerm/removing-running-kernel-4.2.0-1-amd64: true


Reply to: