linux-stable/drivers/pmdomain/renesas
Geert Uytterhoeven ccabbb6768 pmdomain: renesas: rcar-gen4-sysc: Reduce atomic delays
The delays used with the various atomic polling loops are already at the
maximum value of ~10µs, as documented for read_poll_timeout_atomic().
Hence reduce the delays from 10 to 1 µs.  Increase PDRESR_RETRIES
accordingly, to retain the old (generous) timeout value.

Measurements on R-Car V3U, S4, V4H, and V4M show that the first three
polling loops rarely (never?) loop, so the actual delay does not matter.
The fourth loop (for SYSCISCR in rcar_gen4_sysc_power()) typically ran
for one or two cycles with the old delay.  With the reduced delay, it
typically runs for two to 17 cycles, and finishes earlier than before,
which can reduce loop time up to a factor of three.

While at it, rename the SYSCISR_{TIMEOUT,DELAY_US} definitions to
SYSCISCR_{TIMEOUT,DELAY_US}, to match the register name they apply to.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/77f150522096d55c6da0ff983db61e0cf6309344.1709317289.git.geert+renesas@glider.be
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2024-03-06 11:25:27 +01:00
..
Kconfig pmdomain: renesas: r8a779h0-sysc: Add r8a779h0 support 2024-02-14 10:26:11 +01:00
Makefile pmdomain: renesas: r8a779h0-sysc: Add r8a779h0 support 2024-02-14 10:26:11 +01:00
r8a774a1-sysc.c
r8a774b1-sysc.c
r8a774c0-sysc.c
r8a774e1-sysc.c
r8a779a0-sysc.c pmdomain: renesas: rcar-gen4-sysc: Remove unneeded includes 2024-02-14 10:26:11 +01:00
r8a779f0-sysc.c pmdomain: renesas: rcar-gen4-sysc: Remove unneeded includes 2024-02-14 10:26:11 +01:00
r8a779g0-sysc.c pmdomain: renesas: rcar-gen4-sysc: Remove unneeded includes 2024-02-14 10:26:11 +01:00
r8a779h0-sysc.c pmdomain: renesas: r8a779h0-sysc: Add r8a779h0 support 2024-02-14 10:26:11 +01:00
r8a7742-sysc.c
r8a7743-sysc.c
r8a7745-sysc.c
r8a7779-sysc.c
r8a7790-sysc.c
r8a7791-sysc.c
r8a7792-sysc.c
r8a7794-sysc.c
r8a7795-sysc.c
r8a7796-sysc.c
r8a77470-sysc.c
r8a77965-sysc.c
r8a77970-sysc.c
r8a77980-sysc.c pmdomain: renesas: r8a77980-sysc: CR7 must be always on 2024-01-22 15:49:56 +01:00
r8a77990-sysc.c
r8a77995-sysc.c
rcar-gen4-sysc.c pmdomain: renesas: rcar-gen4-sysc: Reduce atomic delays 2024-03-06 11:25:27 +01:00
rcar-gen4-sysc.h pmdomain: renesas: r8a779h0-sysc: Add r8a779h0 support 2024-02-14 10:26:11 +01:00
rcar-sysc.c pmdomain: renesas: Adjust the waiting time to cover the worst case 2024-02-14 10:26:12 +01:00
rcar-sysc.h
rmobile-sysc.c pmdomain: renesas: rmobile-sysc: fix -Wvoid-pointer-to-enum-cast warning 2023-10-04 23:41:57 +02:00