[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200130080307.GA2208@ninjato>
Date: Thu, 30 Jan 2020 09:03:07 +0100
From: Wolfram Sang <wsa@...-dreams.de>
To: alex.williams@...us.com
Cc: mical.simek@...inx.com, linux-arm-kernel@...ts.infradead.org,
linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
Alex Williams <alex.williams@...com>
Subject: Re: [PATCH] i2c: cadence: Handle transfer_size rollover
On Thu, Jan 31, 2019 at 01:39:57PM -0800, alex.williams@...us.com wrote:
> From: Alex Williams <alex.williams@...com>
>
> 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 <alex.williams@...com>
Applied to for-next with another Rev-by from Michal given in another
thread, thanks!
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists