Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mmc/bcm2835-sdhost: Recover from MMC_SEND_EXT_CSD
If the user issues an "mmc extcsd read", the SD controller receives what it thinks is a SEND_IF_COND command with an unexpected data block. The resulting operations leave the FSM stuck in READWAIT, a state which persists until the MMC framework resets the controller, by which point the root filesystem is likely to have been unmounted. A less heavyweight solution is to detect the condition and nudge the FSM by asserting the (self-clearing) FORCE_DATA_MODE bit. N.B. This workaround was essentially discovered by accident and without a full understanding the inner workings of the controller, so it is fortunate that the "fix" only modifies error paths. See: raspberrypi/linux#2728 Signed-off-by: Phil Elwell <phil@raspberrypi.org> Signed-off-by: ahmedradaideh <ahmed.radaideh@gmail.com>
- Loading branch information