diff options
| author | Lad Prabhakar <[email protected]> | 2025-01-10 22:10:45 +0000 |
|---|---|---|
| committer | Geert Uytterhoeven <[email protected]> | 2025-01-14 08:22:48 +0000 |
| commit | accabfaae0940f9427c782bfee7340ce4c15151c (patch) | |
| tree | 03591d0a3cc546888520db8ddf771140ac1d729f /net/switchdev/switchdev.c | |
| parent | pinctrl: renesas: rzg2l: Add support for RZ/G3E SoC (diff) | |
| download | kernel-accabfaae0940f9427c782bfee7340ce4c15151c.tar.gz kernel-accabfaae0940f9427c782bfee7340ce4c15151c.zip | |
pinctrl: renesas: rzg2l: Fix PFC_MASK for RZ/V2H and RZ/G3E
The PFC_MASK value for the PFC_mx registers is currently hardcoded to
0x07, which is correct for SoCs in the RZ/G2L family, but insufficient
for RZ/V2H and RZ/G3E, where the mask value should be 0x0f. This
discrepancy causes incorrect PFC register configuration on RZ/V2H and
RZ/G3E SoCs.
On RZ/G2L, the PFC_mx bitfields are also 4 bits wide, with bit 4 marked
as reserved. The reserved bits are documented to read as zero and be
ignored when written. Updating the PFC_MASK definition from 0x07 to
0x0f ensures compatibility with both SoC families while maintaining
correct behavior on RZ/G2L.
Fixes: 9bd95ac86e70 ("pinctrl: renesas: rzg2l: Add support for RZ/V2H SoC")
Cc: [email protected]
Reported-by: Hien Huynh <[email protected]>
Signed-off-by: Lad Prabhakar <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Geert Uytterhoeven <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
