* [PATCH 1/3] dt-bindings: mmc: sdhci-msm: add MSM8998
@ 2022-07-11 8:27 Krzysztof Kozlowski
2022-07-11 8:27 ` [PATCH 2/3] mmc: sdhci-msm: add MSM8998 SDCC specific compatible Krzysztof Kozlowski
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-11 8:27 UTC (permalink / raw)
To: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Andy Gross,
Bjorn Andersson, Konrad Dybcio, Adrian Hunter, Bhupesh Sharma,
linux-mmc, devicetree, linux-kernel, linux-arm-msm
Cc: Douglas Anderson, Krzysztof Kozlowski
Add a MSM8998-specific SDCC compatible, because using only a generic
qcom,sdhci-msm-v4 fallback is deprecated.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Documentation/devicetree/bindings/mmc/sdhci-msm.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
index 01a1f8b79e8e..2f0fdd65e908 100644
--- a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
+++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
@@ -30,6 +30,7 @@ properties:
- qcom,msm8992-sdhci
- qcom,msm8994-sdhci
- qcom,msm8996-sdhci
+ - qcom,msm8998-sdhci
- const: qcom,sdhci-msm-v4 # for sdcc versions less than 5.0
- items:
- enum:
--
2.34.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH 2/3] mmc: sdhci-msm: add MSM8998 SDCC specific compatible 2022-07-11 8:27 [PATCH 1/3] dt-bindings: mmc: sdhci-msm: add MSM8998 Krzysztof Kozlowski @ 2022-07-11 8:27 ` Krzysztof Kozlowski 2022-07-11 8:42 ` Konrad Dybcio 2022-07-11 15:08 ` Doug Anderson 2022-07-11 8:27 ` [PATCH 3/3] arm64: dts: qcom: msm8998: " Krzysztof Kozlowski 2022-07-11 14:53 ` [PATCH 1/3] dt-bindings: mmc: sdhci-msm: add MSM8998 Doug Anderson 2 siblings, 2 replies; 10+ messages in thread From: Krzysztof Kozlowski @ 2022-07-11 8:27 UTC (permalink / raw) To: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Konrad Dybcio, Adrian Hunter, Bhupesh Sharma, linux-mmc, devicetree, linux-kernel, linux-arm-msm Cc: Douglas Anderson, Krzysztof Kozlowski Add a MSM8998-specific SDCC compatible, because using only a generic qcom,sdhci-msm-v4 fallback is deprecated. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- drivers/mmc/host/sdhci-msm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index e395411fb6fd..bb169c1c2b5e 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -2447,6 +2447,7 @@ static const struct of_device_id sdhci_msm_dt_match[] = { {.compatible = "qcom,msm8992-sdhci", .data = &sdhci_msm_mci_var}, {.compatible = "qcom,msm8994-sdhci", .data = &sdhci_msm_mci_var}, {.compatible = "qcom,msm8996-sdhci", .data = &sdhci_msm_mci_var}, + {.compatible = "qcom,msm8998-sdhci", .data = &sdhci_msm_mci_var}, /* * Add entries for sdcc version 5.0 here. For SDCC version 5.0.0, * MCI registers are removed from SDCC interface and some registers -- 2.34.1 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 2/3] mmc: sdhci-msm: add MSM8998 SDCC specific compatible 2022-07-11 8:27 ` [PATCH 2/3] mmc: sdhci-msm: add MSM8998 SDCC specific compatible Krzysztof Kozlowski @ 2022-07-11 8:42 ` Konrad Dybcio 2022-07-11 15:08 ` Doug Anderson 1 sibling, 0 replies; 10+ messages in thread From: Konrad Dybcio @ 2022-07-11 8:42 UTC (permalink / raw) To: Krzysztof Kozlowski, Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Adrian Hunter, Bhupesh Sharma, linux-mmc, devicetree, linux-kernel, linux-arm-msm Cc: Douglas Anderson On 11.07.2022 10:27, Krzysztof Kozlowski wrote: > Add a MSM8998-specific SDCC compatible, because using only a generic > qcom,sdhci-msm-v4 fallback is deprecated. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org> Konrad > drivers/mmc/host/sdhci-msm.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c > index e395411fb6fd..bb169c1c2b5e 100644 > --- a/drivers/mmc/host/sdhci-msm.c > +++ b/drivers/mmc/host/sdhci-msm.c > @@ -2447,6 +2447,7 @@ static const struct of_device_id sdhci_msm_dt_match[] = { > {.compatible = "qcom,msm8992-sdhci", .data = &sdhci_msm_mci_var}, > {.compatible = "qcom,msm8994-sdhci", .data = &sdhci_msm_mci_var}, > {.compatible = "qcom,msm8996-sdhci", .data = &sdhci_msm_mci_var}, > + {.compatible = "qcom,msm8998-sdhci", .data = &sdhci_msm_mci_var}, > /* > * Add entries for sdcc version 5.0 here. For SDCC version 5.0.0, > * MCI registers are removed from SDCC interface and some registers ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/3] mmc: sdhci-msm: add MSM8998 SDCC specific compatible 2022-07-11 8:27 ` [PATCH 2/3] mmc: sdhci-msm: add MSM8998 SDCC specific compatible Krzysztof Kozlowski 2022-07-11 8:42 ` Konrad Dybcio @ 2022-07-11 15:08 ` Doug Anderson 2022-07-12 6:47 ` Krzysztof Kozlowski 1 sibling, 1 reply; 10+ messages in thread From: Doug Anderson @ 2022-07-11 15:08 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Konrad Dybcio, Adrian Hunter, Bhupesh Sharma, Linux MMC List, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, LKML, linux-arm-msm Hi, On Mon, Jul 11, 2022 at 1:27 AM Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > Add a MSM8998-specific SDCC compatible, because using only a generic > qcom,sdhci-msm-v4 fallback is deprecated. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > drivers/mmc/host/sdhci-msm.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c > index e395411fb6fd..bb169c1c2b5e 100644 > --- a/drivers/mmc/host/sdhci-msm.c > +++ b/drivers/mmc/host/sdhci-msm.c > @@ -2447,6 +2447,7 @@ static const struct of_device_id sdhci_msm_dt_match[] = { > {.compatible = "qcom,msm8992-sdhci", .data = &sdhci_msm_mci_var}, > {.compatible = "qcom,msm8994-sdhci", .data = &sdhci_msm_mci_var}, > {.compatible = "qcom,msm8996-sdhci", .data = &sdhci_msm_mci_var}, > + {.compatible = "qcom,msm8998-sdhci", .data = &sdhci_msm_mci_var}, FWIW I'm _against_ this change. In my mind while it is correct to specify both the specific and generic compatible string in the device tree, the driver itself should rely on just the generic compatible string until there is a reason to use the specific one (like we needed to for sdm845 and sc7180). I think I pointed that out before, but somehow all of the specific device tree strings have snuck their way into the driver without me paying attention. :( -Doug ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/3] mmc: sdhci-msm: add MSM8998 SDCC specific compatible 2022-07-11 15:08 ` Doug Anderson @ 2022-07-12 6:47 ` Krzysztof Kozlowski 2022-07-12 14:38 ` Doug Anderson 0 siblings, 1 reply; 10+ messages in thread From: Krzysztof Kozlowski @ 2022-07-12 6:47 UTC (permalink / raw) To: Doug Anderson Cc: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Konrad Dybcio, Adrian Hunter, Bhupesh Sharma, Linux MMC List, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, LKML, linux-arm-msm On 11/07/2022 17:08, Doug Anderson wrote: > Hi, > > On Mon, Jul 11, 2022 at 1:27 AM Krzysztof Kozlowski > <krzysztof.kozlowski@linaro.org> wrote: >> >> Add a MSM8998-specific SDCC compatible, because using only a generic >> qcom,sdhci-msm-v4 fallback is deprecated. >> >> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> --- >> drivers/mmc/host/sdhci-msm.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c >> index e395411fb6fd..bb169c1c2b5e 100644 >> --- a/drivers/mmc/host/sdhci-msm.c >> +++ b/drivers/mmc/host/sdhci-msm.c >> @@ -2447,6 +2447,7 @@ static const struct of_device_id sdhci_msm_dt_match[] = { >> {.compatible = "qcom,msm8992-sdhci", .data = &sdhci_msm_mci_var}, >> {.compatible = "qcom,msm8994-sdhci", .data = &sdhci_msm_mci_var}, >> {.compatible = "qcom,msm8996-sdhci", .data = &sdhci_msm_mci_var}, >> + {.compatible = "qcom,msm8998-sdhci", .data = &sdhci_msm_mci_var}, > > FWIW I'm _against_ this change. > > In my mind while it is correct to specify both the specific and > generic compatible string in the device tree, the driver itself should > rely on just the generic compatible string until there is a reason to > use the specific one (like we needed to for sdm845 and sc7180). > > I think I pointed that out before, but somehow all of the specific > device tree strings have snuck their way into the driver without me > paying attention. :( I thought it's existing practice for some time, but it's a fresh commit 466614a9765c ("mmc: sdhci-msm: Add SoC specific compatibles"). I agree that it does not make much sense to add each compatible to the driver, so how about reverting 466614a9765c? Best regards, Krzysztof ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/3] mmc: sdhci-msm: add MSM8998 SDCC specific compatible 2022-07-12 6:47 ` Krzysztof Kozlowski @ 2022-07-12 14:38 ` Doug Anderson 0 siblings, 0 replies; 10+ messages in thread From: Doug Anderson @ 2022-07-12 14:38 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Konrad Dybcio, Adrian Hunter, Bhupesh Sharma, Linux MMC List, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, LKML, linux-arm-msm Hi, On Mon, Jul 11, 2022 at 11:47 PM Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > On 11/07/2022 17:08, Doug Anderson wrote: > > Hi, > > > > On Mon, Jul 11, 2022 at 1:27 AM Krzysztof Kozlowski > > <krzysztof.kozlowski@linaro.org> wrote: > >> > >> Add a MSM8998-specific SDCC compatible, because using only a generic > >> qcom,sdhci-msm-v4 fallback is deprecated. > >> > >> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > >> --- > >> drivers/mmc/host/sdhci-msm.c | 1 + > >> 1 file changed, 1 insertion(+) > >> > >> diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c > >> index e395411fb6fd..bb169c1c2b5e 100644 > >> --- a/drivers/mmc/host/sdhci-msm.c > >> +++ b/drivers/mmc/host/sdhci-msm.c > >> @@ -2447,6 +2447,7 @@ static const struct of_device_id sdhci_msm_dt_match[] = { > >> {.compatible = "qcom,msm8992-sdhci", .data = &sdhci_msm_mci_var}, > >> {.compatible = "qcom,msm8994-sdhci", .data = &sdhci_msm_mci_var}, > >> {.compatible = "qcom,msm8996-sdhci", .data = &sdhci_msm_mci_var}, > >> + {.compatible = "qcom,msm8998-sdhci", .data = &sdhci_msm_mci_var}, > > > > FWIW I'm _against_ this change. > > > > In my mind while it is correct to specify both the specific and > > generic compatible string in the device tree, the driver itself should > > rely on just the generic compatible string until there is a reason to > > use the specific one (like we needed to for sdm845 and sc7180). > > > > I think I pointed that out before, but somehow all of the specific > > device tree strings have snuck their way into the driver without me > > paying attention. :( > > I thought it's existing practice for some time, but it's a fresh commit > 466614a9765c ("mmc: sdhci-msm: Add SoC specific compatibles"). I agree > that it does not make much sense to add each compatible to the driver, > so how about reverting 466614a9765c? That would be my vote. -Doug ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 3/3] arm64: dts: qcom: msm8998: add MSM8998 SDCC specific compatible 2022-07-11 8:27 [PATCH 1/3] dt-bindings: mmc: sdhci-msm: add MSM8998 Krzysztof Kozlowski 2022-07-11 8:27 ` [PATCH 2/3] mmc: sdhci-msm: add MSM8998 SDCC specific compatible Krzysztof Kozlowski @ 2022-07-11 8:27 ` Krzysztof Kozlowski 2022-07-11 8:41 ` Konrad Dybcio 2022-07-11 14:58 ` Doug Anderson 2022-07-11 14:53 ` [PATCH 1/3] dt-bindings: mmc: sdhci-msm: add MSM8998 Doug Anderson 2 siblings, 2 replies; 10+ messages in thread From: Krzysztof Kozlowski @ 2022-07-11 8:27 UTC (permalink / raw) To: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Konrad Dybcio, Adrian Hunter, Bhupesh Sharma, linux-mmc, devicetree, linux-kernel, linux-arm-msm Cc: Douglas Anderson, Krzysztof Kozlowski Add a MSM8998-specific SDCC compatible, because using only a generic qcom,sdhci-msm-v4 fallback is deprecated. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 91153a0234f5..c98f36f95f3c 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -2076,7 +2076,7 @@ qusb2phy: phy@c012000 { }; sdhc2: mmc@c0a4900 { - compatible = "qcom,sdhci-msm-v4"; + compatible = "qcom,msm8998-sdhci", "qcom,sdhci-msm-v4"; reg = <0x0c0a4900 0x314>, <0x0c0a4000 0x800>; reg-names = "hc", "core"; -- 2.34.1 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] arm64: dts: qcom: msm8998: add MSM8998 SDCC specific compatible 2022-07-11 8:27 ` [PATCH 3/3] arm64: dts: qcom: msm8998: " Krzysztof Kozlowski @ 2022-07-11 8:41 ` Konrad Dybcio 2022-07-11 14:58 ` Doug Anderson 1 sibling, 0 replies; 10+ messages in thread From: Konrad Dybcio @ 2022-07-11 8:41 UTC (permalink / raw) To: Krzysztof Kozlowski, Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Adrian Hunter, Bhupesh Sharma, linux-mmc, devicetree, linux-kernel, linux-arm-msm Cc: Douglas Anderson On 11.07.2022 10:27, Krzysztof Kozlowski wrote: > Add a MSM8998-specific SDCC compatible, because using only a generic > qcom,sdhci-msm-v4 fallback is deprecated. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org> Konrad > arch/arm64/boot/dts/qcom/msm8998.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi > index 91153a0234f5..c98f36f95f3c 100644 > --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi > @@ -2076,7 +2076,7 @@ qusb2phy: phy@c012000 { > }; > > sdhc2: mmc@c0a4900 { > - compatible = "qcom,sdhci-msm-v4"; > + compatible = "qcom,msm8998-sdhci", "qcom,sdhci-msm-v4"; > reg = <0x0c0a4900 0x314>, <0x0c0a4000 0x800>; > reg-names = "hc", "core"; > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] arm64: dts: qcom: msm8998: add MSM8998 SDCC specific compatible 2022-07-11 8:27 ` [PATCH 3/3] arm64: dts: qcom: msm8998: " Krzysztof Kozlowski 2022-07-11 8:41 ` Konrad Dybcio @ 2022-07-11 14:58 ` Doug Anderson 1 sibling, 0 replies; 10+ messages in thread From: Doug Anderson @ 2022-07-11 14:58 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Konrad Dybcio, Adrian Hunter, Bhupesh Sharma, Linux MMC List, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, LKML, linux-arm-msm Hi, On Mon, Jul 11, 2022 at 1:27 AM Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > Add a MSM8998-specific SDCC compatible, because using only a generic > qcom,sdhci-msm-v4 fallback is deprecated. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > arch/arm64/boot/dts/qcom/msm8998.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Douglas Anderson <dianders@chromium.org> ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/3] dt-bindings: mmc: sdhci-msm: add MSM8998 2022-07-11 8:27 [PATCH 1/3] dt-bindings: mmc: sdhci-msm: add MSM8998 Krzysztof Kozlowski 2022-07-11 8:27 ` [PATCH 2/3] mmc: sdhci-msm: add MSM8998 SDCC specific compatible Krzysztof Kozlowski 2022-07-11 8:27 ` [PATCH 3/3] arm64: dts: qcom: msm8998: " Krzysztof Kozlowski @ 2022-07-11 14:53 ` Doug Anderson 2 siblings, 0 replies; 10+ messages in thread From: Doug Anderson @ 2022-07-11 14:53 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Konrad Dybcio, Adrian Hunter, Bhupesh Sharma, Linux MMC List, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, LKML, linux-arm-msm Hi, On Mon, Jul 11, 2022 at 1:27 AM Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > Add a MSM8998-specific SDCC compatible, because using only a generic > qcom,sdhci-msm-v4 fallback is deprecated. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > Documentation/devicetree/bindings/mmc/sdhci-msm.yaml | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Douglas Anderson <dianders@chromium.org> ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-07-12 14:38 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-07-11 8:27 [PATCH 1/3] dt-bindings: mmc: sdhci-msm: add MSM8998 Krzysztof Kozlowski 2022-07-11 8:27 ` [PATCH 2/3] mmc: sdhci-msm: add MSM8998 SDCC specific compatible Krzysztof Kozlowski 2022-07-11 8:42 ` Konrad Dybcio 2022-07-11 15:08 ` Doug Anderson 2022-07-12 6:47 ` Krzysztof Kozlowski 2022-07-12 14:38 ` Doug Anderson 2022-07-11 8:27 ` [PATCH 3/3] arm64: dts: qcom: msm8998: " Krzysztof Kozlowski 2022-07-11 8:41 ` Konrad Dybcio 2022-07-11 14:58 ` Doug Anderson 2022-07-11 14:53 ` [PATCH 1/3] dt-bindings: mmc: sdhci-msm: add MSM8998 Doug Anderson
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).