Skip to contentSkip to conversation

USB: Fix device stati for removable and powerctrl (typo)

PATCH New Alexander Holler 2 participants 2 messages Jan 27, 2011 – Jan 28, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 USB: Fix device stati for removable and powerctrl (typo)

I currently don't know if the error could have other consequences than a wrong output when turning debug on.

---
 common/usb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
common/usb.c +1 -1
index 10e23de..aa28de0 100644
@@ -1220,7 +1220,7 @@ int usb_hub_configure(struct usb_device *dev)
 		hub->desc.DeviceRemovable[i] = descriptor->DeviceRemovable[i];
 
 	for (i = 0; i < ((hub->desc.bNbrPorts + 1 + 7)/8); i++)
-		hub->desc.DeviceRemovable[i] = descriptor->PortPowerCtrlMask[i];
+		hub->desc.PortPowerCtrlMask[i] = descriptor->PortPowerCtrlMask[i];
 
 	dev->maxchild = descriptor->bNbrPorts;
 	USB_HUB_PRINTF("%d ports detected\n", dev->maxchild);
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 USB: Fix device stati for removable and powerctrl (typo)

Hi,

2011/1/27 Alexander Holler <[email protected]>:

Quoted 13 lines

I currently don't know if the error could have other consequences than a wrong output when turning debug on.

---
?common/usb.c | ? ?2 +-
?1 files changed, 1 insertions(+), 1 deletions(-)

common/usb.c +0 -0
index 10e23de..aa28de0 100644

common/usb.c int usb_hub_configure(struct usb_device *dev)

Quoted 9 lines
common/usb.c +1 -2
@@ -1220,7 +1220,7 @@ int usb_hub_configure(struct usb_device *dev)
 ? ? ? ? ? ? ? ?hub->desc.DeviceRemovable[i] = descriptor->DeviceRemovable[i];
 
 ? ? ? ?for (i = 0; i < ((hub->desc.bNbrPorts + 1 + 7)/8); i++)
- ? ? ? ? ? ? ? hub->desc.DeviceRemovable[i] = descriptor->PortPowerCtrlMask[i];
+ ? ? ? ? ? ? ? hub->desc.PortPowerCtrlMask[i] = descriptor->PortPowerCtrlMask[i];
 
 ? ? ? ?dev->maxchild = descriptor->bNbrPorts;
 ? ? ? ?USB_HUB_PRINTF("%d ports detected\n", dev->maxchild);
--

Applied to u-boot-usb. Thanks.

Remy