LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Felipe Balbi <felipe.balbi@nokia.com>
To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Cc: me@felipebalbi.com, david-b@pacbell.net,
Felipe Balbi <felipe.balbi@nokia.com>
Subject: [PATCH] USB: OTG: Fix weirdnesses on enumerating partial otg devices
Date: Tue, 12 Feb 2008 12:00:03 -0500 [thread overview]
Message-ID: <1202835603-10663-1-git-send-email-felipe.balbi@nokia.com> (raw)
Remove the check for is_b_host upon enumerating otg devices as it
can trigger some weird behaviors on otg sessions. Some devices claim
to be b_host even though they have an a_connector attached to it.
Checking b_hnp_enable flag should be secure enough or terms of
otg compliancy.
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
---
drivers/usb/core/hub.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 68fc521..963cf9b 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -1315,7 +1315,7 @@ static int usb_configure_device_otg(struct usb_device *udev)
/* Maybe it can talk to us, though we can't talk to it.
* (Includes HNP test device.)
*/
- if (udev->bus->b_hnp_enable || udev->bus->is_b_host) {
+ if (udev->bus->b_hnp_enable) {
err = usb_port_suspend(udev);
if (err < 0)
dev_dbg(&udev->dev, "HNP fail, %d\n", err);
--
1.5.4.34.g053d9
next reply other threads:[~2008-02-12 10:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-12 17:00 Felipe Balbi [this message]
2008-02-12 10:28 ` David Brownell
2008-02-12 17:45 ` Felipe Balbi
2008-02-12 13:02 ` David Brownell
2008-02-12 20:22 ` Felipe Balbi
2008-02-12 20:32 ` David Brownell
2008-02-13 16:29 ` Felipe Balbi
2008-02-13 21:36 ` David Brownell
2008-02-14 5:03 ` Felipe Balbi
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=1202835603-10663-1-git-send-email-felipe.balbi@nokia.com \
--to=felipe.balbi@nokia.com \
--cc=david-b@pacbell.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=me@felipebalbi.com \
--subject='Re: [PATCH] USB: OTG: Fix weirdnesses on enumerating partial otg devices' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).