lkml.org 
[lkml]   [2022]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v5 3/4] csky: PCI: Define ARCH_GENERIC_PCI_MMAP_RESOURCE
Acked-by: Guo Ren <guoren@kernel.org>

On Thu, Jul 21, 2022 at 9:50 PM Stafford Horne <shorne@gmail.com> wrote:
>
> This looks to be something that was left out on accident on the csky
> port. Add the definition of ARCH_GENERIC_PCI_MMAP_RESOURCE to keep it
> inline with other ports. Adding ARCH_GENERIC_PCI_MMAP_RESOURCE enables
> the definition of mordern pci_mmap_resource_range functions which is
> generally what new ports should be using.
>
> Signed-off-by: Stafford Horne <shorne@gmail.com>
> ---
> Since v4:
> - New patch.
>
> arch/csky/include/asm/pci.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/csky/include/asm/pci.h b/arch/csky/include/asm/pci.h
> index 5c02454ec724..875bc028f8f6 100644
> --- a/arch/csky/include/asm/pci.h
> +++ b/arch/csky/include/asm/pci.h
> @@ -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)
> {
> --
> 2.36.1
>


--
Best Regards
Guo Ren

\
 
 \ /
  Last update: 2022-07-22 05:28    [W:2.786 / U:1.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site