Linux SPI subsystem development
 help / color / mirror / Atom feed
* [PATCH] spi: sh-msiof: fix MDR1_FLD_MASK value
@ 2015-01-06 10:01 Yoshihiro Shimoda
  2015-01-06 10:22 ` Geert Uytterhoeven
  2015-01-06 10:47 ` Geert Uytterhoeven
  0 siblings, 2 replies; 6+ messages in thread
From: Yoshihiro Shimoda @ 2015-01-06 10:01 UTC (permalink / raw)
  To: broonie; +Cc: linux-spi, linux-sh, Yoshihiro Shimoda

Since the FLD bit field is bit[3:2], the MDR1_FLD_MASK value should
be 0x0000000c.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 drivers/spi/spi-sh-msiof.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index 96a5fc0..3ab7a21 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -82,7 +82,7 @@ struct sh_msiof_spi_priv {
 #define MDR1_SYNCMD_LR	 0x30000000 /*   L/R mode */
 #define MDR1_SYNCAC_SHIFT	 25 /* Sync Polarity (1 = Active-low) */
 #define MDR1_BITLSB_SHIFT	 24 /* MSB/LSB First (1 = LSB first) */
-#define MDR1_FLD_MASK	 0x000000c0 /* Frame Sync Signal Interval (0-3) */
+#define MDR1_FLD_MASK	 0x0000000c /* Frame Sync Signal Interval (0-3) */
 #define MDR1_FLD_SHIFT		  2
 #define MDR1_XXSTP	 0x00000001 /* Transmission/Reception Stop on FIFO */
 /* TMDR1 */
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-01-06 11:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-06 10:01 [PATCH] spi: sh-msiof: fix MDR1_FLD_MASK value Yoshihiro Shimoda
2015-01-06 10:22 ` Geert Uytterhoeven
2015-01-06 10:47 ` Geert Uytterhoeven
     [not found]   ` <CAMuHMdUjor__TCQwDcHAR9-vH54=qB-_E5AM2a4hp2B+wE9c4Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-06 10:57     ` yoshihiro shimoda
     [not found]       ` <HKNPR06MB322387C2B14F90694CA90A8D8590-xIjp3w5QIjwsJtb0Mgt7d79PrO6axcR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2015-01-06 11:08         ` Mark Brown
     [not found]           ` <20150106110831.GV2634-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-01-06 11:15             ` yoshihiro shimoda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox