From owner-svn-src-head@FreeBSD.ORG Sat Nov 12 08:19:37 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05673106564A; Sat, 12 Nov 2011 08:19:37 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E98288FC16; Sat, 12 Nov 2011 08:19:36 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pAC8Jawg033123; Sat, 12 Nov 2011 08:19:36 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pAC8JadU033121; Sat, 12 Nov 2011 08:19:36 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201111120819.pAC8JadU033121@svn.freebsd.org> From: Hans Petter Selasky Date: Sat, 12 Nov 2011 08:19:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227462 - head/sys/dev/usb/storage X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2011 08:19:37 -0000 Author: hselasky Date: Sat Nov 12 08:19:36 2011 New Revision: 227462 URL: http://svn.freebsd.org/changeset/base/227462 Log: Enable power save mode for the USB storage device driver. MFC after: 1 week Modified: head/sys/dev/usb/storage/ustorage_fs.c Modified: head/sys/dev/usb/storage/ustorage_fs.c ============================================================================== --- head/sys/dev/usb/storage/ustorage_fs.c Sat Nov 12 08:16:45 2011 (r227461) +++ head/sys/dev/usb/storage/ustorage_fs.c Sat Nov 12 08:19:36 2011 (r227462) @@ -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) { /*