Enable power save mode for the USB storage device driver.

MFC after:	1 week
This commit is contained in:
Hans Petter Selasky 2011-11-12 08:19:36 +00:00
parent 271ae033e9
commit 2648cd35d8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227462

View file

@ -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) {
/*