[U-Boot] [PATCH] SPI: fixup typo in omap2_spi.c

2016-11-04 Thread
regs->channel[] is an array of registers in SoC. It is indexed by CS# Fixup the typo which will cause the index error when accessing the hardware. In the all other code, regs->channel[] is indexed by 'priv->cs', so I think it is reasonable to fix that wrongly register accessing. --- dr

[U-Boot] fixup typo in omap SPI driver

2016-11-02 Thread
It seems that the register arrary should be indexed by cs, not by wordlen. -- Brock Zheng 郑 祎 北京中科腾越科技发展有限公司 北京市海淀区东北旺西路8号中关村软件园21号楼启明星辰大厦二层六区(邮编:100094) 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