On Mon, Apr 19, 2021 at 4:31 PM Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote: > On Mon, Apr 19, 2021 at 8:32 AM Tzung-Bi Shih <tzungbi@xxxxxxxxxx> wrote: > > For example call trace: > > Please, shrink it to the necessary minimum. I'll snip the stack a bit in the next version. > > Uses spin lock in mtk_rmw instead. > > It's nice, but now the question is, can you have this function be > called in a non-IRQ context concurrently with IRQ accessing registers? Fixed in v2. See https://patchwork.ozlabs.org/project/linux-gpio/list/?series=239787 .