Skip to content

Commit

Permalink
csky: PCI: Define ARCH_GENERIC_PCI_MMAP_RESOURCE
Browse files Browse the repository at this point in the history
This looks to be something that was accidentally left out on the csky port.
Define ARCH_GENERIC_PCI_MMAP_RESOURCE to keep it inline with other ports.
Adding ARCH_GENERIC_PCI_MMAP_RESOURCE enables the definition of modern
pci_mmap_resource_range() functions which is generally what new ports
should be using.

Link: https://lore.kernel.org/r/20220722214944.831438-4-shorne@gmail.com
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Guo Ren <guoren@kernel.org>
  • Loading branch information
stffrdhrn authored and bjorn-helgaas committed Jul 22, 2022
1 parent abb4970 commit f619d23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/csky/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
/* C-SKY shim does not initialize PCI bus */
#define pcibios_assign_all_busses() 1

#define ARCH_GENERIC_PCI_MMAP_RESOURCE 1

#ifdef CONFIG_PCI
static inline int pci_proc_domain(struct pci_bus *bus)
{
Expand Down

0 comments on commit f619d23

Please sign in to comment.