mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Habil Eren Türker" <habilerenturker@hotmail.com>
To: "bhelgaas@google.com" <bhelgaas@google.com>
Cc: "andriy.shevchenko@intel.com" <andriy.shevchenko@intel.com>,
	"bp@alien8.de" <bp@alien8.de>,
	"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
	"hpa@zytor.com" <hpa@zytor.com>,
	"mingo@redhat.com" <mingo@redhat.com>,
	"tglx@kernel.org" <tglx@kernel.org>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"x86@kernel.org" <x86@kernel.org>,
	"Habil Eren Türker" <habilerenturker@hotmail.com>
Subject: [PATCH v2 0/4] PCI: Add pci_power_t helper functions
Date: Thu, 19 Nov 2026 14:35:44 +0000	[thread overview]
Message-ID: <cover.1795097970.git.habilerenturker@hotmail.com> (raw)

This series introduces helper functions for accessing PCI power
states in the Power Management Control/Status register and
converts existing PMCSR accesses to use these helpers.

The helpers provide typed access to the PCI power state field,
including extraction, setting, and comparison operations.
The series also updates the Apple Airport reset quirk to use
the new comparison helper.

**Scope**

This series focuses on operations involving raw PCI PMCSR
values. Comparisons between values already typed as
`pci_power_t` are intentionally left unchanged, as they do
not involve raw register values.

If there is interest in introducing a separate set of
helpers for comparisons between `pci_power_t` values, I can
prepare that as a follow-up series.

The changes follow the discussion with Andy Shevchenko and
Bjorn Helgaas in response to the original Apple Airport quirk
patch.

Changes in v2:
- Add helpers for comparing PCI power states.
- Convert PCI core and quirk code to use the new helpers.
- Address review feedback.

This series is based on the discussion following the original
Apple Airport quirk patch:
https://lore.kernel.org/lkml/20261118161559.63617-1-habilerenturker@hotmail.com/

LLM assistance was used for editing the cover letter and commit
descriptions. All changes were reviewed by the submitter.

Habil Eren Türker (4):
  PCI: Add pci_power_t helper functions
  PCI: Convert pci.c to pci_power_t helpers
  PCI: Convert quirks.c to pci_power_t helpers
  x86/quirks: Use pci_power_eq() in apple_airport_reset()

 arch/x86/kernel/early-quirks.c |  6 +++---
 drivers/pci/pci.c              | 26 +++++++++++---------------
 drivers/pci/quirks.c           |  2 +-
 include/linux/pci.h            | 28 ++++++++++++++++++++++++++++
 4 files changed, 43 insertions(+), 19 deletions(-)


base-commit: c054fccfff7ba1ad9d8913921f5a952bb32513cd
-- 
2.47.3


             reply	other threads:[~2026-11-19 14:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 14:35 Habil Eren Türker [this message]
2026-11-19 14:35 ` [PATCH v2 1/4] " Habil Eren Türker
2026-11-19 16:51   ` andriy.shevchenko
2026-11-19 17:07     ` Bjorn Helgaas
2026-11-19 17:18       ` andriy.shevchenko
2026-11-19 17:23   ` Bjorn Helgaas
2026-11-19 14:35 ` [PATCH v2 2/4] PCI: Convert pci.c to pci_power_t helpers Habil Eren Türker
2026-11-19 17:09   ` andriy.shevchenko
2026-11-19 14:35 ` [PATCH v2 3/4] PCI: Convert quirks.c " Habil Eren Türker
2026-11-19 17:11   ` andriy.shevchenko
2026-11-19 14:35 ` [PATCH v2 4/4] x86/quirks: Use pci_power_eq() in apple_airport_reset() Habil Eren Türker
2026-11-19 17:14   ` andriy.shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1795097970.git.habilerenturker@hotmail.com \
    --to=habilerenturker@hotmail.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=bhelgaas@google.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®