mv643xx_eth: detect extended rx coal register field
authorLennert Buytenhek <buytenh@wantstofly.org>
Sun, 1 Jun 2008 23:54:16 +0000 (01:54 +0200)
committerLennert Buytenhek <buytenh@wantstofly.org>
Thu, 12 Jun 2008 06:40:37 +0000 (08:40 +0200)
commit773fc3ee7ef47081c018c964829b660d6be9ee01
tree63cd9782ae0312cf044b2bd64ce8bc81002259ee
parent226bb6b732f8c2cc7004279c509333fa41186a6d
mv643xx_eth: detect extended rx coal register field

Newer hardware has a 16-bit instead of a 14-bit RX coalescing
count field in the SDMA_CONFIG register.  This patch adds a run-time
check for which of the two we have, and adjusts further writes to the
rx coal count field accordingly.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Acked-by: Dale Farnsworth <dale@farnsworth.org>
drivers/net/mv643xx_eth.c