Name

usb_resume_device — re-activate a suspended usb device

Synopsis

int usb_resume_device (struct usb_device *  udev);

Arguments

udev

device to re-activate

Context

must be able to sleep; device not locked

Description

This will re-activate the suspended device, increasing power usage while letting drivers communicate again with its endpoints. USB resume explicitly guarantees that the power session between the host and the device is the same as it was when the device suspended.

Returns 0 on success, else negative errno.