Skip to content
Snippets Groups Projects
Commit 25c719e2 authored by Grazvydas Ignotas's avatar Grazvydas Ignotas Committed by Andy Fleming
Browse files

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: default avatarGrazvydas Ignotas <notasas@gmail.com>
Tested-by: default avatarTom Rini <trini@ti.com>
Tested-by: default avatarPali Rohár <pali.rohar@gmail.com>
parent 15ceb1de
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment