]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b5a6f9dcf8f08277d60a3ed1b0cb9b766bac70a
tree0113ec49f4e8bba74ac7e3d19babfdb53849986a
parent1b891149e3508f1c53f7b5c9a15e2513cc7ebb48
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