linux-stable/drivers/soc/renesas
Geert Uytterhoeven a00d47f764 soc: renesas: rmobile-sysc: Convert to readl_poll_timeout_atomic()
Use readl_poll_timeout_atomic() instead of open-coding the same
operation.

  1. rmobile_pd_power_down(): as typically less than 20 retries are
     needed, PSTR_RETRIES (100) µs is a suitable timeout value.

  2. __rmobile_pd_power_up(): the old method of first polling some
     cycles with a 1 µs delay, followed by more polling cycles without
     any delay didn't make much sense, as the latter was insignificant
     compared to the former.  Furthermore, typically no retries are
     needed.  Hence just retain the polling with delay.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/ae4bf03ab8fd5a557c683086958d6764babc0723.1685692810.git.geert+renesas@glider.be
2023-06-05 15:43:27 +02:00
..
Kconfig soc: renesas: Remove r8a77950 arch 2023-03-10 16:31:11 +01:00
Makefile soc: renesas: Add PWC support for RZ/V2M 2023-01-23 09:28:28 +01:00
pwc-rzv2m.c soc: renesas: pwc-rzv2m: drop of_match_ptr for ID table 2023-03-16 16:58:26 +01:00
r8a774a1-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a774b1-sysc.c soc: renesas: rcar-sysc: Add r8a774b1 support 2019-10-01 10:29:40 +02:00
r8a774c0-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a774e1-sysc.c soc: renesas: rcar-sysc: Add r8a774e1 support 2020-07-13 10:34:41 +02:00
r8a779a0-sysc.c soc: renesas: r8a779a0-sysc: Fix A2DP1 and A2CV[2357] PDR values 2022-06-13 11:43:50 +02:00
r8a779f0-sysc.c soc: renesas: r8a779f0-sysc: Add r8a779f0 support 2021-12-07 16:47:45 +01:00
r8a779g0-sysc.c soc: renesas: r8a779g0-sysc: Add missing A3DUL power domain 2022-12-26 11:08:49 +01:00
r8a7742-sysc.c soc: renesas: rcar-sysc: Add R8A7742 support 2020-04-30 10:01:39 +02:00
r8a7743-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7745-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7779-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7790-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7791-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7792-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7794-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7795-sysc.c soc: renesas: rcar-sysc: Remove R-Car H3 ES1.* handling 2023-03-10 16:31:07 +01:00
r8a7796-sysc.c soc: renesas: rcar-sysc: Add R8A77961 support 2019-11-01 14:25:53 +01:00
r8a77470-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77965-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77970-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77980-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77990-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77995-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r9a06g032-smp.c ARM: shmobile: Add the R9A06G032 SMP enabler driver 2018-07-20 13:44:04 +02:00
rcar-gen4-sysc.c soc: renesas: r8a779g0-sysc: Add r8a779g0 support 2022-04-25 10:58:58 +02:00
rcar-gen4-sysc.h soc: renesas: rcar-sysc: Optimize rcar_sysc_area struct sizes 2022-06-13 11:43:50 +02:00
rcar-rst.c soc: renesas: rcar-rst: Allow WDT reset on R-Car V3U 2023-05-15 10:32:12 +02:00
rcar-sysc.c soc: renesas: Move away from using OF_POPULATED for fw_devlink 2023-02-08 13:37:54 +01:00
rcar-sysc.h soc: renesas: rcar-sysc: Optimize rcar_sysc_area struct sizes 2022-06-13 11:43:50 +02:00
renesas-soc.c soc: renesas: renesas-soc: Release 'chipid' from ioremap() 2023-04-04 10:01:58 +02:00
rmobile-sysc.c soc: renesas: rmobile-sysc: Convert to readl_poll_timeout_atomic() 2023-06-05 15:43:27 +02:00