]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Use pci_generic_prep_mwi on sparc64
authorMatthew Wilcox <matthew@wil.cx>
Tue, 10 Oct 2006 14:01:20 +0000 (08:01 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Dec 2006 22:36:57 +0000 (14:36 -0800)
commit614124cb7bcbdc4202b3eb8c44a2d1d1fc1b2c43
tree5df978f750d554f2fd2cdd6f5694be943fd80e9f
parentb09674272a16293e020844db28635bbfddc2cb4f
PCI: Use pci_generic_prep_mwi on sparc64

The setting of the CACHE_LINE_SIZE register in sparc64's pci
initialisation code isn't quite adequate as the device may have
incompatible requirements.  The generic code tests for this, so switch
sparc64 over to using it.

Since sparc64 has different L1 cache line size and PCI cache line size,
it would need to override the generic code like i386 and ia64 do.  We
know what the cache line size is at compile time though, so introduce a
new optional constant PCI_CACHE_LINE_BYTES.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: David Miller <davem@davemloft.net>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc64/kernel/pci.c
drivers/pci/pci.c
include/asm-sparc64/pci.h