svn commit: r229107 - stable/9/sys/dev/usb/storage
Hans Petter Selasky
hselasky at FreeBSD.org
Sat Dec 31 14:50:38 UTC 2011
Author: hselasky
Date: Sat Dec 31 14:50:38 2011
New Revision: 229107
URL: http://svn.freebsd.org/changeset/base/229107
Log:
MFC r227462:
Enable power save mode for the USB storage device driver.
Modified:
stable/9/sys/dev/usb/storage/ustorage_fs.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/amd64/include/xen/ (props changed)
stable/9/sys/boot/ (props changed)
stable/9/sys/boot/i386/efi/ (props changed)
stable/9/sys/boot/ia64/efi/ (props changed)
stable/9/sys/boot/ia64/ski/ (props changed)
stable/9/sys/boot/powerpc/boot1.chrp/ (props changed)
stable/9/sys/boot/powerpc/ofw/ (props changed)
stable/9/sys/cddl/contrib/opensolaris/ (props changed)
stable/9/sys/conf/ (props changed)
stable/9/sys/contrib/dev/acpica/ (props changed)
stable/9/sys/contrib/octeon-sdk/ (props changed)
stable/9/sys/contrib/pf/ (props changed)
stable/9/sys/contrib/x86emu/ (props changed)
Modified: stable/9/sys/dev/usb/storage/ustorage_fs.c
==============================================================================
--- stable/9/sys/dev/usb/storage/ustorage_fs.c Sat Dec 31 14:47:35 2011 (r229106)
+++ stable/9/sys/dev/usb/storage/ustorage_fs.c Sat Dec 31 14:50:38 2011 (r229107)
@@ -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-stable-9
mailing list