Thread (2 messages) 2 messages, 2 authors, 2020-01-30

Re: [PATCH] i2c: cadence: Handle transfer_size rollover

From: Wolfram Sang <hidden>
Date: 2020-01-30 08:03:14
Also in: linux-i2c, lkml

On Thu, Jan 31, 2019 at 01:39:57PM -0800, alex.williams@ettus.com wrote:
From: Alex Williams <redacted>

Under certain conditions, Cadence's I2C controller's transfer_size
register will roll over and generate invalid read transactions. Before
this change, the ISR relied solely on the RXDV bit to determine when to
write more data to the user's buffer. The invalid read data would cause
overruns, smashing stacks and worse.

This change stops the buffer writes to the requested boundary and
reports the error. The controller will be reset so normal transactions
may resume.

Signed-off-by: Alex Williams <redacted>
Applied to for-next with another Rev-by from Michal given in another
thread, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help