From: Huibin Hong Date: Wed, 12 Jul 2017 02:22:18 +0000 (+0800) Subject: spi: rockchip: rockchip_spi_prepare_dma return 1 if it is ok X-Git-Tag: release-20171130_firefly~4^2~242 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0e366d11fe4e7d53543de2e52fd9f44f908effea;p=firefly-linux-kernel-4.4.55.git spi: rockchip: rockchip_spi_prepare_dma return 1 if it is ok If rockchip_spi_prepare_dma return 0, spi_transfer_one_message won't wait for the dma complete event. Which may cause unknown error. Change-Id: Idf51a737bbd9fa9b9d1ae749636fe524de1cbfa9 Signed-off-by: Huibin Hong --- diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 42c8fcd82758..573b8a4b4cc9 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c @@ -499,7 +499,7 @@ static int rockchip_spi_prepare_dma(struct rockchip_spi *rs) dma_async_issue_pending(rs->dma_tx.ch); } - return 0; + return 1; } static void rockchip_spi_config(struct rockchip_spi *rs)