android_kernel_lge_bullhead/drivers/pinctrl/sh-pfc
Niklas Söderlund 9cbef9a41d pinctrl: sh-pfc: Do not unconditionally support PIN_CONFIG_BIAS_DISABLE
commit 5d7400c4acbf7fe633a976a89ee845f7333de3e4 upstream.

Always stating PIN_CONFIG_BIAS_DISABLE is supported gives untrue output
when examining /sys/kernel/debug/pinctrl/e6060000.pfc/pinconf-pins if
the operation get_bias() is implemented but the pin is not handled by
the get_bias() implementation. In that case the output will state that
"input bias disabled" indicating that this pin has bias control
support.

Make support for PIN_CONFIG_BIAS_DISABLE depend on that the pin either
supports SH_PFC_PIN_CFG_PULL_UP or SH_PFC_PIN_CFG_PULL_DOWN. This also
solves the issue where SoC specific implementations print error messages
if their particular implementation of {set,get}_bias() is called with a
pin it does not know about.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2017-06-20 14:04:07 +02:00
..
Kconfig Removal of GENERIC_GPIO for v3.10 2013-05-09 09:59:16 -07:00
Makefile sh-pfc: Add r8a73a4 pinmux support 2013-04-03 10:30:38 +09:00
core.c sh-pfc: Add r8a73a4 pinmux support 2013-04-03 10:30:38 +09:00
core.h sh-pfc: Add r8a73a4 pinmux support 2013-04-03 10:30:38 +09:00
gpio.c sh-pfc: Skip gpiochip registration when no GPIO resource is found 2013-04-03 10:30:36 +09:00
pfc-r8a73a4.c sh-pfc: r8a73a4: Remove unused GPIO bias data 2013-04-03 10:30:43 +09:00
pfc-r8a7740.c Merge branch 'soc' into pinmux-base 2013-04-02 11:08:34 +09:00
pfc-r8a7779.c sh-pfc: r8a7779: Don't group USB OVC and PENC pins 2013-06-04 14:37:43 +09:00
pfc-sh73a0.c Merge branch 'soc' into pinmux-base 2013-04-02 11:08:34 +09:00
pfc-sh7203.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7264.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7269.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7372.c sh-pfc: sh7372: Remove SDHI and MMCIF function GPIOS 2013-03-15 13:34:13 +01:00
pfc-sh7720.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7722.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7723.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7724.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7734.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7757.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7785.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7786.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-shx3.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pinctrl.c pinctrl: sh-pfc: Do not unconditionally support PIN_CONFIG_BIAS_DISABLE 2017-06-20 14:04:07 +02:00
sh_pfc.h sh-pfc: Implement generic pinconf support 2013-03-15 13:33:54 +01:00