mn10300: make the ASB2305's PCnet32 NIC work by using the PCI bridge's SRAM
authorDavid Howells <dhowells@redhat.com>
Fri, 8 Jan 2010 22:43:21 +0000 (14:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 11 Jan 2010 17:34:10 +0000 (09:34 -0800)
commit012c79bad50469d964fda126102080d4b93a5946
treeb67c2c3787b1d4aebf79a2cdb08d89c0f159be4e
parent112b4a0bf1080b3d40a2d3b3982361229b25e72d
mn10300: make the ASB2305's PCnet32 NIC work by using the PCI bridge's SRAM

Access to the ASB2305's PCnet32 NIC doesn't work correctly because when
the NIC attempts to update the ring buffer flags by DMA, the change to RAM
crops up about 17uS after the interrupt line is asserted.  This is almost
certainly due to a bug in the PCI bridge FPGA on that board.

We can get around this by making dma_alloc_coherent() put the ring buffer
in the SRAM attached to the PCI bridge rather than in the SDRAM.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/mn10300/mm/dma-alloc.c