diff mbox

fixup typo in omap SPI driver

Message ID 20161102000020.GG1282@techyauld.com
State New
Headers show

Commit Message

Brock Zheng Nov. 2, 2016, midnight UTC
It seems that the register arrary should be indexed by cs, not by wordlen.



-- 
Brock Zheng <yzheng@techyauld.com>
郑 祎

北京中科腾越科技发展有限公司
北京市海淀区东北旺西路8号中关村软件园21号楼启明星辰大厦二层六区(邮编:100094)
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Comments

Jagan Teki Nov. 2, 2016, 11:25 a.m. UTC | #1
2016-11-02 5:30 GMT+05:30 郑 祎 <yzheng@techyauld.com>:
> It seems that the register arrary should be indexed by cs, not by wordlen.

Please send it like patch format[1]

[1] http://www.denx.de/wiki/U-Boot/Patches
diff mbox

Patch

diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c
index 60e9d6e..2380a0e 100644
--- a/drivers/spi/omap3_spi.c
+++ b/drivers/spi/omap3_spi.c
@@ -416,7 +416,7 @@  static void _omap3_spi_set_wordlen(struct omap3_spi_priv *priv)
 	unsigned int confr;
 
 	/* McSPI individual channel configuration */
-	confr = readl(&priv->regs->channel[priv->wordlen].chconf);
+	confr = readl(&priv->regs->channel[priv->cs].chconf);
 
 	/* wordlength */
 	confr &= ~OMAP3_MCSPI_CHCONF_WL_MASK;