Re: [PATCH] MIPS: Loongson64: Define PCI_IOBASE

From: Thomas Bogendoerfer
Date: Thu May 28 2020 - 03:46:23 EST


On Wed, May 27, 2020 at 09:17:21PM +0800, Jiaxun Yang wrote:
> PCI_IOBASE is used to create VM maps for PCI I/O ports, it is
> required by generic PCI drivers to make memory mapped I/O range
> work.
>
> To deal with legacy drivers that have fixed I/O ports range we
> reserved 0x10000 in PCI_IOBASE, should be enough for i8259 i8042
> stuff.
>
> Signed-off-by: Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx>
> ---
> .../mips/include/asm/mach-loongson64/spaces.h | 8 ++++
> arch/mips/loongson64/init.c | 42 ++++++++++++++++++-
> 2 files changed, 48 insertions(+), 2 deletions(-)

that looks so much nicer, thank you for doing this. Applied to mips-next.

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]