linux/drivers/pinctrl/freescale
Markus Pargmann 16837f9588 pinctrl: fsl: imx: Check for 0 config register
0 is used in all pinfunction definitions when a config register is not
available, for example imx25-pinfunc.h. If a configuration value is used
for such a pinfunction the driver will always write it to the
configuration register if it is not -1. For a 0 configuration register
the configuration value is written to offset 0x0. This can lead to a
crashing/hanging system without any warning message.

This patch checks for 0 config register and sets the internal value to
-1. If the configuration value is not NO_PADCTL this leads to an error
message that applying the configuration failed.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tested-by: Stefan Agner <stefan@agner.ch>
Acked-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-04-07 15:11:00 +02:00
..
Kconfig
Makefile
pinctrl-imx1-core.c
pinctrl-imx1.c pinctrl: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:22 +02:00
pinctrl-imx1.h
pinctrl-imx6dl.c pinctrl: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:22 +02:00
pinctrl-imx6q.c pinctrl: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:22 +02:00
pinctrl-imx6sl.c pinctrl: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:22 +02:00
pinctrl-imx6sx.c pinctrl: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:22 +02:00
pinctrl-imx21.c pinctrl: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:22 +02:00
pinctrl-imx23.c pinctrl: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:22 +02:00
pinctrl-imx25.c pinctrl: imx25: fix numbering for pins 2015-02-03 14:02:55 +01:00
pinctrl-imx27.c pinctrl: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:22 +02:00
pinctrl-imx28.c pinctrl: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:22 +02:00
pinctrl-imx35.c pinctrl: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:22 +02:00
pinctrl-imx50.c pinctrl: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:22 +02:00
pinctrl-imx51.c pinctrl: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:22 +02:00
pinctrl-imx53.c pinctrl: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:22 +02:00
pinctrl-imx.c pinctrl: fsl: imx: Check for 0 config register 2015-04-07 15:11:00 +02:00
pinctrl-imx.h
pinctrl-mxs.c pinctrl: mxs: warn if functions are not grouped by name 2014-10-30 15:52:39 +01:00
pinctrl-mxs.h
pinctrl-vf610.c pinctrl: freescale: make of_device_id array const 2015-03-09 18:10:56 +01:00