svn commit: r227462 - head/sys/dev/usb/storage
Hans Petter Selasky
hselasky at FreeBSD.org
Sat Nov 12 08:19:37 UTC 2011
Author: hselasky
Date: Sat Nov 12 08:19:36 2011
New Revision: 227462
URL: http://svn.freebsd.org/changeset/base/227462
Log:
Enable power save mode for the USB storage device driver.
MFC after: 1 week
Modified:
head/sys/dev/usb/storage/ustorage_fs.c
Modified: head/sys/dev/usb/storage/ustorage_fs.c
==============================================================================
--- head/sys/dev/usb/storage/ustorage_fs.c Sat Nov 12 08:16:45 2011 (r227461)
+++ head/sys/dev/usb/storage/ustorage_fs.c Sat Nov 12 08:19:36 2011 (r227462)
@@ -364,6 +364,9 @@ ustorage_fs_attach(device_t dev)
sc->sc_udev = uaa->device;
unit = device_get_unit(dev);
+ /* enable power saving mode */
+ usbd_set_power_mode(uaa->device, USB_POWER_MODE_SAVE);
+
if (unit == 0) {
if (ustorage_fs_ramdisk == NULL) {
/*
More information about the svn-src-head
mailing list