From: Tom Rini Date: Thu, 28 Feb 2019 18:55:58 -0500 Subject: [U-Boot] spi: omap3: fix set_wordlen() reading from incorrect address for CHCONF In-Reply-To: <20190218230429.13873-1-drivshin@awxrd.com> References: <20190218230429.13873-1-drivshin@awxrd.com> Message-ID: <20190228235558.GW12046@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Feb 18, 2019 at 06:04:29PM -0500, David Rivshin wrote: > From: David Rivshin > > _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 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: