public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mmc: sdhci-pci-gli: Remove unnecessary device-dependent code
@ 2024-03-27 21:48 Bjorn Helgaas
  2024-03-27 21:48 ` [PATCH 1/2] mmc: sdhci-pci-gli: Use PCI AER definitions, not hard-coded values Bjorn Helgaas
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bjorn Helgaas @ 2024-03-27 21:48 UTC (permalink / raw)
  To: Adrian Hunter, Ulf Hansson, Victor Shih, Ben Chuang
  Cc: Kai-Heng Feng, Sven van Ashbrook, Stanislaw Kardach, Brian Norris,
	Jason Lai, Renius Chen, linux-pci, linux-mmc, linux-kernel,
	Bjorn Helgaas

From: Bjorn Helgaas <bhelgaas@google.com>

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(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-04-02 10:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-27 21:48 [PATCH 0/2] mmc: sdhci-pci-gli: Remove unnecessary device-dependent code Bjorn Helgaas
2024-03-27 21:48 ` [PATCH 1/2] mmc: sdhci-pci-gli: Use PCI AER definitions, not hard-coded values Bjorn Helgaas
2024-03-27 21:48 ` [PATCH 2/2] mmc: sdhci-pci-gli: Use pci_set_power_state(), not direct PMCSR writes Bjorn Helgaas
2024-03-28  1:01   ` Ben Chuang
2024-04-02 10:33     ` Ulf Hansson
2024-04-02 10:57 ` [PATCH 0/2] mmc: sdhci-pci-gli: Remove unnecessary device-dependent code Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox