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>
Fri, 31 May 2019 13:47:27 +0000 (06:47 -0700)
commitb5128b96309a4c7dd44f15b7ad74a5614f3c520b
tree606e16e2c9fa4346779adafc575ff4447fc6d4aa
parentb3ba0c83cd23be8b9ae31d7875da40ca460c2a36
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