[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5493f2ea-4e5a-3917-4fee-08d8ef0511b5@gmail.com>
Date: Thu, 7 Oct 2021 19:30:55 +0300
From: Dmitry Osipenko <digetx@...il.com>
To: LakshmiPraveen Kopparthi <LakshmiPraveen.Kopparthi@...rochip.com>
Cc: UNGLinuxDriver@...rochip.com, wsa@...nel.org,
andriy.shevchenko@...ux.intel.com, treding@...dia.com,
mirq-linux@...e.qmqm.pl, s.shtylyov@....ru,
linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1 1/2] i2c:busses:Register PCI1XXXX adapter to I2C
subsystem
05.10.2021 11:50, LakshmiPraveen Kopparthi пишет:
>> Interrupt is disabled in ISR, this lock does nothing.
>
> Ok. But there are some registers that are read and updated in the ISR
> and in the foreground.
> I will add the lock for these register access.
Please either add everything into a single patch or remove the unused code.
If you will need to add a lock, then like Michał Mirosław suggested in
the other reply, you won't need to store/restore IRQ flags in the
interrupt context.
Powered by blists - more mailing lists