- Some configuration (e.g. HP EliteBook 840 G3) have a dummy plastic in the card reader which is detected as a valid SD card. This induce long timeout at boot time. I introduce a reduce timeout (1 second) during the setup phase to alleviate this problem. (ref. bug 255130)
- Some configuration crash at boot if rtsx is defined in the kernel config. See this mail. At boot time, without a card inserted, the driver found that a card is present and just after that a "spontaneous" interrupt is generated showing that no card is present. To solve this I set the DELAY() to one quarter of a second before checking the card presence during driver attach.
- As advised by Adrian Chadd I setup taskqueue and dma sooner during the driver attach.
- I add a heuristic to try to detect configuration needing inversion.
I use this order to have timeout1 before timeout2 in
If this seems not appropriate I will switch them.
I never encounter this panic on my development/test configuration (acer with RTL8411B) so I can't test if everything is OK with delay(500).
This delay is only during attach so I think it make no harm to keep it like this.