summaryrefslogtreecommitdiffstats
path: root/fs/afs
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2015-03-24 16:26:18 +0100
committerLinus Walleij <linus.walleij@linaro.org>2015-04-07 15:11:00 +0200
commit16837f9588819c06469e635c04a8135f98ab9ae6 (patch)
tree343e82c48a69093828baf52a82400e780ae9114a /fs/afs
parent0fefcb6876d0d650ac2255c57051b31c48c1b165 (diff)
downloadtalos-obmc-linux-16837f9588819c06469e635c04a8135f98ab9ae6.tar.gz
talos-obmc-linux-16837f9588819c06469e635c04a8135f98ab9ae6.zip
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>
Diffstat (limited to 'fs/afs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud