Hi Linus,

On Fri, Dec 11, 2015 at 7:36 PM, Linus Walleij <[email protected]> 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: <[email protected]> # 4.2+

Regards,

Fabio Estevam
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to