summaryrefslogtreecommitdiff
path: root/include/linux/errqueue.h
diff options
context:
space:
mode:
authorTalel Shenhar <tatias@codeaurora.org>2015-02-11 12:58:16 +0200
committerSubhash Jadavani <subhashj@codeaurora.org>2016-05-31 15:26:10 -0700
commitd3254ba7a0f2956dd9da87d575ad83a8b9914b15 (patch)
tree8d0ee6cccc907b0885958da8a8ef75fcb9af38ee /include/linux/errqueue.h
parent4f32644877e95bbd76894683fced2ef601a76eae (diff)
mmc: block: handle flush request timeout
In case of a flush request timeout, an error is returned to the block layer. The problem with this is that the eMMC card is left in programming state and while the device is in the programming state it cannot serve any request. This commit moves the card out of the programming state, in case of timeout, by issuing HPI, thereby allowing the device to continue serving requests. Some filesystems, such as EXT4, remount the partition as read-only after receiving an error from the block layer, thus this change will allow the remounted partition to work as the card can serve read request thanks to the HPI. In case where the card doesn't even respond to HPI it cannot serve any request, thereby, this commit reset the card in such catastrophic cases. Change-Id: Idbca6ff3a420a954c61cf4fb79c9094542888d89 Signed-off-by: Talel Shenhar <tatias@codeaurora.org>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions