OSDN Git Service

mmc_spi: add a status check for spi_sync_locked
authorKangjie Lu <kjlu@umn.edu>
Mon, 11 Mar 2019 05:53:33 +0000 (00:53 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2019 10:24:00 +0000 (12:24 +0200)
commit8b0e6af16ae690e3f497a91def4d52cd72c66fc3
tree0b30a14ae0f4ab6ef18792f7cb2329eb9a3ed87c
parenta30e90a8eb3ac873754a5873284d34216cbda2ab
mmc_spi: add a status check for spi_sync_locked

[ Upstream commit 611025983b7976df0183390a63a2166411d177f1 ]

In case spi_sync_locked fails, the fix reports the error and
returns the error code upstream.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/mmc_spi.c