linux/arch
Krzysztof Wilczyński 7d9779cb10 alpha/PCI: Use BAR index in sysfs attr->private instead of resource pointer
Currently, Alpha's pci_create_one_attr() stores a resource pointer in
attr->private, and pci_mmap_resource() loops through all BARs to find
the matching index.

Store the BAR index directly in attr->private and retrieve the resource via
pci_resource_n().  This eliminates the loop and aligns with the convention
used by the generic PCI sysfs code.

The PCI core change was first added in the commit dca40b186b ("PCI: Use
BAR index in sysfs attr->private instead of resource pointer").

Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Magnus Lindholm <linmag7@gmail.com>
Tested-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Acked-by: Magnus Lindholm <linmag7@gmail.com>
Link: https://patch.msgid.link/20260508043543.217179-13-kwilczynski@kernel.org
History 2026-06-23 15:19:08 -05:00
..
alpha alpha/PCI: Use BAR index in sysfs attr->private instead of resource pointer 2026-06-23 15:19:08 -05:00
arc bpf-fixes 2026-04-17 15:58:22 -07:00
arm ARM development for 7.1-rc1 2026-04-25 07:44:26 -07:00
arm64 soc: late changes for 7.1 2026-04-23 08:57:24 -07:00
csky arch, mm: consolidate empty_zero_page 2026-04-05 13:53:01 -07:00
hexagon mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
loongarch LoongArch changes for v7.1 2026-04-24 09:54:45 -07:00
m68k m68k updates for v7.1 2026-04-16 08:11:01 -07:00
microblaze mm: change to return bool for ptep_test_and_clear_young() 2026-04-05 13:53:35 -07:00
mips Delete some obsolete networking code 2026-04-24 09:41:58 -07:00
nios2 mm: convert do_brk_flags() to use vma_flags_t 2026-04-05 13:53:40 -07:00
openrisc arch, mm: consolidate empty_zero_page 2026-04-05 13:53:01 -07:00
parisc parisc architecture fixes and updates for kernel v7.1-rc1: 2026-04-18 11:37:36 -07:00
powerpc Delete some obsolete networking code 2026-04-24 09:41:58 -07:00
riscv RISC-V updates for v7.1 2026-04-24 10:00:37 -07:00
s390 s390 updates for 7.1 merge window 2026-04-22 11:13:45 -07:00
sh sh updates for v7.1 2026-04-20 16:41:19 -07:00
sparc memblock: updates for 7.0-rc1 2026-04-18 11:29:14 -07:00
um Mostly cleanups and small things, notably: 2026-04-20 16:36:46 -07:00
x86 Miscellaneous x86 fixes: 2026-04-24 10:05:42 -07:00
xtensa Xtensa updates for v7.1 2026-04-23 16:40:03 -07:00
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
Kconfig parisc architecture fixes and updates for kernel v7.1-rc1: 2026-04-18 11:37:36 -07:00