[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <SN1PR0301MB15830252FB18C65A457FEA1FE0DE0@SN1PR0301MB1583.namprd03.prod.outlook.com>
Date: Fri, 8 May 2015 05:28:42 +0000
From: Ramneek Mehresh <ramneek.mehresh@...escale.com>
To: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: "balbi@...com" <balbi@...com>,
"linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>,
"stern@...land.harvard.edu" <stern@...land.harvard.edu>,
"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>
Subject: RE: [PATCH 09/10] usb:fsl:otg: Resolve OTG crash issue with another
host
> -----Original Message-----
> From: Sergei Shtylyov [mailto:sergei.shtylyov@...entembedded.com]
> Sent: Thursday, May 07, 2015 6:32 PM
> To: Mehresh Ramneek-B31383; linux-kernel@...r.kernel.org
> Cc: balbi@...com; linux-usb@...r.kernel.org; stern@...land.harvard.edu;
> gregkh@...uxfoundation.org
> Subject: Re: [PATCH 09/10] usb:fsl:otg: Resolve OTG crash issue with another
> host
>
> Hello.
>
> On 5/7/2015 3:47 PM, Ramneek Mehresh wrote:
>
> > Resolves kernel crash issue when a USB flash drive is inserted into
> > USB1 port with USB2 port configured as otg. Removing "else" block so
> > that the controller coming up in "non-otg" mode doesn't return
> > -ENODEV. Returning "ENODEV" results in platform framework unbinding
> > platform-drv from controller resulting in kernel crash later in hub
> > driver
>
> > Signed-off-by: Ramneek Mehresh <ramneek.mehresh@...escale.com>
> > ---
> > drivers/usb/host/ehci-fsl.c | 3 ---
> > 1 file changed, 3 deletions(-)
>
> > diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
> > index 4bd4b0c..8d55f2b 100644
> > --- a/drivers/usb/host/ehci-fsl.c
> > +++ b/drivers/usb/host/ehci-fsl.c
> > @@ -180,9 +180,6 @@ static int usb_hcd_fsl_probe(const struct hc_driver
> *driver,
> > }
> >
> > ehci_fsl->have_hcd = 1;
> > - } else {
> > - dev_err(&pdev->dev, "wrong operating mode\n");
> > - return -ENODEV;
>
> Isn't it easier to just not add this code in the patch #7?
>
Will do, thanks
> WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists