[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1202835603-10663-1-git-send-email-felipe.balbi@nokia.com>
Date: Tue, 12 Feb 2008 12:00:03 -0500
From: Felipe Balbi <felipe.balbi@...ia.com>
To: linux-kernel@...r.kernel.org, linux-usb@...r.kernel.org
Cc: me@...ipebalbi.com, david-b@...bell.net,
Felipe Balbi <felipe.balbi@...ia.com>
Subject: [PATCH] USB: OTG: Fix weirdnesses on enumerating partial otg devices
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@...ia.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
--
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