Grazvydas Ignotas 25c719e2c3 mmc: omap: handle controller errors properly
According to OMAP3 TRM, when the controller reports certain errors,
driver must perform a software reset. This is done by setting a bit
in SYSCTL and waiting it to clear:
- SRC on command timeout (CTO)
- SRD on data errors (DTO, DCRC and DEB)

This fixes a problem seen on OMAP3 pandora board with some cards
that won't work with a message printed multiple times:
  timedout waiting on cmd inhibit to clear

Code loosely based on Linux omap_hsmmc driver.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Tested-by: Tom Rini <trini@ti.com>
Tested-by: Pali Rohár <pali.rohar@gmail.com>
2012-05-08 18:02:22 -05:00
..
2012-01-08 21:28:27 -06:00
2012-01-08 21:28:28 -06:00
2012-01-08 21:28:27 -06:00
2012-03-13 12:06:42 +01:00
2012-01-08 21:28:27 -06:00
2012-02-12 10:11:26 +01:00
2012-01-08 21:28:27 -06:00
2012-01-08 21:28:27 -06:00
2012-01-08 21:28:27 -06:00
2012-01-08 21:28:27 -06:00