lkml.org 
[lkml]   [2020]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v7 01/34] i2c: tegra: Make tegra_i2c_flush_fifos() usable in atomic transfer
    Date
    On Wed, 09 Sep 2020 01:39:33 +0300, Dmitry Osipenko wrote:
    > The tegra_i2c_flush_fifos() shouldn't sleep in atomic transfer and jiffies
    > are not updating if interrupts are disabled. Let's switch to use iopoll
    > API helpers for register-polling. The iopoll API provides helpers for both
    > atomic and non-atomic cases.
    >
    > Note that this patch doesn't fix any known problem because normally FIFO
    > is flushed at the time of starting a new transfer.
    >
    > Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
    > Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
    > ---
    > drivers/i2c/busses/i2c-tegra.c | 25 ++++++++++++++++---------
    > 1 file changed, 16 insertions(+), 9 deletions(-)

    Tested-by: Thierry Reding <treding@nvidia.com>

    \
     
     \ /
      Last update: 2020-09-21 12:19    [W:8.304 / U:0.792 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site