mmc: sdhci-acpi: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers
PATCH 1/2 mmc: sdhci-acpi: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers
Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card controllers.
--- drivers/mmc/host/sdhci-acpi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/mmc/host/sdhci-acpi.c +2 -4
@@ -263,10 +263,8 @@ static int sdhci_acpi_sd_probe_slot(struct platform_device *pdev,/* Platform specific code during sd probe slot goes here */ -if (hid && !strcmp (hid,"80865ACA" )) { +if (hid && !strcmp (hid,"80865ACA" )) host->mmc_host_ops.get_cd = bxt_get_cd; - host->mmc->caps |=MMC_CAP_AGGRESSIVE_PM ; - }return 0 ; }
@@ -302,7 +300,7 @@ static int sdhci_acpi_sd_probe_slot(struct platform_device *pdev, .quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC, .quirks2 = SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON | SDHCI_QUIRK2_STOP_WITH_TC, - .caps = MMC_CAP_WAIT_WHILE_BUSY, + .caps = MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_AGGRESSIVE_PM, .probe_slot = sdhci_acpi_sd_probe_slot, };
Signature · 1 line
1.9.1
PATCH 2/2 mmc: sdhci-pci: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers
Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card controllers.
--- drivers/mmc/host/sdhci-pci-core.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/mmc/host/sdhci-pci-core.c +3 -4
@@ -423,16 +423,15 @@ static int byt_sdio_probe_slot(struct sdhci_pci_slot *slot)static int byt_sd_probe_slot (struct sdhci_pci_slot *slot) { - slot->host->mmc->caps |=MMC_CAP_WAIT_WHILE_BUSY ; + slot->host->mmc->caps |=MMC_CAP_WAIT_WHILE_BUSY | +MMC_CAP_AGGRESSIVE_PM ; slot->cd_idx =0 ; slot->cd_override_level = true;if (slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_BXT_SD || slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_BXTM_SD || slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_APL_SD || - slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_GLK_SD ) { + slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_GLK_SD ) slot->host->mmc_host_ops.get_cd = bxt_get_cd; - slot->host->mmc->caps |=MMC_CAP_AGGRESSIVE_PM ; - }return 0 ; }
Signature · 1 line
1.9.1
PATCH v2 1/2 mmc: sdhci-acpi: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers
In reply to Azhar ShaikhSet MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card controllers.
---
Changes in v2:
- Rebased the patch on top of 'next' branch.
- No code change.
drivers/mmc/host/sdhci-acpi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/mmc/host/sdhci-acpi.c +2 -4
@@ -263,10 +263,8 @@ static int sdhci_acpi_sd_probe_slot(struct platform_device *pdev,/* Platform specific code during sd probe slot goes here */ -if (hid && !strcmp (hid,"80865ACA" )) { +if (hid && !strcmp (hid,"80865ACA" )) host->mmc_host_ops.get_cd = bxt_get_cd; - host->mmc->caps |=MMC_CAP_AGGRESSIVE_PM ; - }return 0 ; }
@@ -302,7 +300,7 @@ static int sdhci_acpi_sd_probe_slot(struct platform_device *pdev, .quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC, .quirks2 = SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON | SDHCI_QUIRK2_STOP_WITH_TC, - .caps = MMC_CAP_WAIT_WHILE_BUSY, + .caps = MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_AGGRESSIVE_PM, .probe_slot = sdhci_acpi_sd_probe_slot, };
Signature · 1 line
1.9.1
PATCH v2 2/2 mmc: sdhci-pci: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers
Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card controllers.
---
Changes in v2:
- Rebased the patch on top of 'next' branch.
- No code change.
drivers/mmc/host/sdhci-pci-core.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/mmc/host/sdhci-pci-core.c +3 -4
@@ -630,16 +630,15 @@ static int byt_sdio_probe_slot(struct sdhci_pci_slot *slot)static int byt_sd_probe_slot (struct sdhci_pci_slot *slot) {byt_read_dsm (slot); - slot->host->mmc->caps |=MMC_CAP_WAIT_WHILE_BUSY ; + slot->host->mmc->caps |=MMC_CAP_WAIT_WHILE_BUSY | +MMC_CAP_AGGRESSIVE_PM ; slot->cd_idx =0 ; slot->cd_override_level = true;if (slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_BXT_SD || slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_BXTM_SD || slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_APL_SD || - slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_GLK_SD ) { + slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_GLK_SD ) slot->host->mmc_host_ops.get_cd = bxt_get_cd; - slot->host->mmc->caps |=MMC_CAP_AGGRESSIVE_PM ; - }return 0 ; }
Signature · 1 line
1.9.1
Re: [PATCH v2 2/2] mmc: sdhci-pci: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers
Quoted 4 lines · Azhar Shaikh
Set
MMC_CAP_AGGRESSIVE_PMfor BYT-related Intel SD card controllers.Signed-off-by Azhar Shaikh <[email protected]>
Quoted 33 lines
---
Changes in v2:
- Rebased the patch on top of 'next' branch.
- No code change.drivers/mmc/host/sdhci-pci-core.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)drivers/mmc/host/sdhci-pci-core.c +3
-4@@ -630,16 +630,15 @@ static int byt_sdio_probe_slot(struct sdhci_pci_slot *slot)static int byt_sd_probe_slot (struct sdhci_pci_slot *slot) {byt_read_dsm (slot); - slot->host->mmc->caps |=MMC_CAP_WAIT_WHILE_BUSY ; + slot->host->mmc->caps |=MMC_CAP_WAIT_WHILE_BUSY | +MMC_CAP_AGGRESSIVE_PM ; slot->cd_idx =0 ; slot->cd_override_level = true;if (slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_BXT_SD || slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_BXTM_SD || slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_APL_SD || - slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_GLK_SD ) { + slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_GLK_SD ) slot->host->mmc_host_ops.get_cd = bxt_get_cd; - slot->host->mmc->caps |=MMC_CAP_AGGRESSIVE_PM ; - }return 0 ; }
Ulf Hansson
AppliedRe: [PATCH v2 2/2] mmc: sdhci-pci: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers
In reply to Azhar ShaikhQuoted 4 lines · Azhar Shaikh
Set
MMC_CAP_AGGRESSIVE_PMfor BYT-related Intel SD card controllers.Signed-off-by Azhar Shaikh <[email protected]>
Thanks, applied for next!
Kind regards
Uffe
Quoted 35 lines
---
Changes in v2:
- Rebased the patch on top of 'next' branch.
- No code change.drivers/mmc/host/sdhci-pci-core.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)drivers/mmc/host/sdhci-pci-core.c +3
-5@@ -630,16 +630,15 @@ static int byt_sdio_probe_slot(struct sdhci_pci_slot *slot)static int byt_sd_probe_slot (struct sdhci_pci_slot *slot) {byt_read_dsm (slot); - slot->host->mmc->caps |=MMC_CAP_WAIT_WHILE_BUSY ; + slot->host->mmc->caps |=MMC_CAP_WAIT_WHILE_BUSY | +MMC_CAP_AGGRESSIVE_PM ; slot->cd_idx =0 ; slot->cd_override_level = true;if (slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_BXT_SD || slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_BXTM_SD || slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_APL_SD || - slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_GLK_SD ) { + slot->chip->pdev->device ==PCI_DEVICE_ID_INTEL_GLK_SD ) slot->host->mmc_host_ops.get_cd = bxt_get_cd; - slot->host->mmc->caps |=MMC_CAP_AGGRESSIVE_PM ; - }return 0 ; } --1.9.1
Quoted 4 lines · Azhar Shaikh
Set
MMC_CAP_AGGRESSIVE_PMfor BYT-related Intel SD card controllers.Signed-off-by Azhar Shaikh <[email protected]>
Quoted 34 lines
---
Changes in v2:
- Rebased the patch on top of 'next' branch.
- No code change.drivers/mmc/host/sdhci-acpi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/mmc/host/sdhci-acpi.c +2
-4@@ -263,10 +263,8 @@ static int sdhci_acpi_sd_probe_slot(struct platform_device *pdev,/* Platform specific code during sd probe slot goes here */ -if (hid && !strcmp (hid,"80865ACA" )) { +if (hid && !strcmp (hid,"80865ACA" )) host->mmc_host_ops.get_cd = bxt_get_cd; - host->mmc->caps |=MMC_CAP_AGGRESSIVE_PM ; - }return 0 ; }@@ -302,7 +300,7 @@ static int sdhci_acpi_sd_probe_slot(struct platform_device *pdev, .quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC, .quirks2 = SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON | SDHCI_QUIRK2_STOP_WITH_TC, - .caps = MMC_CAP_WAIT_WHILE_BUSY, + .caps = MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_AGGRESSIVE_PM, .probe_slot = sdhci_acpi_sd_probe_slot, };
Ulf Hansson
AppliedQuoted 4 lines · Azhar Shaikh
Set
MMC_CAP_AGGRESSIVE_PMfor BYT-related Intel SD card controllers.Signed-off-by Azhar Shaikh <[email protected]>
Thanks, applied for next!
Kind regards
Uffe
Quoted 36 lines
---
Changes in v2:
- Rebased the patch on top of 'next' branch.
- No code change.drivers/mmc/host/sdhci-acpi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/mmc/host/sdhci-acpi.c +2
-5@@ -263,10 +263,8 @@ static int sdhci_acpi_sd_probe_slot(struct platform_device *pdev,/* Platform specific code during sd probe slot goes here */ -if (hid && !strcmp (hid,"80865ACA" )) { +if (hid && !strcmp (hid,"80865ACA" )) host->mmc_host_ops.get_cd = bxt_get_cd; - host->mmc->caps |=MMC_CAP_AGGRESSIVE_PM ; - }return 0 ; }@@ -302,7 +300,7 @@ static int sdhci_acpi_sd_probe_slot(struct platform_device *pdev, .quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC, .quirks2 = SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON | SDHCI_QUIRK2_STOP_WITH_TC, - .caps = MMC_CAP_WAIT_WHILE_BUSY, + .caps = MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_AGGRESSIVE_PM, .probe_slot = sdhci_acpi_sd_probe_slot, }; --1.9.1