PCI: Add and use pcim_iomap_region()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | PCI: Add pcim_iomap_regiondrivers/ include/ | +30 | 0 replies | |
| 2/2 | r8169: use new function pcim_iomap_region()drivers/ | +3 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] PCI: Add and use pcim_iomap_region()
Several drivers use the following sequence for a single BAR:
rc = pcim_iomap_regions(pdev, BIT(bar), name);
if (rc)
error;
addr = pcim_iomap_table(pdev)[bar];
Let's create a simpler (from implementation and usage perspective) pcim_iomap_region() for this use case.
Note: The check for !pci_resource_len() is included in pcim_iomap(), so we don't have to duplicate it.
Make r8169 the first user of the new function.
I'd prefer to handle this via the PCI tree.
Heiner Kallweit (2):
PCI: Add pcim_iomap_region
r8169: use new function pcim_iomap_region()
drivers/net/ethernet/realtek/r8169_main.c | 8 +++---- drivers/pci/devres.c | 28 +++++++++++++++++++++++ include/linux/pci.h | 2 ++ 3 files changed, 33 insertions(+), 5 deletions(-)
Signature · 1 line
2.44.0