pinctrl: qcom: sm8250: correct sdc2_clk and ngpios
Subsystems (5)
PATCH 1/1 pinctrl: qcom: sm8250: correct sdc2_clk and ngpios
Correct sdc2_clk pin definition (register offset) and ngpios (SM8250 has 180 GPIO pins).
--- drivers/pinctrl/qcom/pinctrl-sm8250.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/qcom/pinctrl-sm8250.c +2 -2
@@ -1308,7 +1308,7 @@ static const struct msm_pingroup sm8250_groups[] = { [178] = PINGROUP(178, WEST, _, _, _, _, _, _, _, _, _), [179] = PINGROUP(179, WEST, _, _, _, _, _, _, _, _, _), [180] = UFS_RESET(ufs_reset, 0xb8000), - [181] = SDC_PINGROUP(sdc2_clk, 0x7000, 14, 6), + [181] = SDC_PINGROUP(sdc2_clk, 0xb7000, 14, 6), [182] = SDC_PINGROUP(sdc2_cmd, 0xb7000, 11, 3), [183] = SDC_PINGROUP(sdc2_data, 0xb7000, 9, 0), };
@@ -1320,7 +1320,7 @@ static const struct msm_pinctrl_soc_data sm8250_pinctrl = { .nfunctions = ARRAY_SIZE(sm8250_functions), .groups = sm8250_groups, .ngroups = ARRAY_SIZE(sm8250_groups), - .ngpios = 181, + .ngpios = 180, .tiles = sm8250_tiles, .ntiles = ARRAY_SIZE(sm8250_tiles), };
Signature · 1 line
2.28.0
Quoted 14 lines · Dmitry Baryshkov
Correct
sdc2_clkpin definition (register offset) and ngpios (SM8250 has 180 GPIO pins).Signed-off-by Dmitry Baryshkov <[email protected]>Fixes 4e3ec9e407ad5058003309072b37111f7b8c900a--- drivers/pinctrl/qcom/pinctrl-sm8250.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/pinctrl/qcom/pinctrl-sm8250.c +0
-0
drivers/pinctrl/qcom/pinctrl-sm8250.c static const struct msm_pingroup sm8250_groups[] = { · line 1311
Quoted 5 lines
drivers/pinctrl/qcom/pinctrl-sm8250.c +1
-1@@ -1308,7 +1308,7 @@ static const struct msm_pingroup sm8250_groups[] = { [178] = PINGROUP(178, WEST, _, _, _, _, _, _, _, _, _), [179] = PINGROUP(179, WEST, _, _, _, _, _, _, _, _, _), [180] = UFS_RESET(ufs_reset, 0xb8000), - [181] = SDC_PINGROUP(sdc2_clk, 0x7000, 14, 6), + [181] = SDC_PINGROUP(sdc2_clk, 0xb7000, 14, 6),
You're right.
drivers/pinctrl/qcom/pinctrl-sm8250.c static const struct msm_pinctrl_soc_data sm8250_pinctrl = { · line 1323
Quoted 9 lines
drivers/pinctrl/qcom/pinctrl-sm8250.c +1
-1[182] = SDC_PINGROUP(sdc2_cmd, 0xb7000, 11, 3), [183] = SDC_PINGROUP(sdc2_data, 0xb7000, 9, 0), };@@ -1320,7 +1320,7 @@ static const struct msm_pinctrl_soc_data sm8250_pinctrl = { .nfunctions = ARRAY_SIZE(sm8250_functions), .groups = sm8250_groups, .ngroups = ARRAY_SIZE(sm8250_groups), - .ngpios = 181, + .ngpios = 180,
But, while it is correct that SM8250 only has 180 GPIOs, we're exposing UFS_RESET as a gpio as well, so this should therefor be 181. Sorry for the obfuscation here...
Regards,
Bjorn
Quoted 6 lines
drivers/pinctrl/qcom/pinctrl-sm8250.c +0
-0.tiles = sm8250_tiles, .ntiles = ARRAY_SIZE(sm8250_tiles), };Signature · 1 line
2.28.0
Hello,
Quoted 25 lines · Bjorn Andersson
Quoted 14 lines · Dmitry Baryshkov
Correct
sdc2_clkpin definition (register offset) and ngpios (SM8250 has 180 GPIO pins).Signed-off-by Dmitry Baryshkov <[email protected]>Fixes 4e3ec9e407ad5058003309072b37111f7b8c900a--- drivers/pinctrl/qcom/pinctrl-sm8250.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/pinctrl/qcom/pinctrl-sm8250.c +0
-0drivers/pinctrl/qcom/pinctrl-sm8250.c static const struct msm_pingroup sm8250_groups[] = { · line 1311
Quoted 5 lines
drivers/pinctrl/qcom/pinctrl-sm8250.c +1
-1@@ -1308,7 +1308,7 @@ static const struct msm_pingroup sm8250_groups[] = { [178] = PINGROUP(178, WEST, _, _, _, _, _, _, _, _, _), [179] = PINGROUP(179, WEST, _, _, _, _, _, _, _, _, _), [180] = UFS_RESET(ufs_reset, 0xb8000), - [181] = SDC_PINGROUP(sdc2_clk, 0x7000, 14, 6), + [181] = SDC_PINGROUP(sdc2_clk, 0xb7000, 14, 6),You're right.
Quoted 13 lines
drivers/pinctrl/qcom/pinctrl-sm8250.c static const struct msm_pinctrl_soc_data sm8250_pinctrl = { · line 1323
Quoted 9 lines
drivers/pinctrl/qcom/pinctrl-sm8250.c +1
-1[182] = SDC_PINGROUP(sdc2_cmd, 0xb7000, 11, 3), [183] = SDC_PINGROUP(sdc2_data, 0xb7000, 9, 0), };@@ -1320,7 +1320,7 @@ static const struct msm_pinctrl_soc_data sm8250_pinctrl = { .nfunctions = ARRAY_SIZE(sm8250_functions), .groups = sm8250_groups, .ngroups = ARRAY_SIZE(sm8250_groups), - .ngpios = 181, + .ngpios = 180,But, while it is correct that SM8250 only has 180 GPIOs, we're exposing
UFS_RESETas a gpio as well, so this should therefor be 181. Sorry for the obfuscation here...
True. Could you please drop the second part of the patch on your own? Or would you prefer for me to send v2?
Signature · 2 lines
With best wishes Dmitry
Quoted 43 lines · Dmitry Baryshkov
Hello,
Quoted 25 lines · Bjorn Andersson
Quoted 14 lines · Dmitry Baryshkov
Correct
sdc2_clkpin definition (register offset) and ngpios (SM8250 has 180 GPIO pins).Signed-off-by Dmitry Baryshkov <[email protected]>Fixes 4e3ec9e407ad5058003309072b37111f7b8c900a--- drivers/pinctrl/qcom/pinctrl-sm8250.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/pinctrl/qcom/pinctrl-sm8250.c +0
-0drivers/pinctrl/qcom/pinctrl-sm8250.c static const struct msm_pingroup sm8250_groups[] = { · line 1311
Quoted 5 lines
drivers/pinctrl/qcom/pinctrl-sm8250.c +1
-1@@ -1308,7 +1308,7 @@ static const struct msm_pingroup sm8250_groups[] = { [178] = PINGROUP(178, WEST, _, _, _, _, _, _, _, _, _), [179] = PINGROUP(179, WEST, _, _, _, _, _, _, _, _, _), [180] = UFS_RESET(ufs_reset, 0xb8000), - [181] = SDC_PINGROUP(sdc2_clk, 0x7000, 14, 6), + [181] = SDC_PINGROUP(sdc2_clk, 0xb7000, 14, 6),You're right.
Quoted 13 lines
drivers/pinctrl/qcom/pinctrl-sm8250.c static const struct msm_pinctrl_soc_data sm8250_pinctrl = { · line 1323
Quoted 9 lines
drivers/pinctrl/qcom/pinctrl-sm8250.c +1
-1[182] = SDC_PINGROUP(sdc2_cmd, 0xb7000, 11, 3), [183] = SDC_PINGROUP(sdc2_data, 0xb7000, 9, 0), };@@ -1320,7 +1320,7 @@ static const struct msm_pinctrl_soc_data sm8250_pinctrl = { .nfunctions = ARRAY_SIZE(sm8250_functions), .groups = sm8250_groups, .ngroups = ARRAY_SIZE(sm8250_groups), - .ngpios = 181, + .ngpios = 180,But, while it is correct that SM8250 only has 180 GPIOs, we're exposing
UFS_RESETas a gpio as well, so this should therefor be 181. Sorry for the obfuscation here...
Quoted 3 lines
True. Could you please drop the second part of the patch on your own? Or would you prefer for me to send v2?
This goes through Linus' tree, so it would be up to him. If you want to avoid waiting for his response go ahead and post a v2 - and I'll give you a r-b on it.
Regards,
Bjorn