linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] pinctrl: qcom: fix some sm4450 pinctrl issue
@ 2023-11-29 10:04 Tengfei Fan
  2023-11-29 10:04 ` [PATCH 1/2] pinctrl: qcom: Convert to platform remove callback returning void Tengfei Fan
  2023-11-29 10:04 ` [PATCH 2/2] pinctrl: qcom: correct incorrect address offset Tengfei Fan
  0 siblings, 2 replies; 8+ messages in thread
From: Tengfei Fan @ 2023-11-29 10:04 UTC (permalink / raw)
  To: andersson, agross, konrad.dybcio, linus.walleij
  Cc: linux-arm-msm, linux-gpio, linux-kernel, kernel, Tengfei Fan

Use .remove_new() instead of .remove() for converting to plarform remove
callback returning void. Correct incorrect address offset which used by
ufs and sdc.

Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
---
"[PATCH v4 0/2] pinctl: qcom: Add SM4450 pinctrl driver"
https://lore.kernel.org/linux-arm-msm/20230920082102.5744-1-quic_tengfan@quicinc.com/

Tengfei Fan (2):
  pinctrl: qcom: Convert to platform remove callback returning void
  pinctrl: qcom: correct incorrect address offset

 drivers/pinctrl/qcom/pinctrl-sm4450.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)


base-commit: 1f5c003694fab4b1ba6cbdcc417488b975c088d0
-- 
2.17.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/2] pinctrl: qcom: Convert to platform remove callback returning void
  2023-11-29 10:04 [PATCH 0/2] pinctrl: qcom: fix some sm4450 pinctrl issue Tengfei Fan
@ 2023-11-29 10:04 ` Tengfei Fan
  2023-11-29 13:21   ` Konrad Dybcio
  2023-11-29 10:04 ` [PATCH 2/2] pinctrl: qcom: correct incorrect address offset Tengfei Fan
  1 sibling, 1 reply; 8+ messages in thread
From: Tengfei Fan @ 2023-11-29 10:04 UTC (permalink / raw)
  To: andersson, agross, konrad.dybcio, linus.walleij
  Cc: linux-arm-msm, linux-gpio, linux-kernel, kernel, Tengfei Fan

Use .remove_new() instead of .remove() for converting to plarform remove
callback returning void.

Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
---
 drivers/pinctrl/qcom/pinctrl-sm4450.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/qcom/pinctrl-sm4450.c b/drivers/pinctrl/qcom/pinctrl-sm4450.c
index 20ad639087ed..49e2e3a7a9cb 100644
--- a/drivers/pinctrl/qcom/pinctrl-sm4450.c
+++ b/drivers/pinctrl/qcom/pinctrl-sm4450.c
@@ -993,7 +993,7 @@ static struct platform_driver sm4450_tlmm_driver = {
 		.of_match_table = sm4450_tlmm_of_match,
 	},
 	.probe = sm4450_tlmm_probe,
-	.remove = msm_pinctrl_remove,
+	.remove_new = msm_pinctrl_remove,
 };
 MODULE_DEVICE_TABLE(of, sm4450_tlmm_of_match);
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/2] pinctrl: qcom: correct incorrect address offset
  2023-11-29 10:04 [PATCH 0/2] pinctrl: qcom: fix some sm4450 pinctrl issue Tengfei Fan
  2023-11-29 10:04 ` [PATCH 1/2] pinctrl: qcom: Convert to platform remove callback returning void Tengfei Fan
@ 2023-11-29 10:04 ` Tengfei Fan
  2023-11-29 13:32   ` Konrad Dybcio
  1 sibling, 1 reply; 8+ messages in thread
From: Tengfei Fan @ 2023-11-29 10:04 UTC (permalink / raw)
  To: andersson, agross, konrad.dybcio, linus.walleij
  Cc: linux-arm-msm, linux-gpio, linux-kernel, kernel, Tengfei Fan

The address offset of 0x100000 is already provided in SM4450 DTSI, so
subtract 0x100000 from the offset which used by ufs and sdc.

Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
---
 drivers/pinctrl/qcom/pinctrl-sm4450.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/pinctrl/qcom/pinctrl-sm4450.c b/drivers/pinctrl/qcom/pinctrl-sm4450.c
index 49e2e3a7a9cb..5496f955ed2a 100644
--- a/drivers/pinctrl/qcom/pinctrl-sm4450.c
+++ b/drivers/pinctrl/qcom/pinctrl-sm4450.c
@@ -936,14 +936,14 @@ static const struct msm_pingroup sm4450_groups[] = {
 	[133] = PINGROUP(133, _, phase_flag, _, _, _, _, _, _, _),
 	[134] = PINGROUP(134, tsense_pwm1_out, tsense_pwm2_out, _, _, _, _, _, _, _),
 	[135] = PINGROUP(135, _, phase_flag, _, _, _, _, _, _, _),
-	[136] = UFS_RESET(ufs_reset, 0x197000),
-	[137] = SDC_QDSD_PINGROUP(sdc1_rclk, 0x18c004, 0, 0),
-	[138] = SDC_QDSD_PINGROUP(sdc1_clk, 0x18c000, 13, 6),
-	[139] = SDC_QDSD_PINGROUP(sdc1_cmd, 0x18c000, 11, 3),
-	[140] = SDC_QDSD_PINGROUP(sdc1_data, 0x18c000, 9, 0),
-	[141] = SDC_QDSD_PINGROUP(sdc2_clk, 0x18f000, 14, 6),
-	[142] = SDC_QDSD_PINGROUP(sdc2_cmd, 0x18f000, 11, 3),
-	[143] = SDC_QDSD_PINGROUP(sdc2_data, 0x18f000, 9, 0),
+	[136] = UFS_RESET(ufs_reset, 0x97000),
+	[137] = SDC_QDSD_PINGROUP(sdc1_rclk, 0x8c004, 0, 0),
+	[138] = SDC_QDSD_PINGROUP(sdc1_clk, 0x8c000, 13, 6),
+	[139] = SDC_QDSD_PINGROUP(sdc1_cmd, 0x8c000, 11, 3),
+	[140] = SDC_QDSD_PINGROUP(sdc1_data, 0x8c000, 9, 0),
+	[141] = SDC_QDSD_PINGROUP(sdc2_clk, 0x8f000, 14, 6),
+	[142] = SDC_QDSD_PINGROUP(sdc2_cmd, 0x8f000, 11, 3),
+	[143] = SDC_QDSD_PINGROUP(sdc2_data, 0x8f000, 9, 0),
 };
 
 static const struct msm_gpio_wakeirq_map sm4450_pdc_map[] = {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] pinctrl: qcom: Convert to platform remove callback returning void
  2023-11-29 10:04 ` [PATCH 1/2] pinctrl: qcom: Convert to platform remove callback returning void Tengfei Fan
@ 2023-11-29 13:21   ` Konrad Dybcio
  2023-11-30  1:11     ` Tengfei Fan
  0 siblings, 1 reply; 8+ messages in thread
From: Konrad Dybcio @ 2023-11-29 13:21 UTC (permalink / raw)
  To: Tengfei Fan, andersson, agross, linus.walleij
  Cc: linux-arm-msm, linux-gpio, linux-kernel, kernel

On 29.11.2023 11:04, Tengfei Fan wrote:
> Use .remove_new() instead of .remove() for converting to plarform remove
s/plarform/platform

> callback returning void.
> 
> Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
> ---
The commit title should include the platform name, i.e.
pinctrl: qcom: sm4450: xxx

The change itself looks good

Konrad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] pinctrl: qcom: correct incorrect address offset
  2023-11-29 10:04 ` [PATCH 2/2] pinctrl: qcom: correct incorrect address offset Tengfei Fan
@ 2023-11-29 13:32   ` Konrad Dybcio
  2023-11-30  1:12     ` Tengfei Fan
  2023-11-30  1:13     ` Tengfei Fan
  0 siblings, 2 replies; 8+ messages in thread
From: Konrad Dybcio @ 2023-11-29 13:32 UTC (permalink / raw)
  To: Tengfei Fan, andersson, agross, linus.walleij
  Cc: linux-arm-msm, linux-gpio, linux-kernel, kernel

On 29.11.2023 11:04, Tengfei Fan wrote:
> The address offset of 0x100000 is already provided in SM4450 DTSI, so
> subtract 0x100000 from the offset which used by ufs and sdc.
> 
> Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
> ---
The change seems correct.

Looks like the pinctrl has not been merged, so these patches should
be merged into the "Add SM4450 pinctrl driver" series and resent
as another revision

Konrad



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] pinctrl: qcom: Convert to platform remove callback returning void
  2023-11-29 13:21   ` Konrad Dybcio
@ 2023-11-30  1:11     ` Tengfei Fan
  0 siblings, 0 replies; 8+ messages in thread
From: Tengfei Fan @ 2023-11-30  1:11 UTC (permalink / raw)
  To: Konrad Dybcio, andersson, agross, linus.walleij
  Cc: linux-arm-msm, linux-gpio, linux-kernel, kernel



在 11/29/2023 9:21 PM, Konrad Dybcio 写道:
> On 29.11.2023 11:04, Tengfei Fan wrote:
>> Use .remove_new() instead of .remove() for converting to plarform remove
> s/plarform/platform
> 
>> callback returning void.
>>
>> Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
>> ---
> The commit title should include the platform name, i.e.
> pinctrl: qcom: sm4450: xxx
> 
> The change itself looks good
> 
> Konrad
Thanks Konrad review this patch, I will update patch as your comments.

-- 
Thx and BRs,
Tengfei Fan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] pinctrl: qcom: correct incorrect address offset
  2023-11-29 13:32   ` Konrad Dybcio
@ 2023-11-30  1:12     ` Tengfei Fan
  2023-11-30  1:13     ` Tengfei Fan
  1 sibling, 0 replies; 8+ messages in thread
From: Tengfei Fan @ 2023-11-30  1:12 UTC (permalink / raw)
  To: Konrad Dybcio, andersson, agross, linus.walleij
  Cc: linux-arm-msm, linux-gpio, linux-kernel, kernel



在 11/29/2023 9:32 PM, Konrad Dybcio 写道:
> On 29.11.2023 11:04, Tengfei Fan wrote:
>> The address offset of 0x100000 is already provided in SM4450 DTSI, so
>> subtract 0x100000 from the offset which used by ufs and sdc.
>>
>> Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
>> ---
> The change seems correct.
> 
> Looks like the pinctrl has not been merged, so these patches should
> be merged into the "Add SM4450 pinctrl driver" series and resent
> as another revision
> 
> Konrad
> 
> 

-- 
Thx and BRs,
Tengfei Fan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] pinctrl: qcom: correct incorrect address offset
  2023-11-29 13:32   ` Konrad Dybcio
  2023-11-30  1:12     ` Tengfei Fan
@ 2023-11-30  1:13     ` Tengfei Fan
  1 sibling, 0 replies; 8+ messages in thread
From: Tengfei Fan @ 2023-11-30  1:13 UTC (permalink / raw)
  To: Konrad Dybcio, andersson, agross, linus.walleij
  Cc: linux-arm-msm, linux-gpio, linux-kernel, kernel



在 11/29/2023 9:32 PM, Konrad Dybcio 写道:
> On 29.11.2023 11:04, Tengfei Fan wrote:
>> The address offset of 0x100000 is already provided in SM4450 DTSI, so
>> subtract 0x100000 from the offset which used by ufs and sdc.
>>
>> Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
>> ---
> The change seems correct.
> 
> Looks like the pinctrl has not been merged, so these patches should
> be merged into the "Add SM4450 pinctrl driver" series and resent
> as another revision
> 
> Konrad
> 
> 
Sure, I will merge these pacthes into the "Add SM4450 pinctrl driver" 
series and resent new version patch series.

-- 
Thx and BRs,
Tengfei Fan

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-11-30  1:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-29 10:04 [PATCH 0/2] pinctrl: qcom: fix some sm4450 pinctrl issue Tengfei Fan
2023-11-29 10:04 ` [PATCH 1/2] pinctrl: qcom: Convert to platform remove callback returning void Tengfei Fan
2023-11-29 13:21   ` Konrad Dybcio
2023-11-30  1:11     ` Tengfei Fan
2023-11-29 10:04 ` [PATCH 2/2] pinctrl: qcom: correct incorrect address offset Tengfei Fan
2023-11-29 13:32   ` Konrad Dybcio
2023-11-30  1:12     ` Tengfei Fan
2023-11-30  1:13     ` Tengfei Fan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).