net: w5100: increase TX timeout period
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 14 May 2016 05:55:49 +0000 (14:55 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2016 17:55:49 +0000 (13:55 -0400)
commit7d6da453efce17fae35707fa7e5757e7ade8b3cc
tree0c9aa7ef2dbc90364b5fa27b45c4e4c1bfa8eb0d
parentd41cd5f7e2fce8d3c5b1345a7cf9ed3f0d2d99c1
net: w5100: increase TX timeout period

This increases TX timeout period from one second to 5 seconds which is
the default value if the driver doesn't explicitly set
net_device->watchdog_timeo.

The one second timeout is too short for W5100 with SPI interface mode
which doesn't support burst READ/WRITE processing in the SPI transfer.
If the packet is transmitted while RX packets are being received at a
very high rate, the TX transmittion work in the workqueue is delayed
and the watchdog timer is expired.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Mike Sinkovsky <msink@permonline.ru>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/wiznet/w5100.c