You are not logged in.

#1 2021-08-04 01:10:23

NinCollin
Member
Registered: 2021-06-28
Posts: 3

Internal SD card slot not destroying/creating block devices correctly

I have a Lenovo Legion 5 with an internal SD card slot. When I put an SD card into the internal slot *before* booting, /dev is populated with mmcblk0 (and any respective partitions.) However, after removing the SD card, the block devices remain for several minutes. Inserting another SD card does not update block devices immediately; in fact, inserting or removing an SD card causes a huge delay before block devices update. If booting without an SD card inserted, block devices are not created at all. This issue is not present on Winblows, so the card reader is fine.

When the block devices finally do update, the cards work, so I have not clue where to start troubleshooting.

Here's the info about the card reader from  lspci -v

08:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
	Subsystem: Lenovo Device 380a
	Flags: bus master, fast devsel, latency 0, IRQ 140
	Memory at c2200000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Device Serial Number 00-00-00-01-00-4c-e0-00
	Capabilities: [150] Latency Tolerance Reporting
	Capabilities: [158] L1 PM Substates
	Kernel driver in use: rtsx_pci

Here's the output of dmesg | grep mmc
Notice the ~600 second delay before the change in SD cards is detected

[  652.535824] mmc0: card 59b4 removed
[ 1371.633752] mmc0: cannot verify signal voltage switch
[ 1371.764047] mmc0: new ultra high speed SDR50 SDHC card at address e624
[ 1371.764638] mmcblk0: mmc0:e624 SU16G 14.8 GiB 
[ 1371.772451]  mmcblk0: p1

Edit:
If I remove the rtsx_pci_sdmmc module with modprobe, then load it again, /dev/mmcblk0 is correctly removed/detected. There seems to be some issue with this module not being able to automatically detect changes?

Last edited by NinCollin (2021-08-04 02:47:43)

Offline

Board footer

Powered by FluxBB