[PATCH] pinctrl: i.MX: Make more robust against devicetree errors

Shawn Guo shawn.guo at linaro.org
Mon Aug 12 03:49:03 EDT 2013


On Fri, Aug 09, 2013 at 02:20:49PM +0200, Sascha Hauer wrote:
> When there is something wrong with pinctrl in the i.MX devicetree
> files this usually means the i.MX pinctrl driver bails out completely.
> In this case even the console is nonfunctional since it can't get
> the pins. Enabling earlyprintk isn't very helpful since the driver
> only prints that something is wrong, but not what is wrong.
> 
> With this series the i.MX pinctrl driver continues on errors so that
> the system stays working and only the erroneous pinctrl groups fail
> later. Also the error messages are supplemented with the offending
> devicetree node to give a clue what went wrong.
> 
> Sascha
> 
> ----------------------------------------------------------------
> Sascha Hauer (5):
>       pinctrl: imx: make error messages more informative
>       pinctrl: imx: Catch no fsl,pins property
>       pinctrl: imx: do not fail when parsing a group fails
>       pinctrl: imx: do not fail when parsing a function fails
>       pinctrl: imx: Use struct type for pins

For the series,

Acked-by: Shawn Guo <shawn.guo at linaro.org>

> 
>  drivers/pinctrl/pinctrl-imx.c | 95 ++++++++++++++++++++-----------------------
>  drivers/pinctrl/pinctrl-imx.h | 36 +++++++++-------
>  2 files changed, 64 insertions(+), 67 deletions(-)




More information about the linux-arm-kernel mailing list