linux/drivers/pinctrl/sh-pfc
Wolfram Sang 8536e37882 pinctrl: sh-pfc: only use dummy states for non-DT platforms
commit 0129801be4 upstream.

If pinctrl_provide_dummies() is used unconditionally, then the dummy
state will be used even on DT platforms when the "init" state was
intentionally left out. Instead of "default", the dummy "init" state
will then be used during probe. Thus, when probing an I2C controller on
cold boot, communication triggered by bus notifiers broke because the
pins were not initialized.

Do it like OMAP2: use the dummy state only for non-DT platforms.

Fixes: ef0eebc051 ("drivers/pinctrl: Add the concept of an "init" state")
Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2016-04-20 15:42:08 +09:00
..
core.c pinctrl: sh-pfc: only use dummy states for non-DT platforms 2016-04-20 15:42:08 +09:00
core.h pinctrl: sh-pfc: Initial R8A7795 PFC support 2015-10-02 09:54:39 +02:00
gpio.c pinctrl: sh-pfc: Remove hardcoded IRQ numbers 2015-10-02 09:54:35 +02:00
Kconfig pinctrl: sh-pfc: Initial R8A7795 PFC support 2015-10-02 09:54:39 +02:00
Makefile pinctrl: sh-pfc: Initial R8A7795 PFC support 2015-10-02 09:54:39 +02:00
pfc-emev2.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-r8a73a4.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-r8a7740.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-r8a7778.c pinctrl: sh-pfc: Stop including <linux/platform_data/gpio-rcar.h> 2015-10-20 16:03:40 +02:00
pfc-r8a7779.c pinctrl: sh-pfc: Stop including <linux/platform_data/gpio-rcar.h> 2015-10-20 16:03:40 +02:00
pfc-r8a7790.c pinctrl: sh-pfc: Stop including <linux/platform_data/gpio-rcar.h> 2015-10-20 16:03:40 +02:00
pfc-r8a7791.c pinctrl: sh-pfc: Stop including <linux/platform_data/gpio-rcar.h> 2015-10-20 16:03:40 +02:00
pfc-r8a7794.c pinctrl: sh-pfc: Stop including <linux/platform_data/gpio-rcar.h> 2015-10-20 16:03:40 +02:00
pfc-r8a7795.c pinctrl: sh-pfc: Stop including <linux/platform_data/gpio-rcar.h> 2015-10-20 16:03:40 +02:00
pfc-sh73a0.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7203.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7264.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7269.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7720.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7722.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7723.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7724.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7734.c pinctrl: sh-pfc: sh7734: Add missing cfg macro parameter to fix build 2015-12-01 11:13:04 +01:00
pfc-sh7757.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7785.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-sh7786.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pfc-shx3.c pinctrl: sh-pfc: Rename .gpio_data[] to .pinmux_data[] 2015-10-20 16:03:30 +02:00
pinctrl.c pinctrl: sh-pfc: Implement pinconf power-source param for voltage switching 2015-08-24 10:44:54 +02:00
sh_pfc.h pinctrl: sh-pfc: Stop including <linux/platform_data/gpio-rcar.h> 2015-10-20 16:03:40 +02:00