Re: [PATCH 2/2] pinctrl: Add Intel Keem Bay pinctrl driver
From: Linus Walleij
Date: Fri May 28 2021 - 04:21:33 EST
On Thu, May 27, 2021 at 4:44 PM D, Lakshmi Sowjanya
> From: Linus Walleij <linus.walleij@xxxxxxxxxx>
> > > + val |= FIELD_PREP(KEEMBAY_GPIO_MODE_INV_MASK, KEEMBAY_GPIO_MODE_INV_VAL);
> > > + keembay_write_reg(val, kpc->base1 + KEEMBAY_GPIO_MODE, pin); }
> > Why would you want to invert? OK I guess I read and see..
> The IP doesn't support the falling edge and low level interrupt trigger. Hence
> the invert API is used to mimic the falling edge and low level support.
That is a clever hack.
Write some comments about that here or at the call sites so it is
clear what is going on and why you are doing this, so readers
of the code understand.