projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d40559
)
spi: rockchip: rockchip_spi_prepare_dma return 1 if it is ok
author
Huibin Hong
<huibin.hong@rock-chips.com>
Wed, 12 Jul 2017 02:22:18 +0000
(10:22 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Wed, 12 Jul 2017 06:38:09 +0000
(14:38 +0800)
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 <huibin.hong@rock-chips.com>
drivers/spi/spi-rockchip.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-rockchip.c
b/drivers/spi/spi-rockchip.c
index 42c8fcd82758d9b08864b975aeae3021b1c3c48e..573b8a4b4cc9bcd9033a9591e521737a8885f2e7 100644
(file)
--- 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)