OSDN Git Service

net: axienet: increase reset timeout
authorRobert Hancock <robert.hancock@calian.com>
Tue, 18 Jan 2022 21:41:24 +0000 (15:41 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jan 2022 11:29:14 +0000 (11:29 +0000)
commit2e5644b1bab2ccea9cfc7a9520af95b94eb0dbf1
treedf43ecc6a3b4956b84caee3afef5f69212f9b8df
parent99845220d3c3bd021819c5fea3d7cb55b2556296
net: axienet: increase reset timeout

The previous timeout of 1ms was too short to handle some cases where the
core is reset just after the input clocks were started, which will
be introduced in an upcoming patch. Increase the timeout to 50ms. Also
simplify the reset timeout checking to use read_poll_timeout.

Fixes: 8a3b7a252dca9 ("drivers/net/ethernet/xilinx: added Xilinx AXI Ethernet driver")
Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c