Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH v5 0/2] PCI: Introduce pci_clear/set_config_dword()
@ 2026-11-12  3:19 Hans Zhang
  2026-11-12  3:19 ` [PATCH v5 1/2] " Hans Zhang
  2026-11-12  3:19 ` [PATCH v5 2/2] PCI/AER: Use pci_clear/set_config_dword to simplify code Hans Zhang
  0 siblings, 2 replies; 5+ messages in thread
From: Hans Zhang @ 2026-11-12  3:19 UTC (permalink / raw)
  To: mahesh, bhelgaas
  Cc: oohall, mani, lukas, linuxppc-dev, linux-pci, linux-kernel,
	Hans Zhang

Hi,

This series introduces auxiliary functions for the PCI configuration space
and simplifies the read and write operations of the AER driver, reducing a
lot of repetitive code.

Patch 1 adds pci_clear_config_dword() and pci_set_config_dword() helpers
to reduce repetitive read-modify-write sequences when modifying PCI config
space. These helpers improve code readability and maintainability.

Patch 2 refactors the PCIe AER driver to use these new helpers,
eliminating manual read-modify-write patterns and intermediate variable
in several functions. This results in cleaner and more concise code.

Changes for v5:
- Rebase onto v7.4-rc2.

Changes for v4:
- Introduce pci_clear/set_config_dword() (Lukas)

Changes for v3:
- Rebase to v6.17-rc1.
- Modify the patch commit messages.
- Add Acked-by: Manivannan Sadhasivam <mani@kernel.org>

Changes for v2:
- Modify the patch commit messages.
- Add new optimizations for the functions disable_ecrc_checking,
  aer_enable_irq, and aer_disable_irq.

v4 patch:
https://patchwork.kernel.org/project/linux-pci/patch/20251101162219.12016-2-18255117159@163.com/

v3 series:
https://patchwork.kernel.org/project/linux-pci/patch/20250816161743.340684-1-18255117159@163.com/

Hans Zhang (2):
  PCI: Introduce pci_clear/set_config_dword()
  PCI/AER: Use pci_clear/set_config_dword to simplify code

 drivers/pci/pcie/aer.c | 29 ++++++++++-------------------
 include/linux/pci.h    | 12 ++++++++++++
 2 files changed, 22 insertions(+), 19 deletions(-)


base-commit: 79eb6679ef6a0d5ea68da53a8321fb1dc72299b9
-- 
2.43.0


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

end of thread, other threads:[~2026-11-12  3:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12  3:19 [PATCH v5 0/2] PCI: Introduce pci_clear/set_config_dword() Hans Zhang
2026-11-12  3:19 ` [PATCH v5 1/2] " Hans Zhang
2026-11-12  3:25   ` sashiko-bot
2026-11-12  3:19 ` [PATCH v5 2/2] PCI/AER: Use pci_clear/set_config_dword to simplify code Hans Zhang
2026-11-12  3:23   ` sashiko-bot

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