mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Enable power save mode for the USB storage device driver.
MFC after: 1 week
This commit is contained in:
parent
271ae033e9
commit
2648cd35d8
1 changed files with 3 additions and 0 deletions
|
|
@ -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