realtek: Use built-in functionality for timeout loop
authorOlliver Schinagl <oliver@schinagl.nl>
Wed, 31 Aug 2022 15:20:52 +0000 (17:20 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 14 Sep 2022 10:03:57 +0000 (12:03 +0200)
commit9cec4a0ea45b241cc54c5bc172510b843f19229e
tree62842628a9c28317c8f79cd5ffad445ffaaaea34
parentcf2c9498bed5e2f34170ada394be26348949f107
realtek: Use built-in functionality for timeout loop

In commit 81e3017609be ("realtek: clean up rtl838x MDIO busy wait loop")
a hand-crafted loop was created, that nearly exactly replicate the
iopoll's `read_poll_timeout` functionality.

Use that instead.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/rtl838x.c