projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
HID: usbhid: Fix flood of "control queue full" messages
[linux-2.6-microblaze.git]
/
drivers
/
spi
/
spi-uniphier.c
diff --git
a/drivers/spi/spi-uniphier.c
b/drivers/spi/spi-uniphier.c
index
6a9ef8e
..
8900e51
100644
(file)
--- a/
drivers/spi/spi-uniphier.c
+++ b/
drivers/spi/spi-uniphier.c
@@
-142,7
+142,7
@@
static void uniphier_spi_set_mode(struct spi_device *spi)
* FSTRT start frame timing
* 0: rising edge of clock, 1: falling edge of clock
*/
* FSTRT start frame timing
* 0: rising edge of clock, 1: falling edge of clock
*/
- switch (spi->mode &
(SPI_CPOL | SPI_CPHA)
) {
+ switch (spi->mode &
SPI_MODE_X_MASK
) {
case SPI_MODE_0:
/* CKPHS=1, CKINIT=0, CKDLY=1, FSTRT=0 */
val1 = SSI_CKS_CKPHS | SSI_CKS_CKDLY;
case SPI_MODE_0:
/* CKPHS=1, CKINIT=0, CKDLY=1, FSTRT=0 */
val1 = SSI_CKS_CKPHS | SSI_CKS_CKDLY;