]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/net/ethernet/amd/pcnet32.c
net: ethernet: pcnet32: Setup the SRAM and NOUFLO on Am79C97{3, 5}
authorMarkos Chandras <markos.chandras@imgtec.com>
Thu, 19 Mar 2015 10:28:14 +0000 (10:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2015 16:56:40 +0000 (12:56 -0400)
commit87f966d97b89774162df04d2106c6350c8fe4cb3
tree55713ee3440f8fbeaa3b362553182205d442b685
parent8e199dfd82ee097b522b00344af6448715d8ee0c
net: ethernet: pcnet32: Setup the SRAM and NOUFLO on Am79C97{3, 5}

On a MIPS Malta board, tons of fifo underflow errors have been observed
when using u-boot as bootloader instead of YAMON. The reason for that
is that YAMON used to set the pcnet device to SRAM mode but u-boot does
not. As a result, the default Tx threshold (64 bytes) is now too small to
keep the fifo relatively used and it can result to Tx fifo underflow errors.
As a result of which, it's best to setup the SRAM on supported controllers
so we can always use the NOUFLO bit.

Cc: <netdev@vger.kernel.org>
Cc: <stable@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>
Cc: Don Fry <pcnet32@frontier.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/pcnet32.c