diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2016-02-18 09:54:14 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-02-19 16:52:46 +0100 |
commit | 8ea909cb35bc2c3226610f8631c73e355020a26e (patch) | |
tree | 5312d48a1871e8a09bbf3b954421e5e7fc929877 /drivers/ata/ahci.h | |
parent | scsi: Drop runtime PM usage count after host is added (diff) | |
download | linux-8ea909cb35bc2c3226610f8631c73e355020a26e.tar.xz linux-8ea909cb35bc2c3226610f8631c73e355020a26e.zip |
ahci: Cache host controller version
This allows sysfs nodes to read the cached value directly instead of
powering up possibly runtime suspended controller.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/ahci.h')
-rw-r--r-- | drivers/ata/ahci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index 167ba7e3b92e..70b06bcfb7e3 100644 --- a/drivers/ata/ahci.h +++ b/drivers/ata/ahci.h @@ -335,6 +335,7 @@ struct ahci_host_priv { void __iomem * mmio; /* bus-independent mem map */ u32 cap; /* cap to use */ u32 cap2; /* cap2 to use */ + u32 version; /* cached version */ u32 port_map; /* port map to use */ u32 saved_cap; /* saved initial cap */ u32 saved_cap2; /* saved initial cap2 */ |