git: ahci: Add and use AHCI_PREG_SCTL_IPM_NODEVSLP definition from ahci-1.3.1.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Wed Apr 27 13:15:58 PDT 2016


commit 9abd2bb89a2f347f9045f4032c17df69f85818ba
Author: Imre Vadász <imre at vdsz.com>
Date:   Sat Apr 23 13:23:14 2016 +0200

    ahci: Add and use AHCI_PREG_SCTL_IPM_NODEVSLP definition from ahci-1.3.1.
    
    * The DevSleep interface power saving state was introduced with the
      ahci-1.3.1 specification. However actual DevSleep support needs to be
      recognized via the AHCI_REG_CAP2_SDS bit, since many controllers
      identifying as ahci-1.3 already support DevSleep.
    
    * Since the correct bitmask to use in the AHCI_PREG_SCTL_IPM field
      for disabling all power-management features depends on DevSleep support,
      store that precomputed value in sc->sc_ipm_disable.
    
    * Make some operations on the AHCI_PREG_SCTL_IPM_* bitfield a bit clearer.
    
    * While there add AHCI_PREG_CMD_ICC_DEVSLEEP definition.

Summary of changes:
 sys/dev/disk/ahci/ahci.c        | 25 ++++++++++++++-----------
 sys/dev/disk/ahci/ahci.h        |  4 +++-
 sys/dev/disk/ahci/ahci_attach.c |  5 +++++
 sys/dev/disk/ahci/ahci_pm.c     |  6 +++---
 4 files changed, 25 insertions(+), 15 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9abd2bb89a2f347f9045f4032c17df69f85818ba


-- 
DragonFly BSD source repository



More information about the Commits mailing list