Subject: pinctrl: imx1-core: Fix debug output in .pin_config_set callback
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 17 Jul 2015 07:38:43 +0000 (09:38 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 20 Jul 2015 09:01:53 +0000 (11:01 +0200)
commit9571b25df1dbf4db17191b54f59734e8b77fd591
treedc3e265e2514ec7953b2cd4385fa08ec9a2d6d74
parent714b1dd8f72e39ef4bc0f38f7f341bb1d57d98bf
Subject: pinctrl: imx1-core: Fix debug output in .pin_config_set callback

imx1_pinconf_set assumes that the array of pins in struct
imx1_pinctrl_soc_info can be indexed by pin id to get the
pinctrl_pin_desc for a pin. This used to be correct up to commit
607af165c047 which removed some entries from the array and so made it
wrong to access the array by pin id.

The result of this bug is a wrong pin name in the output for small pin
ids and an oops for the bigger ones.

This patch is the result of a discussion that includes patches by Markus
Pargmann and Chris Ruehl.

Fixes: 607af165c047 ("pinctrl: i.MX27: Remove nonexistent pad definitions")
Cc: stable@vger.kernel.org
Reported-by: Chris Ruehl <chris.ruehl@gtsys.com.hk>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/freescale/pinctrl-imx1-core.c
This page took 0.026033 seconds and 5 git commands to generate.