Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752402AbbEHF2w (ORCPT ); Fri, 8 May 2015 01:28:52 -0400 Received: from mail-bl2on0139.outbound.protection.outlook.com ([65.55.169.139]:49152 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751398AbbEHF2p convert rfc822-to-8bit (ORCPT ); Fri, 8 May 2015 01:28:45 -0400 From: Ramneek Mehresh To: Sergei Shtylyov , "linux-kernel@vger.kernel.org" CC: "balbi@ti.com" , "linux-usb@vger.kernel.org" , "stern@rowland.harvard.edu" , "gregkh@linuxfoundation.org" Subject: RE: [PATCH 09/10] usb:fsl:otg: Resolve OTG crash issue with another host Thread-Topic: [PATCH 09/10] usb:fsl:otg: Resolve OTG crash issue with another host Thread-Index: AQHQiMJqqRKjgahTu0aJTj46807SzJ1welkAgAETsQA= Date: Fri, 8 May 2015 05:28:42 +0000 Message-ID: References: <1431002836-9711-1-git-send-email-ramneek.mehresh@freescale.com> <1431002836-9711-9-git-send-email-ramneek.mehresh@freescale.com> <554B622A.7080205@cogentembedded.com> In-Reply-To: <554B622A.7080205@cogentembedded.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: cogentembedded.com; dkim=none (message not signed) header.d=none; x-originating-ip: [192.88.169.1] x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB1583; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:SN1PR0301MB1583;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB1583; x-forefront-prvs: 0570F1F193 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(377454003)(24454002)(13464003)(51704005)(479174004)(2501003)(189998001)(2900100001)(50986999)(40100003)(54356999)(5001960100002)(102836002)(2950100001)(19580395003)(77156002)(76176999)(5001770100001)(46102003)(19580405001)(62966003)(76576001)(92566002)(87936001)(2656002)(66066001)(575784001)(86362001)(99286002)(122556002)(106116001)(33656002);DIR:OUT;SFP:1102;SCL:1;SRVR:SN1PR0301MB1583;H:SN1PR0301MB1583.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-originalarrivaltime: 08 May 2015 05:28:43.0266 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB1583 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1733 Lines: 50 > -----Original Message----- > From: Sergei Shtylyov [mailto:sergei.shtylyov@cogentembedded.com] > Sent: Thursday, May 07, 2015 6:32 PM > To: Mehresh Ramneek-B31383; linux-kernel@vger.kernel.org > Cc: balbi@ti.com; linux-usb@vger.kernel.org; stern@rowland.harvard.edu; > gregkh@linuxfoundation.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 > > --- > > 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/