Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4b37370b authored by Sarthak Garg's avatar Sarthak Garg Committed by Gerrit - the friendly Code Review server
Browse files

mmc: sdhci-msm: Fix mmc card stuck issue for sanitize cmd



Sanitize uses R1b response type which converts to R1 if busy
timeout for a request is greater than the host's max_bus_timeout which
happens in most of the R1b commands like flush/erase. In such cases the
present state register cannot be used to check for card status based on
DAT0 line status, as it always remains low.

Fix this issue by setting host's max busy timeout as zero so that every
busy command follows R1b path, which uses the interrupt mechanism depending
on the controller capability MMC_CAP_WAIT_WHILE_BUSY. In addition, the
quirk SDHCI_QUIRK2_IGNORE_DATATOUT_FOR_R1BCMD is also present to allow
controller to wait for busy state to complete without triggering the
data timeout interrupt.

Change-Id: I0ba98ac2f4e42f8184be2407b8f0f9b4ded552b9
Signed-off-by: default avatarSarthak Garg <sartgarg@codeaurora.org>
parent 7c4e883e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment