Skip to content

mmc: Lenovo N22 Braswell SD slot fixes

Nelson Johnson linux-mmc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mmc: sdhci-pci: disable aggressive runtime PM for Braswell SD on Lenovo N22drivers/mmc/host/sdhci-pci-core.c+17 -31 reply
2/3mmc: sdhci-pci: force polling card detect for Braswell SD on Lenovo N22drivers/mmc/host/sdhci-pci-core.c+11 -20 replies
3/3mmc: sdhci-acpi: exclude INT33BB:00 from ACPI binding on Lenovo N22drivers/mmc/host/sdhci-acpi.c+10 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] mmc: Lenovo N22 Braswell SD slot fixes

This series fixes the long-broken SD slot on the Lenovo N22 (Model 80S6 / MTM 80S60001US) with Intel Celeron N3050 Braswell hardware running Debian 13 and Linux 6.19.6.

The regression goes back to kernel 4.14. The Braswell SD controller (PCI ID 8086:2296) is exposed by firmware through both PCI 0000:00:12.0 and ACPI INT33BB:00 at \_SB_.PCI0.SDHB.

On this machine the newer runtime PM and card-detect handling no longer works reliably, and the ACPI path permanently defers because its dependency never becomes available. That leaves the slot unusable unless the controller is forced back onto the working PCI path with machine-specific quirks.

This series does three things, all scoped to the Lenovo N22 DMI match:

1. Disable the aggressive runtime PM/card-detect wake path for the Braswell PCI SD controller.
2. Bypass the broken firmware card-detect GPIO path and use polling for card insertion detection.
3. Prevent the competing ACPI INT33BB:00 node from binding on this machine so the PCI SDHCI driver can own the controller.

With these changes applied, the SD slot binds through sdhci-pci and detects and mounts SD cards again on the Lenovo N22.

Tested on:
Lenovo N22 Model 80S6 / MTM 80S60001US
Intel Celeron N3050 (Braswell)
Debian 13
Linux 6.19.6

Nelson Johnson (3):
mmc: sdhci-pci: disable aggressive runtime PM for Braswell SD on
Lenovo N22
mmc: sdhci-pci: force polling card detect for Braswell SD on Lenovo

    N22

mmc: sdhci-acpi: exclude INT33BB:00 from ACPI binding on Lenovo N22

 drivers/mmc/host/sdhci-acpi.c     | 10 ++++++++++
 drivers/mmc/host/sdhci-pci-core.c | 33 ++++++++++++++++++++++++++-----
 2 files changed, 38 insertions(+), 5 deletions(-)
Signature · 1 line
2.47.3