]> git.baikalelectronics.ru Git - kernel.git/commit
natsemi: fix MMIO for PPC 44x platforms
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Sat, 12 Apr 2008 16:58:30 +0000 (20:58 +0400)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 19:31:31 +0000 (15:31 -0400)
commit68cd8016bf33def2b7dd67b637ecd236e4531d4d
treee840c454c4b8cfa9a539d5017b426d20408beabb
parentb877edfe98fd9c016983e5e22b5bd3cc634dae00
natsemi: fix MMIO for PPC 44x platforms

The driver stores the PCI resource address into 'unsigned long' variable before
calling ioremap()  on it. This warrants a kernel oops when the registers are
accessed on PPC 44x platforms which (being 32-bit) have PCI memory space mapped
beyond 4 GB.

The arch/ppc/ kernel has a fixup in ioremap() that creates an illusion of the
PCI memory resources are mapped below 4 GB, but arch/powerpc/ code got rid of
this trick, having instead CONFIG_RESOURCES_64BIT enabled.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/natsemi.c