Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2011 14:50:38 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229107 - stable/9/sys/dev/usb/storage
Message-ID:  <201112311450.pBVEocMK069115@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {
 			/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112311450.pBVEocMK069115>