pinctrl: sh-pfc: r8a77990: Add support for pull-up only pins
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 6 Dec 2018 16:30:39 +0000 (17:30 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 18 Dec 2018 10:02:33 +0000 (11:02 +0100)
commitf4caa6ee736fa8a46c806ba4382c16f7e5a20248
tree101374be1d971b3af220d60884995963448794fa
parent3f3327dbc5596076f94695d8d4cc66da3d5027fb
pinctrl: sh-pfc: r8a77990: Add support for pull-up only pins

The R-Car Gen3 HardWare Manual Errata for Rev. 1.00 (Jul 2, 2018) states
that the USB30_OVC pin supports pull-up only.  It has a bit assigned in
the pull-enable register (PUEN5), but not in the pull-up/down control
register (PUD5).

Add a check for this, to prevent configuring a prohibited setting.

Reported-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fixes: 83f6941a42a5e773 ("pinctrl: sh-pfc: r8a77990: Add bias pinconf support")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
drivers/pinctrl/sh-pfc/pfc-r8a77990.c