- 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.
Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 39502 Build 36391: arc lint + arc unit
Event Timeline
sys/dev/rtsx/rtsx.c | ||
---|---|---|
3648 | I use this order to have timeout1 before timeout2 in If this seems not appropriate I will switch them. |
On Mon, Jun 7 the port sysutils/rtsx-kmod has been updated to this version.
For now no problem has been encountered.
Oups... previous commit message should have been:
Add two new XPT for MMC (see commit af2253f61c43 on sdhci.c)
sys/dev/rtsx/rtsx.c | ||
---|---|---|
3648 | So, you did it to make it easier to read from user point of view? If so, please rename them to something more descriptive, e.g., timeout_io, timeout_cmd. |
sys/dev/rtsx/rtsx.c | ||
---|---|---|
3761 | This panic is fixed by commit d5341d72a11be200e536ac7d8967449a3f521792, I believe. The delay should not be necessary anymore. |
sys/dev/rtsx/rtsx.c | ||
---|---|---|
3761 |
@hlh_restart.be, please confirm. I'll revert this one when you do. |
sys/dev/rtsx/rtsx.c | ||
---|---|---|
3761 | 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. |