OSDN Git Service

net: mscc: ocelot: Register poll timeout should be wall time not attempts
authorSteen Hegelund <steen.hegelund@microchip.com>
Thu, 20 Dec 2018 13:16:31 +0000 (14:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Dec 2018 00:39:56 +0000 (16:39 -0800)
commit639c1b2625af66501b24c8082231a83d4f5ad56b
tree0113ec49f4e8bba74ac7e3d19babfdb53849986a
parent463561e6b9facf93ef90b65d2c75a80c7262d778
net: mscc: ocelot: Register poll timeout should be wall time not attempts

When doing indirect access in the Ocelot chip, a command is setup,
issued and then we need to poll until the result is ready. The polling
timeout is specified in milliseconds in the datasheet and not in
register access attempts.
It is not a bug on the currently supported platform, but we observed
that the code does not work properly on other platforms that we want to
support as the timing requirements there are different.

Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c