[U-Boot] spi: omap3: fix set_wordlen() reading from incorrect address for CHCONF

Tom Rini trini at konsulko.com
Thu Feb 28 23:55:58 UTC 2019


On Mon, Feb 18, 2019 at 06:04:29PM -0500, David Rivshin wrote:

> From: David Rivshin <DRivshin at allworx.com>
> 
> _omap3_spi_set_wordlen() indexed the regs->channel[] array with the
> old wordlen (instead of the chipselect number) when reading the current
> CHCONF register value. This meant it read from the wrong memory location,
> modified that value, and then wrote it back to the correct CHCONF
> register. The end result is that most slave configuration settings would
> be lost, such as clock divisor, clock/chipselect polarities, etc.
> 
> Fixes: 77b8d04854f4 ("spi: omap3: Convert to driver model")
> Signed-off-by: David Rivshin <drivshin at allworx.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190228/294b7161/attachment.sig>


More information about the U-Boot mailing list