openwrt/target/linux/realtek
Sander Vanheule 693c1ea81a realtek: Use atomic poll for aux-mdio commands
regmap_read_poll_timeout() relies on usleep_range() to time the polling
loop. With the current, rather large, scheduling interval, a short
usleep_range() may take a lot longer than expected, causing performance
issues.

Switch the driver over to using regmap_read_poll_timeout_atomic(), which
uses udelay() to time the polling loop.

For comparision, the 'ethtool -m <dev>' command is about 10 times faster
with the atomic variant.
Using 'perf -r10 ethtool -m lan25':
  - Driver using regmap_read_poll_timeout():
      2.0117 +- 0.0118 seconds time elapsed  ( +-  0.58% )
  - Driver using regmap_read_poll_timeout_atomic():
      0.1674 +- 0.0250 seconds time elapsed  ( +- 14.95% )

Signed-off-by: Sander Vanheule <sander@svanheule.net>
2025-01-16 13:56:55 +01:00
..
base-files realtek: HPE 1920 24G PoE+ 180W/370W move fans to hwmon 2025-01-16 07:32:16 +01:00
dts realtek: HPE 1920 24G PoE+ 180W/370W move fans to hwmon 2025-01-16 07:32:16 +01:00
files/firmware/rtl838x_phy
files-6.6 realtek: align kernel config with upstream 2024-11-16 18:02:18 +01:00
image realtek: HPE 1920 24G PoE+ 180W/370W move fans to hwmon 2025-01-16 07:32:16 +01:00
patches-6.6 realtek: Use atomic poll for aux-mdio commands 2025-01-16 13:56:55 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: rtl838x: Switch GS1900 rtl8231 driver 2025-01-07 14:36:34 +01:00
rtl839x realtek: Add pinctrl support for RTL8231 2025-01-07 14:36:34 +01:00
rtl930x realtek: Add pinctrl support for RTL8231 2025-01-07 14:36:34 +01:00
rtl931x realtek: Add pinctrl support for RTL8231 2025-01-07 14:36:34 +01:00
Makefile realtek: trim default package selection 2025-01-04 20:35:48 +01:00