linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 1/2] clk: qcom: lpasscc-sc7810: Use devm in probe
@ 2020-10-19 22:49 Douglas Anderson
  2020-10-19 22:49 ` [PATCH v5 2/2] clk: qcom: lpass-sc7180: Disentangle the two clock devices Douglas Anderson
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Douglas Anderson @ 2020-10-19 22:49 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: Taniya Das, David Brown, Rajendra Nayak, linux-soc,
	Douglas Anderson, Andy Gross, Bjorn Andersson, Michael Turquette,
	linux-arm-msm, linux-clk, linux-kernel

Let's convert the lpass clock control driver to use devm.  This is a
few more lines of code, but it will be useful in a later patch which
disentangles the two devices handled by this driver.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
---

(no changes since v4)

Changes in v4:
- Fixed typo lapss => lpass
- Moved lpass_pm_runtime_disable() lpass_pm_clk_destroy() in file.

Changes in v3:
- ("clk: qcom: lpasscc-sc7810: Use devm in probe") new for v3.

 drivers/clk/qcom/lpasscorecc-sc7180.c | 38 +++++++++++++++------------
 1 file changed, 21 insertions(+), 17 deletions(-)

diff --git a/drivers/clk/qcom/lpasscorecc-sc7180.c b/drivers/clk/qcom/lpasscorecc-sc7180.c
index 228d08f5d26f..2d15e33ec837 100644
--- a/drivers/clk/qcom/lpasscorecc-sc7180.c
+++ b/drivers/clk/qcom/lpasscorecc-sc7180.c
@@ -356,6 +356,16 @@ static const struct qcom_cc_desc lpass_audio_hm_sc7180_desc = {
 	.num_gdscs = ARRAY_SIZE(lpass_audio_hm_sc7180_gdscs),
 };
 
+static void lpass_pm_runtime_disable(void *data)
+{
+	pm_runtime_disable(data);
+}
+
+static void lpass_pm_clk_destroy(void *data)
+{
+	pm_clk_destroy(data);
+}
+
 static int lpass_core_cc_sc7180_probe(struct platform_device *pdev)
 {
 	const struct qcom_cc_desc *desc;
@@ -418,34 +428,28 @@ static int lpass_core_sc7180_probe(struct platform_device *pdev)
 	int ret;
 
 	pm_runtime_enable(&pdev->dev);
+	ret = devm_add_action_or_reset(&pdev->dev, lpass_pm_runtime_disable, &pdev->dev);
+	if (ret)
+		return ret;
+
 	ret = pm_clk_create(&pdev->dev);
 	if (ret)
-		goto disable_pm_runtime;
+		return ret;
+	ret = devm_add_action_or_reset(&pdev->dev, lpass_pm_clk_destroy, &pdev->dev);
+	if (ret)
+		return ret;
 
 	ret = pm_clk_add(&pdev->dev, "iface");
 	if (ret < 0) {
 		dev_err(&pdev->dev, "failed to acquire iface clock\n");
-		goto destroy_pm_clk;
+		return ret;
 	}
 
-	ret = -EINVAL;
 	clk_probe = of_device_get_match_data(&pdev->dev);
 	if (!clk_probe)
-		goto destroy_pm_clk;
-
-	ret = clk_probe(pdev);
-	if (ret)
-		goto destroy_pm_clk;
-
-	return 0;
-
-destroy_pm_clk:
-	pm_clk_destroy(&pdev->dev);
-
-disable_pm_runtime:
-	pm_runtime_disable(&pdev->dev);
+		return -EINVAL;
 
-	return ret;
+	return clk_probe(pdev);
 }
 
 static const struct dev_pm_ops lpass_core_cc_pm_ops = {
-- 
2.29.0.rc1.297.gfa9743e501-goog


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

* [PATCH v5 2/2] clk: qcom: lpass-sc7180: Disentangle the two clock devices
  2020-10-19 22:49 [PATCH v5 1/2] clk: qcom: lpasscc-sc7810: Use devm in probe Douglas Anderson
@ 2020-10-19 22:49 ` Douglas Anderson
  2020-10-29  9:02   ` Taniya Das
  2020-11-05  2:34   ` Stephen Boyd
  2020-10-29  9:02 ` [PATCH v5 1/2] clk: qcom: lpasscc-sc7810: Use devm in probe Taniya Das
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 7+ messages in thread
From: Douglas Anderson @ 2020-10-19 22:49 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: Taniya Das, David Brown, Rajendra Nayak, linux-soc,
	Douglas Anderson, Andy Gross, Bjorn Andersson, Michael Turquette,
	linux-arm-msm, linux-clk, linux-kernel

The sc7180 lpass clock driver manages two different devices.  These
two devices were tangled together, using one probe and a lookup to
figure out the real probe.  I think it's cleaner to really separate
the probe for these two devices since they're really different things,
just both managed by the same driver.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
---

Note: this is now a 2-patch cleanup series with no actual bugfixes
since the problem solved by patch #3 was better solved with:

https://lore.kernel.org/r/20201017020137.1251319-1-sboyd@kernel.org

Changes in v5:
- Two blank lines inserted before "return" statements.

Changes in v3:
- ("clk: qcom: lpass-sc7180: Disentangle the two clock devices") new for v3.

 drivers/clk/qcom/lpasscorecc-sc7180.c | 103 ++++++++++++++++----------
 1 file changed, 64 insertions(+), 39 deletions(-)

diff --git a/drivers/clk/qcom/lpasscorecc-sc7180.c b/drivers/clk/qcom/lpasscorecc-sc7180.c
index 2d15e33ec837..1a3925badd7c 100644
--- a/drivers/clk/qcom/lpasscorecc-sc7180.c
+++ b/drivers/clk/qcom/lpasscorecc-sc7180.c
@@ -366,12 +366,39 @@ static void lpass_pm_clk_destroy(void *data)
 	pm_clk_destroy(data);
 }
 
+static int lpass_create_pm_clks(struct platform_device *pdev)
+{
+	int ret;
+
+	pm_runtime_enable(&pdev->dev);
+	ret = devm_add_action_or_reset(&pdev->dev, lpass_pm_runtime_disable, &pdev->dev);
+	if (ret)
+		return ret;
+
+	ret = pm_clk_create(&pdev->dev);
+	if (ret)
+		return ret;
+	ret = devm_add_action_or_reset(&pdev->dev, lpass_pm_clk_destroy, &pdev->dev);
+	if (ret)
+		return ret;
+
+	ret = pm_clk_add(&pdev->dev, "iface");
+	if (ret < 0)
+		dev_err(&pdev->dev, "failed to acquire iface clock\n");
+
+	return ret;
+}
+
 static int lpass_core_cc_sc7180_probe(struct platform_device *pdev)
 {
 	const struct qcom_cc_desc *desc;
 	struct regmap *regmap;
 	int ret;
 
+	ret = lpass_create_pm_clks(pdev);
+	if (ret)
+		return ret;
+
 	lpass_core_cc_sc7180_regmap_config.name = "lpass_audio_cc";
 	desc = &lpass_audio_hm_sc7180_desc;
 	ret = qcom_cc_probe_by_index(pdev, 1, desc);
@@ -402,6 +429,11 @@ static int lpass_core_cc_sc7180_probe(struct platform_device *pdev)
 static int lpass_hm_core_probe(struct platform_device *pdev)
 {
 	const struct qcom_cc_desc *desc;
+	int ret;
+
+	ret = lpass_create_pm_clks(pdev);
+	if (ret)
+		return ret;
 
 	lpass_core_cc_sc7180_regmap_config.name = "lpass_hm_core";
 	desc = &lpass_core_hm_sc7180_desc;
@@ -409,55 +441,28 @@ static int lpass_hm_core_probe(struct platform_device *pdev)
 	return qcom_cc_probe_by_index(pdev, 0, desc);
 }
 
-static const struct of_device_id lpass_core_cc_sc7180_match_table[] = {
+static const struct of_device_id lpass_hm_sc7180_match_table[] = {
 	{
 		.compatible = "qcom,sc7180-lpasshm",
-		.data = lpass_hm_core_probe,
 	},
+	{ }
+};
+MODULE_DEVICE_TABLE(of, lpass_hm_sc7180_match_table);
+
+static const struct of_device_id lpass_core_cc_sc7180_match_table[] = {
 	{
 		.compatible = "qcom,sc7180-lpasscorecc",
-		.data = lpass_core_cc_sc7180_probe,
 	},
 	{ }
 };
 MODULE_DEVICE_TABLE(of, lpass_core_cc_sc7180_match_table);
 
-static int lpass_core_sc7180_probe(struct platform_device *pdev)
-{
-	int (*clk_probe)(struct platform_device *p);
-	int ret;
-
-	pm_runtime_enable(&pdev->dev);
-	ret = devm_add_action_or_reset(&pdev->dev, lpass_pm_runtime_disable, &pdev->dev);
-	if (ret)
-		return ret;
-
-	ret = pm_clk_create(&pdev->dev);
-	if (ret)
-		return ret;
-	ret = devm_add_action_or_reset(&pdev->dev, lpass_pm_clk_destroy, &pdev->dev);
-	if (ret)
-		return ret;
-
-	ret = pm_clk_add(&pdev->dev, "iface");
-	if (ret < 0) {
-		dev_err(&pdev->dev, "failed to acquire iface clock\n");
-		return ret;
-	}
-
-	clk_probe = of_device_get_match_data(&pdev->dev);
-	if (!clk_probe)
-		return -EINVAL;
-
-	return clk_probe(pdev);
-}
-
 static const struct dev_pm_ops lpass_core_cc_pm_ops = {
 	SET_RUNTIME_PM_OPS(pm_clk_suspend, pm_clk_resume, NULL)
 };
 
 static struct platform_driver lpass_core_cc_sc7180_driver = {
-	.probe = lpass_core_sc7180_probe,
+	.probe = lpass_core_cc_sc7180_probe,
 	.driver = {
 		.name = "lpass_core_cc-sc7180",
 		.of_match_table = lpass_core_cc_sc7180_match_table,
@@ -465,17 +470,37 @@ static struct platform_driver lpass_core_cc_sc7180_driver = {
 	},
 };
 
-static int __init lpass_core_cc_sc7180_init(void)
+static const struct dev_pm_ops lpass_hm_pm_ops = {
+	SET_RUNTIME_PM_OPS(pm_clk_suspend, pm_clk_resume, NULL)
+};
+
+static struct platform_driver lpass_hm_sc7180_driver = {
+	.probe = lpass_hm_core_probe,
+	.driver = {
+		.name = "lpass_hm-sc7180",
+		.of_match_table = lpass_hm_sc7180_match_table,
+		.pm = &lpass_hm_pm_ops,
+	},
+};
+
+static int __init lpass_sc7180_init(void)
 {
-	return platform_driver_register(&lpass_core_cc_sc7180_driver);
+	int ret;
+
+	ret = platform_driver_register(&lpass_core_cc_sc7180_driver);
+	if (ret)
+		return ret;
+
+	return platform_driver_register(&lpass_hm_sc7180_driver);
 }
-subsys_initcall(lpass_core_cc_sc7180_init);
+subsys_initcall(lpass_sc7180_init);
 
-static void __exit lpass_core_cc_sc7180_exit(void)
+static void __exit lpass_sc7180_exit(void)
 {
+	platform_driver_unregister(&lpass_hm_sc7180_driver);
 	platform_driver_unregister(&lpass_core_cc_sc7180_driver);
 }
-module_exit(lpass_core_cc_sc7180_exit);
+module_exit(lpass_sc7180_exit);
 
 MODULE_DESCRIPTION("QTI LPASS_CORE_CC SC7180 Driver");
 MODULE_LICENSE("GPL v2");
-- 
2.29.0.rc1.297.gfa9743e501-goog


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

* Re: [PATCH v5 1/2] clk: qcom: lpasscc-sc7810: Use devm in probe
  2020-10-19 22:49 [PATCH v5 1/2] clk: qcom: lpasscc-sc7810: Use devm in probe Douglas Anderson
  2020-10-19 22:49 ` [PATCH v5 2/2] clk: qcom: lpass-sc7180: Disentangle the two clock devices Douglas Anderson
@ 2020-10-29  9:02 ` Taniya Das
  2020-11-05  2:34 ` Stephen Boyd
  2020-12-29 20:15 ` patchwork-bot+linux-arm-msm
  3 siblings, 0 replies; 7+ messages in thread
From: Taniya Das @ 2020-10-29  9:02 UTC (permalink / raw)
  To: Douglas Anderson, Stephen Boyd
  Cc: David Brown, Rajendra Nayak, linux-soc, Andy Gross,
	Bjorn Andersson, Michael Turquette, linux-arm-msm, linux-clk,
	linux-kernel

Reviewed-by: Taniya Das <tdas@codeaurora.org>

On 10/20/2020 4:19 AM, Douglas Anderson wrote:
> Let's convert the lpass clock control driver to use devm.  This is a
> few more lines of code, but it will be useful in a later patch which
> disentangles the two devices handled by this driver.
> 
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---
> 
> (no changes since v4)
> 
> Changes in v4:
> - Fixed typo lapss => lpass
> - Moved lpass_pm_runtime_disable() lpass_pm_clk_destroy() in file.
> 
> Changes in v3:
> - ("clk: qcom: lpasscc-sc7810: Use devm in probe") new for v3.
> 
>   drivers/clk/qcom/lpasscorecc-sc7180.c | 38 +++++++++++++++------------
>   1 file changed, 21 insertions(+), 17 deletions(-)
> 
> diff --git a/drivers/clk/qcom/lpasscorecc-sc7180.c b/drivers/clk/qcom/lpasscorecc-sc7180.c
> index 228d08f5d26f..2d15e33ec837 100644
> --- a/drivers/clk/qcom/lpasscorecc-sc7180.c
> +++ b/drivers/clk/qcom/lpasscorecc-sc7180.c
> @@ -356,6 +356,16 @@ static const struct qcom_cc_desc lpass_audio_hm_sc7180_desc = {
>   	.num_gdscs = ARRAY_SIZE(lpass_audio_hm_sc7180_gdscs),
>   };
>   
> +static void lpass_pm_runtime_disable(void *data)
> +{
> +	pm_runtime_disable(data);
> +}
> +
> +static void lpass_pm_clk_destroy(void *data)
> +{
> +	pm_clk_destroy(data);
> +}
> +
>   static int lpass_core_cc_sc7180_probe(struct platform_device *pdev)
>   {
>   	const struct qcom_cc_desc *desc;
> @@ -418,34 +428,28 @@ static int lpass_core_sc7180_probe(struct platform_device *pdev)
>   	int ret;
>   
>   	pm_runtime_enable(&pdev->dev);
> +	ret = devm_add_action_or_reset(&pdev->dev, lpass_pm_runtime_disable, &pdev->dev);
> +	if (ret)
> +		return ret;
> +
>   	ret = pm_clk_create(&pdev->dev);
>   	if (ret)
> -		goto disable_pm_runtime;
> +		return ret;
> +	ret = devm_add_action_or_reset(&pdev->dev, lpass_pm_clk_destroy, &pdev->dev);
> +	if (ret)
> +		return ret;
>   
>   	ret = pm_clk_add(&pdev->dev, "iface");
>   	if (ret < 0) {
>   		dev_err(&pdev->dev, "failed to acquire iface clock\n");
> -		goto destroy_pm_clk;
> +		return ret;
>   	}
>   
> -	ret = -EINVAL;
>   	clk_probe = of_device_get_match_data(&pdev->dev);
>   	if (!clk_probe)
> -		goto destroy_pm_clk;
> -
> -	ret = clk_probe(pdev);
> -	if (ret)
> -		goto destroy_pm_clk;
> -
> -	return 0;
> -
> -destroy_pm_clk:
> -	pm_clk_destroy(&pdev->dev);
> -
> -disable_pm_runtime:
> -	pm_runtime_disable(&pdev->dev);
> +		return -EINVAL;
>   
> -	return ret;
> +	return clk_probe(pdev);
>   }
>   
>   static const struct dev_pm_ops lpass_core_cc_pm_ops = {
> 

-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation.

--

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

* Re: [PATCH v5 2/2] clk: qcom: lpass-sc7180: Disentangle the two clock devices
  2020-10-19 22:49 ` [PATCH v5 2/2] clk: qcom: lpass-sc7180: Disentangle the two clock devices Douglas Anderson
@ 2020-10-29  9:02   ` Taniya Das
  2020-11-05  2:34   ` Stephen Boyd
  1 sibling, 0 replies; 7+ messages in thread
From: Taniya Das @ 2020-10-29  9:02 UTC (permalink / raw)
  To: Douglas Anderson, Stephen Boyd
  Cc: David Brown, Rajendra Nayak, linux-soc, Andy Gross,
	Bjorn Andersson, Michael Turquette, linux-arm-msm, linux-clk,
	linux-kernel

Reviewed-by: Taniya Das <tdas@codeaurora.org>

On 10/20/2020 4:19 AM, Douglas Anderson wrote:
> The sc7180 lpass clock driver manages two different devices.  These
> two devices were tangled together, using one probe and a lookup to
> figure out the real probe.  I think it's cleaner to really separate
> the probe for these two devices since they're really different things,
> just both managed by the same driver.
> 
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---
> 
> Note: this is now a 2-patch cleanup series with no actual bugfixes
> since the problem solved by patch #3 was better solved with:
> 
> https://lore.kernel.org/r/20201017020137.1251319-1-sboyd@kernel.org
> 
> Changes in v5:
> - Two blank lines inserted before "return" statements.
> 
> Changes in v3:
> - ("clk: qcom: lpass-sc7180: Disentangle the two clock devices") new for v3.
> 
>   drivers/clk/qcom/lpasscorecc-sc7180.c | 103 ++++++++++++++++----------
>   1 file changed, 64 insertions(+), 39 deletions(-)
> 
> diff --git a/drivers/clk/qcom/lpasscorecc-sc7180.c b/drivers/clk/qcom/lpasscorecc-sc7180.c
> index 2d15e33ec837..1a3925badd7c 100644
> --- a/drivers/clk/qcom/lpasscorecc-sc7180.c
> +++ b/drivers/clk/qcom/lpasscorecc-sc7180.c
> @@ -366,12 +366,39 @@ static void lpass_pm_clk_destroy(void *data)
>   	pm_clk_destroy(data);
>   }
>   
> +static int lpass_create_pm_clks(struct platform_device *pdev)
> +{
> +	int ret;
> +
> +	pm_runtime_enable(&pdev->dev);
> +	ret = devm_add_action_or_reset(&pdev->dev, lpass_pm_runtime_disable, &pdev->dev);
> +	if (ret)
> +		return ret;
> +
> +	ret = pm_clk_create(&pdev->dev);
> +	if (ret)
> +		return ret;
> +	ret = devm_add_action_or_reset(&pdev->dev, lpass_pm_clk_destroy, &pdev->dev);
> +	if (ret)
> +		return ret;
> +
> +	ret = pm_clk_add(&pdev->dev, "iface");
> +	if (ret < 0)
> +		dev_err(&pdev->dev, "failed to acquire iface clock\n");
> +
> +	return ret;
> +}
> +
>   static int lpass_core_cc_sc7180_probe(struct platform_device *pdev)
>   {
>   	const struct qcom_cc_desc *desc;
>   	struct regmap *regmap;
>   	int ret;
>   
> +	ret = lpass_create_pm_clks(pdev);
> +	if (ret)
> +		return ret;
> +
>   	lpass_core_cc_sc7180_regmap_config.name = "lpass_audio_cc";
>   	desc = &lpass_audio_hm_sc7180_desc;
>   	ret = qcom_cc_probe_by_index(pdev, 1, desc);
> @@ -402,6 +429,11 @@ static int lpass_core_cc_sc7180_probe(struct platform_device *pdev)
>   static int lpass_hm_core_probe(struct platform_device *pdev)
>   {
>   	const struct qcom_cc_desc *desc;
> +	int ret;
> +
> +	ret = lpass_create_pm_clks(pdev);
> +	if (ret)
> +		return ret;
>   
>   	lpass_core_cc_sc7180_regmap_config.name = "lpass_hm_core";
>   	desc = &lpass_core_hm_sc7180_desc;
> @@ -409,55 +441,28 @@ static int lpass_hm_core_probe(struct platform_device *pdev)
>   	return qcom_cc_probe_by_index(pdev, 0, desc);
>   }
>   
> -static const struct of_device_id lpass_core_cc_sc7180_match_table[] = {
> +static const struct of_device_id lpass_hm_sc7180_match_table[] = {
>   	{
>   		.compatible = "qcom,sc7180-lpasshm",
> -		.data = lpass_hm_core_probe,
>   	},
> +	{ }
> +};
> +MODULE_DEVICE_TABLE(of, lpass_hm_sc7180_match_table);
> +
> +static const struct of_device_id lpass_core_cc_sc7180_match_table[] = {
>   	{
>   		.compatible = "qcom,sc7180-lpasscorecc",
> -		.data = lpass_core_cc_sc7180_probe,
>   	},
>   	{ }
>   };
>   MODULE_DEVICE_TABLE(of, lpass_core_cc_sc7180_match_table);
>   
> -static int lpass_core_sc7180_probe(struct platform_device *pdev)
> -{
> -	int (*clk_probe)(struct platform_device *p);
> -	int ret;
> -
> -	pm_runtime_enable(&pdev->dev);
> -	ret = devm_add_action_or_reset(&pdev->dev, lpass_pm_runtime_disable, &pdev->dev);
> -	if (ret)
> -		return ret;
> -
> -	ret = pm_clk_create(&pdev->dev);
> -	if (ret)
> -		return ret;
> -	ret = devm_add_action_or_reset(&pdev->dev, lpass_pm_clk_destroy, &pdev->dev);
> -	if (ret)
> -		return ret;
> -
> -	ret = pm_clk_add(&pdev->dev, "iface");
> -	if (ret < 0) {
> -		dev_err(&pdev->dev, "failed to acquire iface clock\n");
> -		return ret;
> -	}
> -
> -	clk_probe = of_device_get_match_data(&pdev->dev);
> -	if (!clk_probe)
> -		return -EINVAL;
> -
> -	return clk_probe(pdev);
> -}
> -
>   static const struct dev_pm_ops lpass_core_cc_pm_ops = {
>   	SET_RUNTIME_PM_OPS(pm_clk_suspend, pm_clk_resume, NULL)
>   };
>   
>   static struct platform_driver lpass_core_cc_sc7180_driver = {
> -	.probe = lpass_core_sc7180_probe,
> +	.probe = lpass_core_cc_sc7180_probe,
>   	.driver = {
>   		.name = "lpass_core_cc-sc7180",
>   		.of_match_table = lpass_core_cc_sc7180_match_table,
> @@ -465,17 +470,37 @@ static struct platform_driver lpass_core_cc_sc7180_driver = {
>   	},
>   };
>   
> -static int __init lpass_core_cc_sc7180_init(void)
> +static const struct dev_pm_ops lpass_hm_pm_ops = {
> +	SET_RUNTIME_PM_OPS(pm_clk_suspend, pm_clk_resume, NULL)
> +};
> +
> +static struct platform_driver lpass_hm_sc7180_driver = {
> +	.probe = lpass_hm_core_probe,
> +	.driver = {
> +		.name = "lpass_hm-sc7180",
> +		.of_match_table = lpass_hm_sc7180_match_table,
> +		.pm = &lpass_hm_pm_ops,
> +	},
> +};
> +
> +static int __init lpass_sc7180_init(void)
>   {
> -	return platform_driver_register(&lpass_core_cc_sc7180_driver);
> +	int ret;
> +
> +	ret = platform_driver_register(&lpass_core_cc_sc7180_driver);
> +	if (ret)
> +		return ret;
> +
> +	return platform_driver_register(&lpass_hm_sc7180_driver);
>   }
> -subsys_initcall(lpass_core_cc_sc7180_init);
> +subsys_initcall(lpass_sc7180_init);
>   
> -static void __exit lpass_core_cc_sc7180_exit(void)
> +static void __exit lpass_sc7180_exit(void)
>   {
> +	platform_driver_unregister(&lpass_hm_sc7180_driver);
>   	platform_driver_unregister(&lpass_core_cc_sc7180_driver);
>   }
> -module_exit(lpass_core_cc_sc7180_exit);
> +module_exit(lpass_sc7180_exit);
>   
>   MODULE_DESCRIPTION("QTI LPASS_CORE_CC SC7180 Driver");
>   MODULE_LICENSE("GPL v2");
> 

-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation.

--

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

* Re: [PATCH v5 1/2] clk: qcom: lpasscc-sc7810: Use devm in probe
  2020-10-19 22:49 [PATCH v5 1/2] clk: qcom: lpasscc-sc7810: Use devm in probe Douglas Anderson
  2020-10-19 22:49 ` [PATCH v5 2/2] clk: qcom: lpass-sc7180: Disentangle the two clock devices Douglas Anderson
  2020-10-29  9:02 ` [PATCH v5 1/2] clk: qcom: lpasscc-sc7810: Use devm in probe Taniya Das
@ 2020-11-05  2:34 ` Stephen Boyd
  2020-12-29 20:15 ` patchwork-bot+linux-arm-msm
  3 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2020-11-05  2:34 UTC (permalink / raw)
  To: Douglas Anderson
  Cc: Taniya Das, David Brown, Rajendra Nayak, linux-soc,
	Douglas Anderson, Andy Gross, Bjorn Andersson, Michael Turquette,
	linux-arm-msm, linux-clk, linux-kernel

Quoting Douglas Anderson (2020-10-19 15:49:34)
> Let's convert the lpass clock control driver to use devm.  This is a
> few more lines of code, but it will be useful in a later patch which
> disentangles the two devices handled by this driver.
> 
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---

This pattern is common. We should consider pulling this into qcom/core.c
and consolidating code a bit.

Applied to clk-next

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

* Re: [PATCH v5 2/2] clk: qcom: lpass-sc7180: Disentangle the two clock devices
  2020-10-19 22:49 ` [PATCH v5 2/2] clk: qcom: lpass-sc7180: Disentangle the two clock devices Douglas Anderson
  2020-10-29  9:02   ` Taniya Das
@ 2020-11-05  2:34   ` Stephen Boyd
  1 sibling, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2020-11-05  2:34 UTC (permalink / raw)
  To: Douglas Anderson
  Cc: Taniya Das, David Brown, Rajendra Nayak, linux-soc,
	Douglas Anderson, Andy Gross, Bjorn Andersson, Michael Turquette,
	linux-arm-msm, linux-clk, linux-kernel

Quoting Douglas Anderson (2020-10-19 15:49:35)
> The sc7180 lpass clock driver manages two different devices.  These
> two devices were tangled together, using one probe and a lookup to
> figure out the real probe.  I think it's cleaner to really separate
> the probe for these two devices since they're really different things,
> just both managed by the same driver.
> 
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---

Applied to clk-next

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

* Re: [PATCH v5 1/2] clk: qcom: lpasscc-sc7810: Use devm in probe
  2020-10-19 22:49 [PATCH v5 1/2] clk: qcom: lpasscc-sc7810: Use devm in probe Douglas Anderson
                   ` (2 preceding siblings ...)
  2020-11-05  2:34 ` Stephen Boyd
@ 2020-12-29 20:15 ` patchwork-bot+linux-arm-msm
  3 siblings, 0 replies; 7+ messages in thread
From: patchwork-bot+linux-arm-msm @ 2020-12-29 20:15 UTC (permalink / raw)
  To: Douglas Anderson; +Cc: linux-arm-msm

Hello:

This series was applied to qcom/linux.git (refs/heads/for-next):

On Mon, 19 Oct 2020 15:49:34 -0700 you wrote:
> Let's convert the lpass clock control driver to use devm.  This is a
> few more lines of code, but it will be useful in a later patch which
> disentangles the two devices handled by this driver.
> 
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---
> 
> [...]

Here is the summary with links:
  - [v5,1/2] clk: qcom: lpasscc-sc7810: Use devm in probe
    https://git.kernel.org/qcom/c/7635622b77b5
  - [v5,2/2] clk: qcom: lpass-sc7180: Disentangle the two clock devices
    https://git.kernel.org/qcom/c/4ee9fe3e292b

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] 7+ messages in thread

end of thread, other threads:[~2020-12-29 20:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-19 22:49 [PATCH v5 1/2] clk: qcom: lpasscc-sc7810: Use devm in probe Douglas Anderson
2020-10-19 22:49 ` [PATCH v5 2/2] clk: qcom: lpass-sc7180: Disentangle the two clock devices Douglas Anderson
2020-10-29  9:02   ` Taniya Das
2020-11-05  2:34   ` Stephen Boyd
2020-10-29  9:02 ` [PATCH v5 1/2] clk: qcom: lpasscc-sc7810: Use devm in probe Taniya Das
2020-11-05  2:34 ` Stephen Boyd
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).