]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: renesas: rzg2l: Return -EINVAL for pins which have input disabled
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Wed, 11 May 2022 09:40:57 +0000 (10:40 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 6 Jun 2022 09:12:22 +0000 (11:12 +0200)
commit6d695a3799ff55c82ec6da474effbf4ed4111a9f
treea04a6e3c666927b135e44e5d90edef8c23603000
parentcf1710d1388cf5bd81996b258399c4907d27006e
pinctrl: renesas: rzg2l: Return -EINVAL for pins which have input disabled

Pin status reported by pinconf-pins file always reported pin status as
"input enabled" even for pins which had input disabled. Fix this by
returning -EINVAL for the pins which have input disabled.

Fixes: b779babc7fdcf ("pinctrl: renesas: Add RZ/G2L pin and gpio controller driver")
Reported-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Phil Edworthy <phil.edworthy@renesas.com>
Link: https://lore.kernel.org/r/20220511094057.3151-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/renesas/pinctrl-rzg2l.c