]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmc: bcm2835: reset host on timeout
authorMichal Suchanek <msuchanek@suse.de>
Sun, 11 Nov 2018 20:23:53 +0000 (21:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:46:04 +0000 (19:46 +0100)
commitf569566a1f61bfc1452091863a2fed40e1aa344a
tree1723e3162a6ca3cb6f5b6290c01f0b08ab8b2e40
parentb84daf000ce9cf99fe97ef80e959eaf628088e71
mmc: bcm2835: reset host on timeout

[ Upstream commit f6000a4eb34e6462bc0dd39809c1bb99f9633269 ]

The bcm2835 mmc host tends to lock up for unknown reason so reset it on
timeout. The upper mmc block layer tries retransimitting with single
blocks which tends to work out after a long wait.

This is better than giving up and leaving the machine broken for no
obvious reason.

Fixes: 660fc733bd74 ("mmc: bcm2835: Add new driver for the sdhost controller.")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/bcm2835.c