On Wed, Apr 5, 2017 at 5:50 PM, Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote: > The GPIO register is cached since all the configuration resides within > it, however, this means for input GPIOs the driver will not return the > actual state but the last value written to the register cache. > > To correct this in the case of reading an input GPIO resume the CODEC > and drop the cache for the input register to ensure an actual hardware > read takes place. > > Signed-off-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxxxxxxxx> Looks totally reasonable. Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html