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

Bug#808044: linux-image-4.3.0-1-amd64: Braswell NUC SD card reader needs Cherryview PINCTRL module



Package: src:linux
Version: 4.3.1-1
Severity: important

Dear Maintainer,

The built-in SD card reader of the Intel Braswell NUC5PPYH
doesn't work under Debian Unstable running the latest
Linux 4.3 kernel.  The card reader, however, works with
Ubuntu 15.10, which runs an older Linux 4.2 kernel.

Below is a comparison between the relevant portions of the
Debian Unstable and Ubuntu 15.10 (Wily Werewolf) kernel
configuration files. The key difference is the presence
of the CONFIG_PINCTRL_CHERRYVIEW=m option in the Ubuntu
kernel config.

$ grep -i pinctrl /boot/config-4.3.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=y
# 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

A comparison between the dmesg output for Debian Unstable
and Ubuntu (15.10) shows the problem clearly ("failed to
setup card detect gpio").

$ dmesg | grep -i sdhci #Debian Unstable
[    1.288201] sdhci: Secure Digital Host Controller Interface driver
[    1.288208] sdhci: Copyright(c) Pierre Ossman
[    1.317111] sdhci-pci 0000:00:12.0: SDHCI controller found [8086:2296] (rev 21)
[    1.317295] sdhci-pci 0000:00:12.0: failed to setup card detect gpio
[    1.318814] sdhci-pci 0000:00:12.0: No vmmc regulator found
[    1.318823] sdhci-pci 0000:00:12.0: No vqmmc regulator found
[    1.324453] 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

Under Ubuntu 15.10, the pinctrl_cherryview module is loaded
automatically during system startup:

$ lsmod | grep -Ei 'sdhci|pinctrl' #Debian Unstable
sdhci_pci              24576  0
sdhci_acpi             16384  0
sdhci                  40960  2 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

$ 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)

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing'), (90, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

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

Versions of packages linux-image-4.3.0-1-amd64 recommends:
ii  firmware-linux-free  3.4

Versions of packages linux-image-4.3.0-1-amd64 is related to:
ii  firmware-iwlwifi                         20151207-1
ii  firmware-linux                           20151207-1
ii  firmware-linux-nonfree                   20151207-1
ii  firmware-misc-nonfree [firmware-ralink]  20151207-1
ii  firmware-realtek                         20151207-1

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

Reply to: