Commit d00f6aa
pinctrl: renesas: rzg2l: Validate power registers for SD and ETH
[ Upstream commit a3a632e ]
On RZ/V2H(P) SoC, the power registers for SD and ETH do not exist,
resulting in invalid register offsets. Ensure that the register offsets
are valid before any read/write operations are performed. If the power
registers are not available, both SD and ETH will be set to '0'.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> # on RZ/G3S
Link: https://lore.kernel.org/r/20240530173857.164073-7-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent e797ce6 commit d00f6aa
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2583 | 2583 | | |
2584 | 2584 | | |
2585 | 2585 | | |
2586 | | - | |
2587 | | - | |
| 2586 | + | |
| 2587 | + | |
| 2588 | + | |
| 2589 | + | |
2588 | 2590 | | |
2589 | 2591 | | |
2590 | 2592 | | |
| |||
2615 | 2617 | | |
2616 | 2618 | | |
2617 | 2619 | | |
2618 | | - | |
2619 | | - | |
| 2620 | + | |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
2620 | 2624 | | |
2621 | 2625 | | |
2622 | 2626 | | |
| |||
0 commit comments