Skip to content

mmc: sdhci-pci-gli: Remove unnecessary device-dependent code

Bjorn Helgaas linux-mmc linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mmc: sdhci-pci-gli: Use PCI AER definitions, not hard-coded valuesdrivers/mmc/host/sdhci-pci-gli.c+14 -120 replies
2/2mmc: sdhci-pci-gli: Use pci_set_power_state(), not direct PMCSR writesdrivers/mmc/host/sdhci-pci-gli.c+4 -162 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] mmc: sdhci-pci-gli: Remove unnecessary device-dependent code

From: Bjorn Helgaas <[email protected]>

Previously the driver hard-coded the config space locations of the Power Management and the AER Capabilities and included device-specific #defines for bits defined by the PCI spec. This replaces those with the equivalents from the PCI core.

This also replace hard-coded power state changes (to D3hot and back to D0) with the pci_set_power_state() interface, which takes care of the required delays after these transitions.

Bjorn Helgaas (2):
mmc: sdhci-pci-gli: Use PCI AER definitions, not hard-coded values
mmc: sdhci-pci-gli: Use pci_set_power_state(), not direct PMCSR writes

 drivers/mmc/host/sdhci-pci-gli.c | 46 +++++++++++++-------------------
 1 file changed, 18 insertions(+), 28 deletions(-)
Signature · 1 line
2.34.1