diff options
author | Ramneek Mehresh <ramneek.mehresh@freescale.com> | 2013-05-28 08:22:32 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-09-25 07:25:26 (GMT) |
commit | 874e49f594c966d3f45262bd6f9ab220d6fee012 (patch) | |
tree | 4eaa7744c243b9911b349f6afb0b9e83300d7a52 | |
parent | 8676546f5f32fbae9d270eb6190f83bea8b40e7d (diff) | |
download | linux-874e49f594c966d3f45262bd6f9ab220d6fee012.tar.xz |
usb: hub: Resolve OTG crash issue with another host
Resolves kernel crash issue when a USB flash drive is inserted
into USB1 port with USB2 port configured as otg
Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
-rw-r--r-- | drivers/usb/core/hub.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index f953d6d..4ba596a 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -4412,6 +4412,14 @@ hub_port_init(struct usb_hub *hub, struct usb_device *udev, int port1, else speed = usb_speed_string(udev->speed); +#if !defined(CONFIG_FSL_USB2_OTG) && !defined(CONFIG_FSL_USB2_OTG_MODULE) +if (udev->speed != USB_SPEED_SUPER) + dev_info(&udev->dev, + "%s %s USB device number %d using %s\n", + (udev->config) ? "reset" : "new", speed, + devnum, udev->bus->controller->driver->name); +#endif + if (udev->speed < USB_SPEED_SUPER) dev_info(&udev->dev, "%s %s USB device number %d using %s\n", |