freebsd-skq/sys/dev/sdhci
Ian Lepore e64f01a94a Add timeout logic to sdhci, separate from the timeouts done by the hardware.
If the hardware is not in a good state (like maybe clocks aren't running
because of a configuration glitch) its timeout clock may also not work
correctly, and the next command sent will hang that thread forever.  The
thread in question is usually the one and only thread (at init time) or
a bio queue worker thread whose lockup will eventually lead to the whole
system locking up when it runs out of buffers.

No sd card command should take longer than 250ms.  This new code establishes
a 1-second timeout to allow plenty of safety margin over that.
2014-02-15 20:45:53 +00:00
..
sdhci_fdt.c Follow r261352 by updating all drivers which are children of simplebus 2014-02-02 19:17:28 +00:00
sdhci_if.m Add hooks for plugging platform-provided transfer backend. 2013-02-28 19:43:14 +00:00
sdhci_pci.c Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on device_method_t arrays 2013-01-30 18:01:20 +00:00
sdhci.c Add timeout logic to sdhci, separate from the timeouts done by the hardware. 2014-02-15 20:45:53 +00:00
sdhci.h Add timeout logic to sdhci, separate from the timeouts done by the hardware. 2014-02-15 20:45:53 +00:00