Commit fb8a790
pinctrl: renesas: rzg2l: Drop unnecessary pin configurations
There is no need to reconfigure a pin if the pin's configuration
values are the same as the reset values. E.g. the PS0 pin configuration
for the NMI function is PMC = 1 and PFC = 0, which is the same as the
reset values. Currently the code is first setting it to GPIO HI-Z state
and then again reconfiguring to the NMI function, leading to spurious
IRQs. Fix this by dropping unnecessary pin configuration from the
driver.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20250909104247.3309-1-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>1 parent 44bf661 commit fb8a790
1 file changed
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | | - | |
| 544 | + | |
545 | 545 | | |
| 546 | + | |
546 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
547 | 554 | | |
548 | 555 | | |
549 | 556 | | |
| |||
557 | 564 | | |
558 | 565 | | |
559 | 566 | | |
560 | | - | |
561 | | - | |
562 | | - | |
| 567 | + | |
| 568 | + | |
563 | 569 | | |
564 | 570 | | |
565 | 571 | | |
| |||
3130 | 3136 | | |
3131 | 3137 | | |
3132 | 3138 | | |
| 3139 | + | |
3133 | 3140 | | |
3134 | 3141 | | |
3135 | 3142 | | |
3136 | 3143 | | |
3137 | 3144 | | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
3138 | 3151 | | |
3139 | 3152 | | |
3140 | 3153 | | |
| |||
3144 | 3157 | | |
3145 | 3158 | | |
3146 | 3159 | | |
3147 | | - | |
3148 | | - | |
| 3160 | + | |
| 3161 | + | |
3149 | 3162 | | |
3150 | 3163 | | |
3151 | 3164 | | |
| |||
0 commit comments