From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Ramneek Mehresh <ramneek.mehresh@freescale.com>,
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
Date: Thu, 07 May 2015 16:01:30 +0300 [thread overview]
Message-ID: <554B622A.7080205@cogentembedded.com> (raw)
In-Reply-To: <1431002836-9711-9-git-send-email-ramneek.mehresh@freescale.com>
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@freescale.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?
WBR, Sergei
next prev parent reply other threads:[~2015-05-07 13:01 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-07 12:47 [PATCH 01/10] usb:fsl:otg: Add controller version based ULPI and UTMI phy Ramneek Mehresh
2015-05-07 12:47 ` [PATCH 02/10] drivers:host:fsl: Use ehci_overrides structure for EHCI drv Ramneek Mehresh
2015-05-07 14:46 ` Alan Stern
2015-05-08 5:03 ` Ramneek Mehresh
2015-05-08 14:26 ` Alan Stern
2015-05-11 5:18 ` Ramneek Mehresh
2015-05-07 12:47 ` [PATCH 03/10] usb:fsl:otg: Add support to add/remove usb host driver Ramneek Mehresh
2015-05-07 14:45 ` Alan Stern
2015-05-07 12:47 ` [PATCH 04/10] usb:fsl:otg: Signal host drv when host is otg Ramneek Mehresh
2015-05-07 12:47 ` [PATCH 05/10] usb:fsl:otg: Modify otg_event to start host drv Ramneek Mehresh
2015-05-07 12:47 ` [PATCH 06/10] usb:fsl:otg: Combine host/gadget start/resume for ID change Ramneek Mehresh
2015-05-07 12:47 ` [PATCH 07/10] usb:fsl:otg: Remove host drv upon otg bring-up Ramneek Mehresh
2015-05-07 12:47 ` [PATCH 08/10] usb:fsl:otg: Add host-gadget drv sync delay Ramneek Mehresh
2015-05-07 12:47 ` [PATCH 09/10] usb:fsl:otg: Resolve OTG crash issue with another host Ramneek Mehresh
2015-05-07 13:01 ` Sergei Shtylyov [this message]
2015-05-08 5:28 ` Ramneek Mehresh
2015-05-07 12:47 ` [PATCH 10/10] usb:fsl:otg: Make fsl otg driver as tristate Ramneek Mehresh
2015-05-08 8:35 ` Paul Bolle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=554B622A.7080205@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=balbi@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=ramneek.mehresh@freescale.com \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox