[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-arm-kernel
Subject:    Re: [PATCH] imx: usb: get pinctrl if it's not yet initialized
From:       Krzysztof_Michoński <michonskikrzysztof () gmail ! com>
Date:       2019-06-30 10:31:30
Message-ID: CAOiNxGDs9Ki7_y_=Mv1tnSsqObv9EYzkdmo+yLCO6gMPBLNwYA () mail ! gmail ! com
[Download RAW message or body]

Hi Peter,
Yes you are right! This file's been patched previously in my fork.
Sorry about that.

Regards,
Krzysztof Michoński

czw., 27 cze 2019 o 05:22 Peter Chen <peter.chen@nxp.com> napisał(a):
>
>
> > In case usb phy mode is other than USBPHY_INTERFACE_MODE_HSIC the pinctrl
> > for device is not acquired. It is however used later regardless of the mode, hence
> > leads to requesting access to uninitialized data.
> >
> > Signed-off-by: Krzysztof Michonski <michonskikrzysztof@gmail.com>
> > ---
> >  drivers/usb/chipidea/ci_hdrc_imx.c | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
> > index a4b482c3dc65..2f02b35c40b6 100644
> > --- a/drivers/usb/chipidea/ci_hdrc_imx.c
> > +++ b/drivers/usb/chipidea/ci_hdrc_imx.c
> > @@ -428,6 +428,9 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
> >               pm_runtime_enable(dev);
> >       }
> >
> > +     if (!data->pinctrl)
> > +             data->pinctrl = devm_pinctrl_get(dev);
> > +
> >       if (!IS_ERR(data->pinctrl)) {
> >               struct pinctrl_state *state;
> >
>
> Sorry, what kernel version you are using? The recent kernel is different with the patch you posted.
>
> Peter
>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic