]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: utilize readx_poll_timeout() for chip reset
authorColin Foster <colin.foster@in-advantage.com>
Sat, 17 Sep 2022 17:51:26 +0000 (10:51 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Sep 2022 01:29:34 +0000 (18:29 -0700)
commit1abd03572480602ced9e9d4b100da9df97926a16
tree5ad2434520d6bfd2d4d993692b5045d6347bdbea
parent8e5458d4846060bcb927ab13013b0d112105648e
net: mscc: ocelot: utilize readx_poll_timeout() for chip reset

Clean up the reset code by utilizing readx_poll_timeout instead of a custom
loop.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/ocelot_vsc7514.c