- Some configuration (e.g. HP EliteBook 840 G3) have a dummy plastic inn the card reader
which is detected as a valid SD card. This introduce long timeout at boot time.
I introduce a reduce timeout (1 second) during the setup phase to alleviate this problem.
(ref. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255130)
- Some configuration crash at boot if rtsx is defined in the kernel config.
See mail http://docs.freebsd.org/cgi/mid.cgi?a7363387-c53f-d6c0-acc0-be9081590ea1
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 quater of a second before checking the card
presence during driver attach.
- As advised by Adrian Chadd
(https://github.com/hlh-restart/rtsx/commit/253afb67c3b04c2520cf5a04c621e5028a420863#commitcomment-50869179)
I setup taskqueue and dma sooner during the driver attach.
- I add a heutistic to try to detect configuration needing inversion.