Commit 4dd4d3de authored by Mario Limonciello's avatar Mario Limonciello Committed by Damien Le Moal

ata: ahci: Rename CONFIG_SATA_LPM_MOBILE_POLICY configuration item

`CONFIG_SATA_LPM_MOBILE_POLICY` reflects a configuration to apply only to
mobile chipsets.  As some desktop boards may want to use this policy by
default as well, rename the configuration item to `SATA_LPM_POLICY`.
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Reviewed-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
parent e5c89479
...@@ -115,14 +115,14 @@ config SATA_AHCI ...@@ -115,14 +115,14 @@ config SATA_AHCI
If unsure, say N. If unsure, say N.
config SATA_MOBILE_LPM_POLICY config SATA_LPM_POLICY
int "Default SATA Link Power Management policy for mobile chipsets" int "Default SATA Link Power Management policy for low power chipsets"
range 0 4 range 0 4
default 0 default 0
depends on SATA_AHCI depends on SATA_AHCI
help help
Select the Default SATA Link Power Management (LPM) policy to use Select the Default SATA Link Power Management (LPM) policy to use
for mobile / laptop variants of chipsets / "South Bridges". for chipsets / "South Bridges" designated as supporting low power.
The value set has the following meanings: The value set has the following meanings:
0 => Keep firmware settings 0 => Keep firmware settings
......
...@@ -1595,7 +1595,7 @@ static int ahci_init_msi(struct pci_dev *pdev, unsigned int n_ports, ...@@ -1595,7 +1595,7 @@ static int ahci_init_msi(struct pci_dev *pdev, unsigned int n_ports,
static void ahci_update_initial_lpm_policy(struct ata_port *ap, static void ahci_update_initial_lpm_policy(struct ata_port *ap,
struct ahci_host_priv *hpriv) struct ahci_host_priv *hpriv)
{ {
int policy = CONFIG_SATA_MOBILE_LPM_POLICY; int policy = CONFIG_SATA_LPM_POLICY;
/* Ignore processing for chipsets that don't use policy */ /* Ignore processing for chipsets that don't use policy */
......
...@@ -236,7 +236,7 @@ enum { ...@@ -236,7 +236,7 @@ enum {
AHCI_HFLAG_NO_WRITE_TO_RO = (1 << 24), /* don't write to read AHCI_HFLAG_NO_WRITE_TO_RO = (1 << 24), /* don't write to read
only registers */ only registers */
AHCI_HFLAG_USE_LPM_POLICY = (1 << 25), /* chipset that should use AHCI_HFLAG_USE_LPM_POLICY = (1 << 25), /* chipset that should use
SATA_MOBILE_LPM_POLICY SATA_LPM_POLICY
as default lpm_policy */ as default lpm_policy */
AHCI_HFLAG_SUSPEND_PHYS = (1 << 26), /* handle PHYs during AHCI_HFLAG_SUSPEND_PHYS = (1 << 26), /* handle PHYs during
suspend/resume */ suspend/resume */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment