]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerZefan Li <lizefan@huawei.com>
Fri, 19 Jun 2015 03:40:28 +0000 (11:40 +0800)
commite5b3d85e53f72d0b18908a05b7366aaea3f893f5
treed24cbe7850cdced9db7573525eb5f56f420f9d08
parent9a02d7b6071cbe9d3b3e65127852c97c72a7ee72
net: ethernet: pcnet32: Setup the SRAM and NOUFLO on Am79C97{3, 5}

commit 87f966d97b89774162df04d2106c6350c8fe4cb3 upstream.

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: <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>
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/net/ethernet/amd/pcnet32.c