summaryrefslogtreecommitdiff
path: root/rust/helpers/bug.c
diff options
context:
space:
mode:
authorFurong Xu <0x1207@gmail.com>2025-09-27 16:10:36 +0800
committerJakub Kicinski <kuba@kernel.org>2025-09-29 18:27:45 -0700
commit9dd4e022bfffe0fbc6eaccdb52fc25554be5c367 (patch)
treed5e8bb1b683e85b1e2813878706e2fc40c6aa67d /rust/helpers/bug.c
parent74f7c5233e09a8b10ccf94f2fef42f95961c288b (diff)
net: stmmac: Convert open-coded register polling to helper macro
Drop the open-coded register polling routines. Use readl_poll_timeout_atomic() in atomic state. Also adjust the delay time to 10us which seems more reasonable. Tested on NXP i.MX8MP and ROCKCHIP RK3588 boards, the break condition was met right after the first polling, no delay involved at all. So the 10us delay should be long enough for most cases. Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Furong Xu <0x1207@gmail.com> Link: https://patch.msgid.link/20250927081036.10611-1-0x1207@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/bug.c')
0 files changed, 0 insertions, 0 deletions