On Fri, Dec 11, 2015 at 10:47 PM, Fabio Estevam <festevam@xxxxxxxxx> wrote: > On Fri, Dec 11, 2015 at 7:36 PM, Linus Walleij <linus.walleij@xxxxxxxxxx> wrote: >> The bgpio_get_set() call should return a value clamped to [0,1], >> the current code will return a negative value if reading >> bit 31, which turns the value negative as this is a signed value >> and thus gets interpreted as an error by the gpiolib core. >> Found on the gpio-mxc but applies to any MMIO driver. >> >> Fixes: b19e7f51a55f "gpio: gpio-generic: add flag to read out output value from reg_set" > > This commit appeared in 4.2, so it would be nice to add a stable tag: > > Cc: <stable@xxxxxxxxxxxxxxx> # 4.2+ IIUC Fixes: has exactly this effect: it will be applied to any kernel where that commit is present. The beauty of git commit hashes. 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