mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 14:23:55 +00:00
Enable power save mode for the USB storage device driver.
MFC after: 1 week
This commit is contained in:
parent
271ae033e9
commit
2648cd35d8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227462
|
@ -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) {
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue