]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: retrieve and parse ACPI power limitations
authorIdo Yariv <ido@wizery.com>
Fri, 17 Jan 2014 02:00:11 +0000 (21:00 -0500)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 3 Feb 2014 20:23:38 +0000 (22:23 +0200)
commite1e482ae1b7da6eb4a6dfb4dc72d2d6c57d6da22
tree2d0b7634b195fbc301666bc59fd97f141cd5cebf
parente967cd453c001fb9059ea4534191b0facd2ed277
iwlwifi: pcie: retrieve and parse ACPI power limitations

Some platforms may have power limitations on PCIe cards connected to
specific root ports.

This information is encoded as part of the ACPI tables, for instance:
<snip>
           Name (SPLX, Package (0x02)
           {
               Zero,
               Package (0x03)
               {
                   0x07,
                   0x00000500,
                   0x80000000
               }
           })

           Method (SPLC, 0, Serialized)
           {
               Return (SPLX)
           }
</snip>

The structure returned contains the domain type, the default power
limitation and the default time window (reserved for future use).

Upon PCI probing, call the relevant ACPI method, parse the returned
structure, and save the power limitation.

Signed-off-by: Ido Yariv <idox.yariv@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/iwl-trans.h
drivers/net/wireless/iwlwifi/pcie/drv.c