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@xxxxxxxxx> > --- > drivers/i2c/busses/i2c-tegra.c | 70 +++++++++++++++++----------------- > 1 file changed, 36 insertions(+), 34 deletions(-) Tested-by: Thierry Reding <treding@xxxxxxxxxx>