projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bd6bf0
)
spi: sh-msiof: Fix DMA transfer size check
author
Hiromitsu Yamasaki
<
[email protected]
>
Thu, 2 Nov 2017 09:32:36 +0000
(10:32 +0100)
committer
Mark Brown
<
[email protected]
>
Thu, 2 Nov 2017 11:25:44 +0000
(11:25 +0000)
DMA supports 32-bit words only,
even if BITLEN1 of SITMDR2 register is 16bit.
Fixes: b0d0ce8b6b91 ("spi: sh-msiof: Add DMA support")
Signed-off-by: Hiromitsu Yamasaki <
[email protected]
>
Signed-off-by: Simon Horman <
[email protected]
>
Acked-by: Geert Uytterhoeven <
[email protected]
>
Acked-by: Dirk Behme <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
drivers/spi/spi-sh-msiof.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-sh-msiof.c
b/drivers/spi/spi-sh-msiof.c
index 0eb1e95834854fb658806b1aaefc19fb7bec69b3..837bb95eea623ff7dbdaf68d22c7ed9468b1ce7f 100644
(file)
--- a/
drivers/spi/spi-sh-msiof.c
+++ b/
drivers/spi/spi-sh-msiof.c
@@
-900,7
+900,7
@@
static int sh_msiof_transfer_one(struct spi_master *master,
break;
copy32 = copy_bswap32;
} else if (bits <= 16) {
- if (l &
1
)
+ if (l &
3
)
break;
copy32 = copy_wswap32;
} else {