Bjørn Mork <bjorn@xxxxxxx> writes: > Lan Tianyu <tianyu.lan@xxxxxxxxx> writes: > >> @@ -648,7 +649,14 @@ ehci_hub_descriptor ( >> >> /* two bitmaps: ports removable, and usb 1.0 legacy PortPwrCtrlMask */ >> memset(&desc->u.hs.DeviceRemovable[0], 0, temp); >> - memset(&desc->u.hs.DeviceRemovable[temp], 0xff, temp); >> + memset(&desc->u.hs.DeviceRemovable[temp], 0xff, ltemp); >> + >> + for (i = 1; i <= ports; i++) { >> + if (usb_get_hub_port_connect_type(hcd->self.root_hub, i); BTW, I didn't notice this at first ------------^ Don't think that patch will build... Bjørn -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html