* [PATCH v2] mmc: sdhci-msm: detect if tassadar_dll is used by using core version
@ 2020-11-12 17:36 Dmitry Baryshkov
2020-11-13 8:20 ` Veerabhadrarao Badiganti
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Dmitry Baryshkov @ 2020-11-12 17:36 UTC (permalink / raw)
To: Adrian Hunter
Cc: Andy Gross, Bjorn Andersson, Ulf Hansson, linux-arm-msm,
linux-mmc, Veerabhadrarao Badiganti
Detect if tassadar_dll is required by using core version rather than
just specifying it in the sdhci_msm_variant_info.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
---
drivers/mmc/host/sdhci-msm.c | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
index 3451eb325513..9c7927b03253 100644
--- a/drivers/mmc/host/sdhci-msm.c
+++ b/drivers/mmc/host/sdhci-msm.c
@@ -248,7 +248,6 @@ struct sdhci_msm_variant_ops {
struct sdhci_msm_variant_info {
bool mci_removed;
bool restore_dll_config;
- bool uses_tassadar_dll;
const struct sdhci_msm_variant_ops *var_ops;
const struct sdhci_msm_offset *offset;
};
@@ -2154,18 +2153,10 @@ static const struct sdhci_msm_variant_info sdm845_sdhci_var = {
.offset = &sdhci_msm_v5_offset,
};
-static const struct sdhci_msm_variant_info sm8250_sdhci_var = {
- .mci_removed = true,
- .uses_tassadar_dll = true,
- .var_ops = &v5_var_ops,
- .offset = &sdhci_msm_v5_offset,
-};
-
static const struct of_device_id sdhci_msm_dt_match[] = {
{.compatible = "qcom,sdhci-msm-v4", .data = &sdhci_msm_mci_var},
{.compatible = "qcom,sdhci-msm-v5", .data = &sdhci_msm_v5_var},
{.compatible = "qcom,sdm845-sdhci", .data = &sdm845_sdhci_var},
- {.compatible = "qcom,sm8250-sdhci", .data = &sm8250_sdhci_var},
{.compatible = "qcom,sc7180-sdhci", .data = &sdm845_sdhci_var},
{},
};
@@ -2249,7 +2240,6 @@ static int sdhci_msm_probe(struct platform_device *pdev)
msm_host->restore_dll_config = var_info->restore_dll_config;
msm_host->var_ops = var_info->var_ops;
msm_host->offset = var_info->offset;
- msm_host->uses_tassadar_dll = var_info->uses_tassadar_dll;
msm_offset = msm_host->offset;
@@ -2396,6 +2386,9 @@ static int sdhci_msm_probe(struct platform_device *pdev)
if (core_major == 1 && core_minor >= 0x49)
msm_host->updated_ddr_cfg = true;
+ if (core_major == 1 && core_minor >= 0x71)
+ msm_host->uses_tassadar_dll = true;
+
ret = sdhci_msm_register_vreg(msm_host);
if (ret)
goto clk_disable;
--
2.28.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] mmc: sdhci-msm: detect if tassadar_dll is used by using core version
2020-11-12 17:36 [PATCH v2] mmc: sdhci-msm: detect if tassadar_dll is used by using core version Dmitry Baryshkov
@ 2020-11-13 8:20 ` Veerabhadrarao Badiganti
2020-11-17 11:50 ` Ulf Hansson
2020-12-29 20:15 ` patchwork-bot+linux-arm-msm
2 siblings, 0 replies; 4+ messages in thread
From: Veerabhadrarao Badiganti @ 2020-11-13 8:20 UTC (permalink / raw)
To: Dmitry Baryshkov, Adrian Hunter
Cc: Andy Gross, Bjorn Andersson, Ulf Hansson, linux-arm-msm, linux-mmc
On 11/12/2020 11:06 PM, Dmitry Baryshkov wrote:
> Detect if tassadar_dll is required by using core version rather than
> just specifying it in the sdhci_msm_variant_info.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Cc: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
> ---
Reviewed-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
> drivers/mmc/host/sdhci-msm.c | 13 +++----------
> 1 file changed, 3 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
> index 3451eb325513..9c7927b03253 100644
> --- a/drivers/mmc/host/sdhci-msm.c
> +++ b/drivers/mmc/host/sdhci-msm.c
> @@ -248,7 +248,6 @@ struct sdhci_msm_variant_ops {
> struct sdhci_msm_variant_info {
> bool mci_removed;
> bool restore_dll_config;
> - bool uses_tassadar_dll;
> const struct sdhci_msm_variant_ops *var_ops;
> const struct sdhci_msm_offset *offset;
> };
> @@ -2154,18 +2153,10 @@ static const struct sdhci_msm_variant_info sdm845_sdhci_var = {
> .offset = &sdhci_msm_v5_offset,
> };
>
> -static const struct sdhci_msm_variant_info sm8250_sdhci_var = {
> - .mci_removed = true,
> - .uses_tassadar_dll = true,
> - .var_ops = &v5_var_ops,
> - .offset = &sdhci_msm_v5_offset,
> -};
> -
> static const struct of_device_id sdhci_msm_dt_match[] = {
> {.compatible = "qcom,sdhci-msm-v4", .data = &sdhci_msm_mci_var},
> {.compatible = "qcom,sdhci-msm-v5", .data = &sdhci_msm_v5_var},
> {.compatible = "qcom,sdm845-sdhci", .data = &sdm845_sdhci_var},
> - {.compatible = "qcom,sm8250-sdhci", .data = &sm8250_sdhci_var},
> {.compatible = "qcom,sc7180-sdhci", .data = &sdm845_sdhci_var},
> {},
> };
> @@ -2249,7 +2240,6 @@ static int sdhci_msm_probe(struct platform_device *pdev)
> msm_host->restore_dll_config = var_info->restore_dll_config;
> msm_host->var_ops = var_info->var_ops;
> msm_host->offset = var_info->offset;
> - msm_host->uses_tassadar_dll = var_info->uses_tassadar_dll;
>
> msm_offset = msm_host->offset;
>
> @@ -2396,6 +2386,9 @@ static int sdhci_msm_probe(struct platform_device *pdev)
> if (core_major == 1 && core_minor >= 0x49)
> msm_host->updated_ddr_cfg = true;
>
> + if (core_major == 1 && core_minor >= 0x71)
> + msm_host->uses_tassadar_dll = true;
> +
> ret = sdhci_msm_register_vreg(msm_host);
> if (ret)
> goto clk_disable;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] mmc: sdhci-msm: detect if tassadar_dll is used by using core version
2020-11-12 17:36 [PATCH v2] mmc: sdhci-msm: detect if tassadar_dll is used by using core version Dmitry Baryshkov
2020-11-13 8:20 ` Veerabhadrarao Badiganti
@ 2020-11-17 11:50 ` Ulf Hansson
2020-12-29 20:15 ` patchwork-bot+linux-arm-msm
2 siblings, 0 replies; 4+ messages in thread
From: Ulf Hansson @ 2020-11-17 11:50 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Adrian Hunter, Andy Gross, Bjorn Andersson, linux-arm-msm,
linux-mmc, Veerabhadrarao Badiganti
On Thu, 12 Nov 2020 at 18:36, Dmitry Baryshkov
<dmitry.baryshkov@linaro.org> wrote:
>
> Detect if tassadar_dll is required by using core version rather than
> just specifying it in the sdhci_msm_variant_info.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Cc: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Applied for next, thanks!
Kind regards
Uffe
> ---
> drivers/mmc/host/sdhci-msm.c | 13 +++----------
> 1 file changed, 3 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
> index 3451eb325513..9c7927b03253 100644
> --- a/drivers/mmc/host/sdhci-msm.c
> +++ b/drivers/mmc/host/sdhci-msm.c
> @@ -248,7 +248,6 @@ struct sdhci_msm_variant_ops {
> struct sdhci_msm_variant_info {
> bool mci_removed;
> bool restore_dll_config;
> - bool uses_tassadar_dll;
> const struct sdhci_msm_variant_ops *var_ops;
> const struct sdhci_msm_offset *offset;
> };
> @@ -2154,18 +2153,10 @@ static const struct sdhci_msm_variant_info sdm845_sdhci_var = {
> .offset = &sdhci_msm_v5_offset,
> };
>
> -static const struct sdhci_msm_variant_info sm8250_sdhci_var = {
> - .mci_removed = true,
> - .uses_tassadar_dll = true,
> - .var_ops = &v5_var_ops,
> - .offset = &sdhci_msm_v5_offset,
> -};
> -
> static const struct of_device_id sdhci_msm_dt_match[] = {
> {.compatible = "qcom,sdhci-msm-v4", .data = &sdhci_msm_mci_var},
> {.compatible = "qcom,sdhci-msm-v5", .data = &sdhci_msm_v5_var},
> {.compatible = "qcom,sdm845-sdhci", .data = &sdm845_sdhci_var},
> - {.compatible = "qcom,sm8250-sdhci", .data = &sm8250_sdhci_var},
> {.compatible = "qcom,sc7180-sdhci", .data = &sdm845_sdhci_var},
> {},
> };
> @@ -2249,7 +2240,6 @@ static int sdhci_msm_probe(struct platform_device *pdev)
> msm_host->restore_dll_config = var_info->restore_dll_config;
> msm_host->var_ops = var_info->var_ops;
> msm_host->offset = var_info->offset;
> - msm_host->uses_tassadar_dll = var_info->uses_tassadar_dll;
>
> msm_offset = msm_host->offset;
>
> @@ -2396,6 +2386,9 @@ static int sdhci_msm_probe(struct platform_device *pdev)
> if (core_major == 1 && core_minor >= 0x49)
> msm_host->updated_ddr_cfg = true;
>
> + if (core_major == 1 && core_minor >= 0x71)
> + msm_host->uses_tassadar_dll = true;
> +
> ret = sdhci_msm_register_vreg(msm_host);
> if (ret)
> goto clk_disable;
> --
> 2.28.0
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] mmc: sdhci-msm: detect if tassadar_dll is used by using core version
2020-11-12 17:36 [PATCH v2] mmc: sdhci-msm: detect if tassadar_dll is used by using core version Dmitry Baryshkov
2020-11-13 8:20 ` Veerabhadrarao Badiganti
2020-11-17 11:50 ` Ulf Hansson
@ 2020-12-29 20:15 ` patchwork-bot+linux-arm-msm
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+linux-arm-msm @ 2020-12-29 20:15 UTC (permalink / raw)
To: Dmitry Baryshkov; +Cc: linux-arm-msm
Hello:
This patch was applied to qcom/linux.git (refs/heads/for-next):
On Thu, 12 Nov 2020 20:36:36 +0300 you wrote:
> Detect if tassadar_dll is required by using core version rather than
> just specifying it in the sdhci_msm_variant_info.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Cc: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
> ---
> drivers/mmc/host/sdhci-msm.c | 13 +++----------
> 1 file changed, 3 insertions(+), 10 deletions(-)
Here is the summary with links:
- [v2] mmc: sdhci-msm: detect if tassadar_dll is used by using core version
https://git.kernel.org/qcom/c/8ffbfe43e903
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-12-29 20:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-12 17:36 [PATCH v2] mmc: sdhci-msm: detect if tassadar_dll is used by using core version Dmitry Baryshkov
2020-11-13 8:20 ` Veerabhadrarao Badiganti
2020-11-17 11:50 ` Ulf Hansson
2020-12-29 20:15 ` patchwork-bot+linux-arm-msm
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).