Message ID | 20161102000020.GG1282@techyauld.com |
---|---|
State | New |
Headers | show |
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 --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;