summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2011-11-12 08:19:36 +0000
committerhselasky <hselasky@FreeBSD.org>2011-11-12 08:19:36 +0000
commit31271e910c52b50e9779d799eba28cad87311d2f (patch)
tree063e65eb2f17ce993091f78a2f6eec4557efa1d3
parenta3f67b08f33f8f52dd06e9f36da9671affa61bbd (diff)
downloadFreeBSD-src-31271e910c52b50e9779d799eba28cad87311d2f.zip
FreeBSD-src-31271e910c52b50e9779d799eba28cad87311d2f.tar.gz
Enable power save mode for the USB storage device driver.
MFC after: 1 week
-rw-r--r--sys/dev/usb/storage/ustorage_fs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/storage/ustorage_fs.c b/sys/dev/usb/storage/ustorage_fs.c
index 089dd42..dd6b413 100644
--- a/sys/dev/usb/storage/ustorage_fs.c
+++ b/sys/dev/usb/storage/ustorage_fs.c
@@ -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) {
/*
OpenPOWER on IntegriCloud