summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_device.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2010-09-02 04:05:00 +0000
committerthompsa <thompsa@FreeBSD.org>2010-09-02 04:05:00 +0000
commite26b2a25130f1f1eb7afa980b81902526d6760b1 (patch)
tree7e83eba44b1bf404b2c855b2410efd3723330e56 /sys/dev/usb/usb_device.c
parent4d9281bcbf8f611434cf15549a366beef4b7af55 (diff)
downloadFreeBSD-src-e26b2a25130f1f1eb7afa980b81902526d6760b1.zip
FreeBSD-src-e26b2a25130f1f1eb7afa980b81902526d6760b1.tar.gz
Add support for power mode filtering as some USB hardware does not support
power saving. Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev/usb/usb_device.c')
-rw-r--r--sys/dev/usb/usb_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_device.c b/sys/dev/usb/usb_device.c
index 62f59b8..41ed16b 100644
--- a/sys/dev/usb/usb_device.c
+++ b/sys/dev/usb/usb_device.c
@@ -1524,7 +1524,7 @@ usb_alloc_device(device_t parent_dev, struct usb_bus *bus,
* of USB devices out there that do not work very well with
* automatic suspend and resume!
*/
- udev->power_mode = USB_POWER_MODE_ON;
+ udev->power_mode = usbd_filter_power_mode(udev, USB_POWER_MODE_ON);
udev->pwr_save.last_xfer_time = ticks;
/* we are not ready yet */
udev->refcount = 1;
OpenPOWER on IntegriCloud