]> err.no Git - linux-2.6/commit
[PATCH] PCI: fix-pci-mmap-on-ppc-and-ppc64.patch
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 13 May 2005 07:44:10 +0000 (17:44 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jun 2005 04:52:45 +0000 (21:52 -0700)
commit2311b1f2bbd36fa5f366a7448c718b2556e0f02c
tree10e836c5c34893f8098464a5ae15aba351a7bb2a
parenta0d399a808916d22c1c222c6b5ca4e8edd6d91a9
[PATCH] PCI: fix-pci-mmap-on-ppc-and-ppc64.patch

This is an updated version of Ben's fix-pci-mmap-on-ppc-and-ppc64.patch
which is in 2.6.12-rc4-mm1.

It fixes the patch to work on PPC iSeries, removes some debug printks
at Ben's request, and incorporates your
fix-pci-mmap-on-ppc-and-ppc64-fix.patch also.

Originally from Benjamin Herrenschmidt <benh@kernel.crashing.org>

This patch was discussed at length on linux-pci and so far, the last
iteration of it didn't raise any comment.  It's effect is a nop on
architecture that don't define the new pci_resource_to_user() callback
anyway.  It allows architecture like ppc who put weird things inside of
PCI resource structures to convert to some different value for user
visible ones.  It also fixes mmap'ing of IO space on those archs.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/ppc/kernel/pci.c
arch/ppc64/kernel/pci.c
drivers/pci/pci-sysfs.c
drivers/pci/proc.c
include/asm-ppc/pci.h
include/asm-ppc64/pci.h
include/linux/pci.h