Skip to content
Snippets Groups Projects
Commit cb44091f authored by Alexander Holler's avatar Alexander Holler Committed by Remy Bohmer
Browse files

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.

Signed-off-by: default avatarAlexander Holler <holler@ahsoftware.de>
parent f69b980d
Branches
Tags
No related merge requests found
...@@ -1220,7 +1220,7 @@ int usb_hub_configure(struct usb_device *dev) ...@@ -1220,7 +1220,7 @@ int usb_hub_configure(struct usb_device *dev)
hub->desc.DeviceRemovable[i] = descriptor->DeviceRemovable[i]; hub->desc.DeviceRemovable[i] = descriptor->DeviceRemovable[i];
for (i = 0; i < ((hub->desc.bNbrPorts + 1 + 7)/8); 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; dev->maxchild = descriptor->bNbrPorts;
USB_HUB_PRINTF("%d ports detected\n", dev->maxchild); USB_HUB_PRINTF("%d ports detected\n", dev->maxchild);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment