mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-16 13:23:36 +00:00
Make sure we probe and attach the root HUB after
resume else no devices will appear again. MFC after: 1 day
This commit is contained in:
parent
157bc8dd42
commit
6bbe7cdfb2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229317
|
@ -473,10 +473,18 @@ usb_bus_resume(struct usb_proc_msg *pm)
|
|||
if (bus->methods->set_hw_power != NULL)
|
||||
(bus->methods->set_hw_power) (bus);
|
||||
|
||||
/* restore USB configuration to index 0 */
|
||||
err = usbd_set_config_index(udev, 0);
|
||||
if (err)
|
||||
device_printf(bus->bdev, "Could not configure root HUB\n");
|
||||
|
||||
/* probe and attach */
|
||||
err = usb_probe_and_attach(udev, USB_IFACE_INDEX_ANY);
|
||||
if (err) {
|
||||
device_printf(bus->bdev, "Could not probe and "
|
||||
"attach root HUB\n");
|
||||
}
|
||||
|
||||
usbd_enum_unlock(udev);
|
||||
|
||||
USB_BUS_LOCK(bus);
|
||||
|
|
Loading…
Reference in a new issue