View Single Post
Posts: 14 | Thanked: 69 times | Joined on Jan 2015 @ New Zealand
#2
Since noone else has answered, ..

Access to the SD card is blocked in that situation by the omap_hsmmc kernel module, which seems weird being non-configurable. Luckily it's a software limitation and not a hardware one, so it can be fixed by replacing that module ..

I've got it to work in a newer kernel by modifying a single line in mmc/host/omap_hsmmc.c:
Code:
        int ret;
 
        if (gpio_is_valid(pdata->slots[0].switch_pin)) {
-               if (pdata->slots[0].cover)
+               if (0 && pdata->slots[0].cover)
                        pdata->slots[0].get_cover_state =
                                        omap_hsmmc_get_cover_state;
                else
If you or someone else can just rebuild the module for your kernel with that modification it'll probably work. I might try it later, since removing access to the SD card while the cover is off is annoying for me anyway.
 

The Following 11 Users Say Thank You to Maxdamantus For This Useful Post: