From: Benjamin Herrenschmidt Date: Thu, 29 Aug 2013 06:55:07 +0000 (+1000) Subject: powerpc: Enable /dev/port when isa_io_special is set X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ac237b65f56c9b80d7774c35ccce15a74d445621;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git powerpc: Enable /dev/port when isa_io_special is set isa_io_special is set when the platform provides a "special" implementation of inX/outX via some FW interface for example. Such a platform doesn't need an ISA bridge on PCI, and so /dev/port should be made available even if one isn't present. This makes the LPC bus IOs accessible via /dev/port on PowerNV Power8 Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/include/asm/io.h b/arch/powerpc/include/asm/io.h index db1f29673c06..575fbf81fad0 100644 --- a/arch/powerpc/include/asm/io.h +++ b/arch/powerpc/include/asm/io.h @@ -21,7 +21,7 @@ extern struct pci_dev *isa_bridge_pcidev; /* * has legacy ISA devices ? */ -#define arch_has_dev_port() (isa_bridge_pcidev != NULL) +#define arch_has_dev_port() (isa_bridge_pcidev != NULL || isa_io_special) #endif #include