]> 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)
commit6cf9e116d5eb5fd945df994ce5bb6d9e2cecc434
tree0113ec49f4e8bba74ac7e3d19babfdb53849986a
parent62b6aeb6c3aaa7f34a7f638c5016d369ec21de62
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