GPIO fixes for the v4.4 series:
- Revert the error number propagation from the .get() vtable
entry temporarily, until we make the proper fixes to all drivers.
- Fix the clamping behaviour in the generic GPIO driver.
- Driver fix for the ath79 driver
gpio: revert get() to non-errorprogating behaviour
("gpio: Propagate errors from chip->get()")
started to propagate errors from the .get() functions since
we can get errors from the infrastructure of e.g. slowbus
However it turns out a bunch of drivers relied on the core
to clamp the value, so we need to revert to the old behaviour
and go over all drivers and fix them to conform to the
expectations of the core before we go back to propagating
the error code.
Cc: firstname.lastname@example.org # 4.3+
Cc: Bjorn Andersson <email@example.com>
Cc: Vladimir Zapolskiy <firstname.lastname@example.org>
Fixes: e20538b82f1f ("gpio: Propagate errors from chip->get()")
Reported-by: Michael Trimarchi <email@example.com>
Signed-off-by: Linus Walleij <firstname.lastname@example.org>
1 file changed