On Fri, 15 Feb 2019 at 15:31, Patrice Chotard <patrice.chot...@st.com> wrote:
>
> From: Patrick Delaunay <patrick.delau...@st.com>
>
> Some binding define child node gpio-controller without compatible property.
> This patch avoid to bind the pinconfig uclass to these node.

Some bindings define a child node gpio-controller without a compatible property.
Avoid binding the pinconfig uclass to these node since ...(add explanation here)

>
> Signed-off-by: Patrick Delaunay <patrick.delau...@st.com>
> Signed-off-by: Patrice Chotard <patrice.chot...@st.com>
> ---
>
>  drivers/pinctrl/pinctrl-uclass.c | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Simon Glass <s...@chromium.org>


>
> diff --git a/drivers/pinctrl/pinctrl-uclass.c 
> b/drivers/pinctrl/pinctrl-uclass.c
> index abb622cfe79e..9df06a262cd5 100644
> --- a/drivers/pinctrl/pinctrl-uclass.c
> +++ b/drivers/pinctrl/pinctrl-uclass.c
> @@ -149,6 +149,9 @@ static int pinconfig_post_bind(struct udevice *dev)
>                 ofnode_get_property(node, "compatible", &ret);
>                 if (ret >= 0)
>                         continue;
> +               /* If this node has "gpio-controller" property, skip */
> +               if (ofnode_read_bool(node, "gpio-controller"))
> +                       continue;
>
>                 if (ret != -FDT_ERR_NOTFOUND)
>                         return ret;
> --
> 1.9.1
>
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to