Messages in this thread |  | | From | Thierry Reding <> | Subject | Re: [PATCH v3 3/9] i2c: tegra: Prevent interrupt triggering after transfer timeout | Date | Tue, 7 Jan 2020 12:39:00 +0000 |
| |
On Mon, 06 Jan 2020 04:04:17 +0300, Dmitry Osipenko wrote: > Potentially it is possible that interrupt may fire after transfer timeout. > That may not end up well for the next transfer because interrupt handling > may race with hardware resetting. > > This is very unlikely to happen in practice, but anyway let's prevent the > potential problem by enabling interrupt only at the moments when it is > actually necessary to get some interrupt event. > > Signed-off-by: Dmitry Osipenko <digetx@gmail.com> > --- > drivers/i2c/busses/i2c-tegra.c | 70 +++++++++++++++++----------------- > 1 file changed, 36 insertions(+), 34 deletions(-)
Tested-by: Thierry Reding <treding@nvidia.com>
|  |