Skip to content

Commit f0cdf87

Browse files
prabhakarladgeertu
authored andcommitted
pinctrl: renesas: rzg2l: Adjust bit masks for PIN_CFG_VARIABLE to use BIT(62)
Shift the bit masks for `PIN_CFG_PIN_MAP_MASK` and `PIN_CFG_PIN_REG_MASK`, to accommodate `PIN_CFG_VARIABLE` using `BIT(62)`. Previously, these bit masks were placed higher up in the bit range, which did not leave room for `PIN_CFG_VARIABLE` at `BIT(62)`. By adjusting these masks, we ensure that `PIN_CFG_VARIABLE` can occupy `BIT(62)` without any conflicts. The updated masks are now: - `PIN_CFG_PIN_MAP_MASK`: `GENMASK_ULL(61, 54)` (was `GENMASK_ULL(62, 55)`) - `PIN_CFG_PIN_REG_MASK`: `GENMASK_ULL(53, 46)` (was `GENMASK_ULL(54, 47)`) Signed-off-by: Lad Prabhakar <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Tested-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 0a5e40f commit f0cdf87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pinctrl/renesas/pinctrl-rzg2l.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787
PIN_CFG_FILNUM | \
8888
PIN_CFG_FILCLKSEL)
8989

90-
#define PIN_CFG_PIN_MAP_MASK GENMASK_ULL(62, 55)
91-
#define PIN_CFG_PIN_REG_MASK GENMASK_ULL(54, 47)
90+
#define PIN_CFG_PIN_MAP_MASK GENMASK_ULL(61, 54)
91+
#define PIN_CFG_PIN_REG_MASK GENMASK_ULL(53, 46)
9292
#define PIN_CFG_MASK GENMASK_ULL(31, 0)
9393

9494
/*

0 commit comments

Comments
 (0)