Problems during coldplugging of mmc/sdio

Gertjan de Back Gertjan.de.Back at irextechnologies.com
Thu Mar 26 02:36:04 PDT 2009


Hello all,

I've been struggling to get the sdio-based wifi device in my system
(AR6000, iMX31, Linux 2.6.24) to be recognized correctly.

Tracing the verbose hald output, I found that the problem is in scanning
order of coldplugging. HAL first scans /sys/bus and finds the MMC card
and SDIO interface which drives the wifi device. However, it does not
add the devices as their parent, the MMC host), is not added until the
/sys/class devices are scanned.

To work around this issue I changed coldplug.c to have HAL rescan the
MMC and SDIO busses after it has scanned /sys/classes. I found that the
same hack is used to rescan for Bluetooth devices.

While I have a working solution now, I wonder if there are ways to go
about this without hacking HAL. 

- Gertjan


More information about the hal mailing list