Skip to contentSkip to conversation

usb : musb : Record speed of high speed devices connected to hub

PATCH Superseded Thomas Abraham 2 participants 2 messages Dec 17, 2008 – Dec 18, 2008

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/6 usb : musb : Record speed of high speed devices connected to hub

For high spped devices that are connected via hubs, the information that the device is high speed is recorded. This is required by Mentor USB Host controller driver.

---
 common/usb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
common/usb.c +1 -0
index 3138452..83d0754 100644
@@ -1137,6 +1137,7 @@ void usb_hub_port_connect_change(struct usb_device *dev, int port)
 	/* Allocate a new device struct for it */
 	usb = usb_alloc_new_device();
 	usb->speed = (portstatus & USB_PORT_STAT_LOW_SPEED) ? 1 : 0;
+	usb->speed = (portstatus & USB_PORT_STAT_HIGH_SPEED) ? 1 : 0;
 
 	dev->children[port] = usb;
 	usb->parent = dev;
Signature · 1 line
1.5.6
#1 lore raw

PATCH v2 1/6 usb : musb : Record speed of high speed devices connected to hub

Quoted 24 lines

-----Original Message-----
From: Abraham, Thomas
Sent: Thursday, December 18, 2008 4:41 AM
To: u-boot at lists.denx.de
Cc: Subbrathnam, Swaminathan; Gupta, Ajay Kumar; B, Ravi; Abraham, Thomas
Subject: [PATCH v2 1/6] usb : musb : Record speed of high speed devices connected to hub

For high spped devices that are connected via hubs, the information that the device is high speed is recorded. This is required by Mentor USB Host controller driver.

---
 common/usb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
common/usb.c +0 -0
index 3138452..83d0754 100644

common/usb.c void usb_hub_port_connect_change(struct usb_device *dev, int port) · line 1140

Quoted 4 lines
common/usb.c +1 -0
@@ -1137,6 +1137,7 @@ void usb_hub_port_connect_change(struct usb_device *dev, int port)
 	/* Allocate a new device struct for it */
 	usb = usb_alloc_new_device();
 	usb->speed = (portstatus & USB_PORT_STAT_LOW_SPEED) ? 1 : 0;
+	usb->speed = (portstatus & USB_PORT_STAT_HIGH_SPEED) ? 1 : 0;

Pls change this as,
+ usb->speed = 1 << ((portstatus & USB_PORT_STAT_HIGH_SPEED) ? 1 : 0);

Quoted 5 lines
common/usb.c +0 -1
 	dev->children[port] = usb;
 	usb->parent = dev;
--

1.5.6