Skip to content

Commit 7132408

Browse files
DienPhamMstorulf
authored andcommitted
pmdomain: renesas: Adjust the waiting time to cover the worst case
Description in HWM rev0.51E, 9.4 Usage notes, page 455 tells "It takes several hundreds of microseconds to shutting off and resuming power domain. Because actual time required for shutting off and resuming depends on the status of on-board power line, shutoff/resume time is not guaranteed by electrical specification" Let's assume the safe value of waiting is about 1000us. Signed-off-by: Dien Pham <dien.pham.ry@renesas.com> Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> Signed-off-by: Tho Vu <tho.vu.wh@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/8734tx8b18.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 5bf8586 commit 7132408

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pmdomain/renesas/rcar-sysc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
#define PWRER_OFFS 0x14 /* Power Shutoff/Resume Error */
4646

4747

48-
#define SYSCSR_TIMEOUT 100
48+
#define SYSCSR_TIMEOUT 1000
4949
#define SYSCSR_DELAY_US 1
5050

51-
#define PWRER_RETRIES 100
51+
#define PWRER_RETRIES 1000
5252
#define PWRER_DELAY_US 1
5353

5454
#define SYSCISR_TIMEOUT 1000

0 commit comments

Comments
 (0)