linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq()
@ 2023-06-27 10:12 Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 02/15] thermal/drivers/armada: remove redundant msg Yangtao Li
                   ` (16 more replies)
  0 siblings, 17 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

Ensure that all error handling branches print error information. In this
way, when this function fails, the upper-layer functions can directly
return an error code without missing debugging information. Otherwise,
the error message will be printed redundantly or missing.

There are more than 700 calls to the devm_request_threaded_irq method.
Most drivers only request one interrupt resource, and these error
messages are basically the same. If error messages are printed
everywhere, more than 1000 lines of code can be saved by removing the
msg in the driver.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 kernel/irq/devres.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/kernel/irq/devres.c b/kernel/irq/devres.c
index f6e5515ee077..fcb946ffb7ec 100644
--- a/kernel/irq/devres.c
+++ b/kernel/irq/devres.c
@@ -58,8 +58,10 @@ int devm_request_threaded_irq(struct device *dev, unsigned int irq,
 
 	dr = devres_alloc(devm_irq_release, sizeof(struct irq_devres),
 			  GFP_KERNEL);
-	if (!dr)
+	if (!dr) {
+		dev_err(dev, "Failed to allocate device resource data\n");
 		return -ENOMEM;
+	}
 
 	if (!devname)
 		devname = dev_name(dev);
@@ -67,6 +69,7 @@ int devm_request_threaded_irq(struct device *dev, unsigned int irq,
 	rc = request_threaded_irq(irq, handler, thread_fn, irqflags, devname,
 				  dev_id);
 	if (rc) {
+		dev_err_probe(dev, rc, "Failed to request threaded irq%d: %d\n", irq, rc);
 		devres_free(dr);
 		return rc;
 	}
-- 
2.39.0


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

* [PATCH v2 02/15] thermal/drivers/armada: remove redundant msg
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
@ 2023-06-27 10:12 ` Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 03/15] thermal/drivers/brcmstb_thermal: " Yangtao Li
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

The upper devm_request_threaded_irq() function prints directly
error message.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/thermal/armada_thermal.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c
index 9f6dc4fc9112..98b04158f06e 100644
--- a/drivers/thermal/armada_thermal.c
+++ b/drivers/thermal/armada_thermal.c
@@ -917,11 +917,8 @@ static int armada_thermal_probe(struct platform_device *pdev)
 						armada_overheat_isr,
 						armada_overheat_isr_thread,
 						0, NULL, priv);
-		if (ret) {
-			dev_err(&pdev->dev, "Cannot request threaded IRQ %d\n",
-				irq);
+		if (ret)
 			return ret;
-		}
 	}
 
 	/*
-- 
2.39.0


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

* [PATCH v2 03/15] thermal/drivers/brcmstb_thermal: remove redundant msg
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 02/15] thermal/drivers/armada: remove redundant msg Yangtao Li
@ 2023-06-27 10:12 ` Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 04/15] thermal/drivers/db8500: " Yangtao Li
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

The upper devm_request_threaded_irq() function prints directly
error message.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/thermal/broadcom/brcmstb_thermal.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/thermal/broadcom/brcmstb_thermal.c b/drivers/thermal/broadcom/brcmstb_thermal.c
index 72d1dbe60b8f..7611094cf367 100644
--- a/drivers/thermal/broadcom/brcmstb_thermal.c
+++ b/drivers/thermal/broadcom/brcmstb_thermal.c
@@ -353,10 +353,8 @@ static int brcmstb_thermal_probe(struct platform_device *pdev)
 						brcmstb_tmon_irq_thread,
 						IRQF_ONESHOT,
 						DRV_NAME, priv);
-		if (ret < 0) {
-			dev_err(&pdev->dev, "could not request IRQ: %d\n", ret);
+		if (ret < 0)
 			return ret;
-		}
 	}
 
 	dev_info(&pdev->dev, "registered AVS TMON of-sensor driver\n");
-- 
2.39.0


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

* [PATCH v2 04/15] thermal/drivers/db8500: remove redundant msg
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 02/15] thermal/drivers/armada: remove redundant msg Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 03/15] thermal/drivers/brcmstb_thermal: " Yangtao Li
@ 2023-06-27 10:12 ` Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 05/15] thermal/drivers/hisi: " Yangtao Li
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

The upper devm_request_threaded_irq() function prints directly
error message.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/thermal/db8500_thermal.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/drivers/thermal/db8500_thermal.c b/drivers/thermal/db8500_thermal.c
index fca5c2c93bf9..0a890d1338cf 100644
--- a/drivers/thermal/db8500_thermal.c
+++ b/drivers/thermal/db8500_thermal.c
@@ -167,10 +167,8 @@ static int db8500_thermal_probe(struct platform_device *pdev)
 	ret = devm_request_threaded_irq(dev, low_irq, NULL,
 		prcmu_low_irq_handler, IRQF_NO_SUSPEND | IRQF_ONESHOT,
 		"dbx500_temp_low", th);
-	if (ret < 0) {
-		dev_err(dev, "failed to allocate temp low irq\n");
+	if (ret < 0)
 		return ret;
-	}
 
 	high_irq = platform_get_irq_byname(pdev, "IRQ_HOTMON_HIGH");
 	if (high_irq < 0)
@@ -179,10 +177,8 @@ static int db8500_thermal_probe(struct platform_device *pdev)
 	ret = devm_request_threaded_irq(dev, high_irq, NULL,
 		prcmu_high_irq_handler, IRQF_NO_SUSPEND | IRQF_ONESHOT,
 		"dbx500_temp_high", th);
-	if (ret < 0) {
-		dev_err(dev, "failed to allocate temp high irq\n");
+	if (ret < 0)
 		return ret;
-	}
 
 	/* register of thermal sensor and get info from DT */
 	th->tz = devm_thermal_of_zone_register(dev, 0, th, &thdev_ops);
-- 
2.39.0


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

* [PATCH v2 05/15] thermal/drivers/hisi: remove redundant msg
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
                   ` (2 preceding siblings ...)
  2023-06-27 10:12 ` [PATCH v2 04/15] thermal/drivers/db8500: " Yangtao Li
@ 2023-06-27 10:12 ` Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 06/15] thermal/drivers/imx: " Yangtao Li
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

The upper devm_request_threaded_irq() function prints directly
error message.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/thermal/hisi_thermal.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c
index 3f09ef8be41a..5f20f07a7566 100644
--- a/drivers/thermal/hisi_thermal.c
+++ b/drivers/thermal/hisi_thermal.c
@@ -580,10 +580,8 @@ static int hisi_thermal_probe(struct platform_device *pdev)
 						hisi_thermal_alarm_irq_thread,
 						IRQF_ONESHOT, sensor->irq_name,
 						sensor);
-		if (ret < 0) {
-			dev_err(dev, "Failed to request alarm irq: %d\n", ret);
+		if (ret < 0)
 			return ret;
-		}
 
 		ret = data->ops->enable_sensor(sensor);
 		if (ret) {
-- 
2.39.0


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

* [PATCH v2 06/15] thermal/drivers/imx: remove redundant msg
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
                   ` (3 preceding siblings ...)
  2023-06-27 10:12 ` [PATCH v2 05/15] thermal/drivers/hisi: " Yangtao Li
@ 2023-06-27 10:12 ` Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 07/15] thermal/drivers/qcom: " Yangtao Li
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

The upper devm_request_threaded_irq() function prints directly
error message.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/thermal/imx_thermal.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c
index a94ec0a0c9dd..9be252bea1f0 100644
--- a/drivers/thermal/imx_thermal.c
+++ b/drivers/thermal/imx_thermal.c
@@ -749,10 +749,8 @@ static int imx_thermal_probe(struct platform_device *pdev)
 	ret = devm_request_threaded_irq(&pdev->dev, data->irq,
 			imx_thermal_alarm_irq, imx_thermal_alarm_irq_thread,
 			0, "imx_thermal", data);
-	if (ret < 0) {
-		dev_err(&pdev->dev, "failed to request alarm irq: %d\n", ret);
+	if (ret < 0)
 		goto thermal_zone_unregister;
-	}
 
 	pm_runtime_put(data->dev);
 
-- 
2.39.0


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

* [PATCH v2 07/15] thermal/drivers/qcom: remove redundant msg
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
                   ` (4 preceding siblings ...)
  2023-06-27 10:12 ` [PATCH v2 06/15] thermal/drivers/imx: " Yangtao Li
@ 2023-06-27 10:12 ` Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 08/15] thermal/drivers/tegra-soctherm: " Yangtao Li
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

The upper devm_request_threaded_irq() function prints directly
error message.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/thermal/qcom/tsens.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c
index 98c356acfe98..63a16d942b84 100644
--- a/drivers/thermal/qcom/tsens.c
+++ b/drivers/thermal/qcom/tsens.c
@@ -1182,10 +1182,7 @@ static int tsens_register_irq(struct tsens_priv *priv, char *irqname,
 							dev_name(&pdev->dev),
 							priv);
 
-		if (ret)
-			dev_err(&pdev->dev, "%s: failed to get irq\n",
-				__func__);
-		else
+		if (!ret)
 			enable_irq_wake(irq);
 	}
 
-- 
2.39.0


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

* [PATCH v2 08/15] thermal/drivers/tegra-soctherm: remove redundant msg
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
                   ` (5 preceding siblings ...)
  2023-06-27 10:12 ` [PATCH v2 07/15] thermal/drivers/qcom: " Yangtao Li
@ 2023-06-27 10:12 ` Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 09/15] thermal/drivers/maxim: " Yangtao Li
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

The upper devm_request_threaded_irq() function prints directly
error message.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/thermal/tegra/soctherm.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c
index ea66cba09e56..55966c0a2610 100644
--- a/drivers/thermal/tegra/soctherm.c
+++ b/drivers/thermal/tegra/soctherm.c
@@ -2000,10 +2000,8 @@ static int soctherm_interrupts_init(struct platform_device *pdev,
 					IRQF_ONESHOT,
 					dev_name(&pdev->dev),
 					tegra);
-	if (ret < 0) {
-		dev_err(&pdev->dev, "request_irq 'thermal_irq' failed.\n");
+	if (ret < 0)
 		return ret;
-	}
 
 	ret = devm_request_threaded_irq(&pdev->dev,
 					tegra->edp_irq,
@@ -2012,10 +2010,8 @@ static int soctherm_interrupts_init(struct platform_device *pdev,
 					IRQF_ONESHOT,
 					"soctherm_edp",
 					tegra);
-	if (ret < 0) {
-		dev_err(&pdev->dev, "request_irq 'edp_irq' failed.\n");
+	if (ret < 0)
 		return ret;
-	}
 
 	return 0;
 }
-- 
2.39.0


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

* [PATCH v2 09/15] thermal/drivers/maxim: remove redundant msg
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
                   ` (6 preceding siblings ...)
  2023-06-27 10:12 ` [PATCH v2 08/15] thermal/drivers/tegra-soctherm: " Yangtao Li
@ 2023-06-27 10:12 ` Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 10/15] thermal/drivers/int340x: " Yangtao Li
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

The upper devm_request_threaded_irq() function prints directly
error message.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/thermal/max77620_thermal.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/drivers/thermal/max77620_thermal.c b/drivers/thermal/max77620_thermal.c
index 61c7622d9945..73c251caa62d 100644
--- a/drivers/thermal/max77620_thermal.c
+++ b/drivers/thermal/max77620_thermal.c
@@ -125,19 +125,15 @@ static int max77620_thermal_probe(struct platform_device *pdev)
 					max77620_thermal_irq,
 					IRQF_ONESHOT | IRQF_SHARED,
 					dev_name(&pdev->dev), mtherm);
-	if (ret < 0) {
-		dev_err(&pdev->dev, "Failed to request irq1: %d\n", ret);
+	if (ret < 0)
 		return ret;
-	}
 
 	ret = devm_request_threaded_irq(&pdev->dev, mtherm->irq_tjalarm2, NULL,
 					max77620_thermal_irq,
 					IRQF_ONESHOT | IRQF_SHARED,
 					dev_name(&pdev->dev), mtherm);
-	if (ret < 0) {
-		dev_err(&pdev->dev, "Failed to request irq2: %d\n", ret);
+	if (ret < 0)
 		return ret;
-	}
 
 	platform_set_drvdata(pdev, mtherm);
 
-- 
2.39.0


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

* [PATCH v2 10/15] thermal/drivers/int340x: remove redundant msg
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
                   ` (7 preceding siblings ...)
  2023-06-27 10:12 ` [PATCH v2 09/15] thermal/drivers/maxim: " Yangtao Li
@ 2023-06-27 10:12 ` Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 11/15] thermal/drivers/intel: " Yangtao Li
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

The upper devm_request_threaded_irq() function prints directly
error message.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 .../intel/int340x_thermal/processor_thermal_device_pci.c      | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c
index 0d1e98007270..6ea9892b3660 100644
--- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c
+++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c
@@ -261,10 +261,8 @@ static int proc_thermal_pci_probe(struct pci_dev *pdev, const struct pci_device_
 	ret = devm_request_threaded_irq(&pdev->dev, irq,
 					proc_thermal_irq_handler, NULL,
 					irq_flag, KBUILD_MODNAME, pci_info);
-	if (ret) {
-		dev_err(&pdev->dev, "Request IRQ %d failed\n", pdev->irq);
+	if (ret)
 		goto err_free_vectors;
-	}
 
 	ret = thermal_zone_device_enable(pci_info->tzone);
 	if (ret)
-- 
2.39.0


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

* [PATCH v2 11/15] thermal/drivers/intel: remove redundant msg
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
                   ` (8 preceding siblings ...)
  2023-06-27 10:12 ` [PATCH v2 10/15] thermal/drivers/int340x: " Yangtao Li
@ 2023-06-27 10:12 ` Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 12/15] thermal/drivers/stm: " Yangtao Li
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

The upper devm_request_threaded_irq() function prints directly
error message.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/thermal/intel/intel_bxt_pmic_thermal.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/thermal/intel/intel_bxt_pmic_thermal.c b/drivers/thermal/intel/intel_bxt_pmic_thermal.c
index 6312c6ba081f..aeaefbbd5d8f 100644
--- a/drivers/thermal/intel/intel_bxt_pmic_thermal.c
+++ b/drivers/thermal/intel/intel_bxt_pmic_thermal.c
@@ -245,10 +245,8 @@ static int pmic_thermal_probe(struct platform_device *pdev)
 				NULL, pmic_thermal_irq_handler,
 				IRQF_ONESHOT, "pmic_thermal", pdev);
 
-		if (ret) {
-			dev_err(dev, "request irq(%d) failed: %d\n", virq, ret);
+		if (ret)
 			return ret;
-		}
 		pmic_irq_count++;
 	}
 
-- 
2.39.0


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

* [PATCH v2 12/15] thermal/drivers/stm: remove redundant msg
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
                   ` (9 preceding siblings ...)
  2023-06-27 10:12 ` [PATCH v2 11/15] thermal/drivers/intel: " Yangtao Li
@ 2023-06-27 10:12 ` Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 13/15] thermal/drivers/rockchip: " Yangtao Li
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

The upper devm_request_threaded_irq() function prints directly
error message.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/thermal/st/st_thermal_memmap.c | 4 +---
 drivers/thermal/st/stm_thermal.c       | 5 +----
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/drivers/thermal/st/st_thermal_memmap.c b/drivers/thermal/st/st_thermal_memmap.c
index e8cfa83b724a..dd52e1b9d925 100644
--- a/drivers/thermal/st/st_thermal_memmap.c
+++ b/drivers/thermal/st/st_thermal_memmap.c
@@ -101,10 +101,8 @@ static int st_mmap_register_enable_irq(struct st_thermal_sensor *sensor)
 					NULL, st_mmap_thermal_trip_handler,
 					IRQF_TRIGGER_RISING | IRQF_ONESHOT,
 					dev->driver->name, sensor);
-	if (ret) {
-		dev_err(dev, "failed to register IRQ %d\n", sensor->irq);
+	if (ret)
 		return ret;
-	}
 
 	return st_mmap_enable_irq(sensor);
 }
diff --git a/drivers/thermal/st/stm_thermal.c b/drivers/thermal/st/stm_thermal.c
index 903fcf1763f1..d72e866c0ab9 100644
--- a/drivers/thermal/st/stm_thermal.c
+++ b/drivers/thermal/st/stm_thermal.c
@@ -392,11 +392,8 @@ static int stm_register_irq(struct stm_thermal_sensor *sensor)
 					stm_thermal_irq_handler,
 					IRQF_ONESHOT,
 					dev->driver->name, sensor);
-	if (ret) {
-		dev_err(dev, "%s: Failed to register IRQ %d\n", __func__,
-			sensor->irq);
+	if (ret)
 		return ret;
-	}
 
 	dev_dbg(dev, "%s: thermal IRQ registered", __func__);
 
-- 
2.39.0


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

* [PATCH v2 13/15] thermal/drivers/rockchip: remove redundant msg
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
                   ` (10 preceding siblings ...)
  2023-06-27 10:12 ` [PATCH v2 12/15] thermal/drivers/stm: " Yangtao Li
@ 2023-06-27 10:12 ` Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 14/15] thermal/drivers/tegra: " Yangtao Li
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

The upper devm_request_threaded_irq() function prints directly
error message.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/thermal/rockchip_thermal.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c
index 77231a9d28ff..e741f5539389 100644
--- a/drivers/thermal/rockchip_thermal.c
+++ b/drivers/thermal/rockchip_thermal.c
@@ -1582,8 +1582,7 @@ static int rockchip_thermal_probe(struct platform_device *pdev)
 					  IRQF_ONESHOT,
 					  "rockchip_thermal", thermal);
 	if (error)
-		return dev_err_probe(&pdev->dev, error,
-				     "failed to request tsadc irq.\n");
+		return error;
 
 	thermal->chip->control(thermal->regs, true);
 
-- 
2.39.0


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

* [PATCH v2 14/15] thermal/drivers/tegra: remove redundant msg
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
                   ` (11 preceding siblings ...)
  2023-06-27 10:12 ` [PATCH v2 13/15] thermal/drivers/rockchip: " Yangtao Li
@ 2023-06-27 10:12 ` Yangtao Li
  2023-06-27 10:12 ` [PATCH v2 15/15] thermal/drivers/mediatek/lvts_thermal: " Yangtao Li
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

The upper devm_request_threaded_irq() function prints directly
error message.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/thermal/tegra/tegra30-tsensor.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/thermal/tegra/tegra30-tsensor.c b/drivers/thermal/tegra/tegra30-tsensor.c
index c243e9d76d3c..535a0b7304e5 100644
--- a/drivers/thermal/tegra/tegra30-tsensor.c
+++ b/drivers/thermal/tegra/tegra30-tsensor.c
@@ -597,8 +597,7 @@ static int tegra_tsensor_probe(struct platform_device *pdev)
 					tegra_tsensor_isr, IRQF_ONESHOT,
 					"tegra_tsensor", ts);
 	if (err)
-		return dev_err_probe(&pdev->dev, err,
-				     "failed to request interrupt\n");
+		return err;
 
 	return 0;
 }
-- 
2.39.0


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

* [PATCH v2 15/15] thermal/drivers/mediatek/lvts_thermal: remove redundant msg
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
                   ` (12 preceding siblings ...)
  2023-06-27 10:12 ` [PATCH v2 14/15] thermal/drivers/tegra: " Yangtao Li
@ 2023-06-27 10:12 ` Yangtao Li
  2023-06-27 10:28 ` [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-06-27 10:12 UTC (permalink / raw)
  To: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, frank.li, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

The upper devm_request_threaded_irq() function prints directly
error message.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/thermal/mediatek/lvts_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c
index b693fac2d677..bd503fbcba51 100644
--- a/drivers/thermal/mediatek/lvts_thermal.c
+++ b/drivers/thermal/mediatek/lvts_thermal.c
@@ -1151,7 +1151,7 @@ static int lvts_probe(struct platform_device *pdev)
 	ret = devm_request_threaded_irq(dev, irq, NULL, lvts_irq_handler,
 					IRQF_ONESHOT, dev_name(dev), lvts_td);
 	if (ret)
-		return dev_err_probe(dev, ret, "Failed to request interrupt\n");
+		return ret;
 
 	platform_set_drvdata(pdev, lvts_td);
 
-- 
2.39.0


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

* Re: [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq()
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
                   ` (13 preceding siblings ...)
  2023-06-27 10:12 ` [PATCH v2 15/15] thermal/drivers/mediatek/lvts_thermal: " Yangtao Li
@ 2023-06-27 10:28 ` Krzysztof Kozlowski
  2023-06-27 11:00 ` Uwe Kleine-König
  2023-07-03 16:07 ` Ahmad Fatoum
  16 siblings, 0 replies; 25+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-27 10:28 UTC (permalink / raw)
  To: Yangtao Li, miquel.raynal, rafael, daniel.lezcano, amitk,
	rui.zhang, mmayer, bcm-kernel-feedback-list, florian.fainelli,
	shawnguo, s.hauer, kernel, festevam, linux-imx, agross,
	andersson, konrad.dybcio, thara.gopinath, heiko, mcoquelin.stm32,
	alexandre.torgue, thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-kernel, linux-arm-kernel, linux-arm-msm,
	linux-rockchip, linux-stm32, linux-tegra, linux-mediatek

On 27/06/2023 12:12, Yangtao Li wrote:
> Ensure that all error handling branches print error information. In this
> way, when this function fails, the upper-layer functions can directly
> return an error code without missing debugging information. Otherwise,
> the error message will be printed redundantly or missing.
> 
> There are more than 700 calls to the devm_request_threaded_irq method.
> Most drivers only request one interrupt resource, and these error
> messages are basically the same. If error messages are printed
> everywhere, more than 1000 lines of code can be saved by removing the
> msg in the driver.
> 
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
>  kernel/irq/devres.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/kernel/irq/devres.c b/kernel/irq/devres.c
> index f6e5515ee077..fcb946ffb7ec 100644
> --- a/kernel/irq/devres.c
> +++ b/kernel/irq/devres.c
> @@ -58,8 +58,10 @@ int devm_request_threaded_irq(struct device *dev, unsigned int irq,
>  
>  	dr = devres_alloc(devm_irq_release, sizeof(struct irq_devres),
>  			  GFP_KERNEL);
> -	if (!dr)
> +	if (!dr) {
> +		dev_err(dev, "Failed to allocate device resource data\n");

I don't understand why did you send v2:
1. Without responding to my comments - either by implementing them or
continuing the discussion
2. Without changelog explaining what happened here

My comments for v1 stand. Please do not ignore them, respond. If sending
new version, then usually one per day is max and of course provide
changelog.

>  		return -ENOMEM;
> +	}
>  
>  	if (!devname)
>  		devname = dev_name(dev);
> @@ -67,6 +69,7 @@ int devm_request_threaded_irq(struct device *dev, unsigned int irq,
>  	rc = request_threaded_irq(irq, handler, thread_fn, irqflags, devname,
>  				  dev_id);
>  	if (rc) {
> +		dev_err_probe(dev, rc, "Failed to request threaded irq%d: %d\n", irq, rc);

Why printing rc twice? Did you test this patch? Does not look like.

Best regards,
Krzysztof


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

* Re: [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq()
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
                   ` (14 preceding siblings ...)
  2023-06-27 10:28 ` [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Krzysztof Kozlowski
@ 2023-06-27 11:00 ` Uwe Kleine-König
  2023-06-30 11:11   ` Thomas Gleixner
  2023-07-03 16:07 ` Ahmad Fatoum
  16 siblings, 1 reply; 25+ messages in thread
From: Uwe Kleine-König @ 2023-06-27 11:00 UTC (permalink / raw)
  To: Yangtao Li
  Cc: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, shangxiaojing, bchihi, wenst,
	hayashi.kunihiko, niklas.soderlund+renesas, chi.minghao,
	johan+linaro, jernej.skrabec, linux-pm, linux-arm-msm,
	linux-kernel, linux-rockchip, linux-mediatek, linux-tegra,
	linux-stm32, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 2270 bytes --]

Hello,

On Tue, Jun 27, 2023 at 06:12:01PM +0800, Yangtao Li wrote:
> Ensure that all error handling branches print error information. In this
> way, when this function fails, the upper-layer functions can directly
> return an error code without missing debugging information. Otherwise,
> the error message will be printed redundantly or missing.
> 
> There are more than 700 calls to the devm_request_threaded_irq method.
> Most drivers only request one interrupt resource, and these error
> messages are basically the same. If error messages are printed
> everywhere, more than 1000 lines of code can be saved by removing the
> msg in the driver.
> 
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
>  kernel/irq/devres.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/kernel/irq/devres.c b/kernel/irq/devres.c
> index f6e5515ee077..fcb946ffb7ec 100644
> --- a/kernel/irq/devres.c
> +++ b/kernel/irq/devres.c
> @@ -58,8 +58,10 @@ int devm_request_threaded_irq(struct device *dev, unsigned int irq,
>  
>  	dr = devres_alloc(devm_irq_release, sizeof(struct irq_devres),
>  			  GFP_KERNEL);
> -	if (!dr)
> +	if (!dr) {
> +		dev_err(dev, "Failed to allocate device resource data\n");
>  		return -ENOMEM;
> +	}
>  
>  	if (!devname)
>  		devname = dev_name(dev);
> @@ -67,6 +69,7 @@ int devm_request_threaded_irq(struct device *dev, unsigned int irq,
>  	rc = request_threaded_irq(irq, handler, thread_fn, irqflags, devname,
>  				  dev_id);
>  	if (rc) {
> +		dev_err_probe(dev, rc, "Failed to request threaded irq%d: %d\n", irq, rc);

This changes semantics because dev_err_probe() is only supposed to be
called in probe functions. Not sure about devm_request_threaded_irq, but
its friend request_irq is called in the setup_irq (or open IIRC)
callback of serial drivers.

While I assume changing to dev_err_probe is a result of my concern that
no error should be printed when rc=-EPROBEDEFER, my other concern that
adding an error message to a generic allocation function is a bad idea
still stands.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq()
  2023-06-27 11:00 ` Uwe Kleine-König
@ 2023-06-30 11:11   ` Thomas Gleixner
  2023-07-03  9:13     ` Yangtao Li
                       ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Thomas Gleixner @ 2023-06-30 11:11 UTC (permalink / raw)
  To: Uwe Kleine-König, Yangtao Li
  Cc: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, shangxiaojing, bchihi, wenst,
	hayashi.kunihiko, niklas.soderlund+renesas, chi.minghao,
	johan+linaro, jernej.skrabec, linux-pm, linux-arm-msm,
	linux-kernel, linux-rockchip, linux-mediatek, linux-tegra,
	linux-stm32, linux-arm-kernel

On Tue, Jun 27 2023 at 13:00, Uwe Kleine-König wrote:
> On Tue, Jun 27, 2023 at 06:12:01PM +0800, Yangtao Li wrote:
>
> While I assume changing to dev_err_probe is a result of my concern that
> no error should be printed when rc=-EPROBEDEFER, my other concern that
> adding an error message to a generic allocation function is a bad idea
> still stands.

I agree in general, but if you actually look at the call sites of
devm_request_threaded_irq() then the vast majority of them print more or
less lousy error messages. A quick grep/sed/awk/sort/uniq revealed

     519 messages total (there are probably more)

     352 unique messages

     323 unique messages after lower casing

         Those 323 are mostly just variants of the same patterns with slight
         modifications in formatting and information provided.

     186 of these messages do not deliver any useful information,
         e.g. "no irq", "

     The most useful one of all is: "could request wakeup irq: %d"

So there is certainly an argument to be made that this particular
function should print a well formatted and informative error message.

It's not a general allocator like kmalloc(). It's specialized and in the
vast majority of cases failing to request the interrupt causes the
device probe to fail. So having proper and consistent information why
the device cannot be used _is_ useful.

Yangtao: The way how this is attempted is not useful at all.

    1) The changelog is word salad and provides 0 rationale

       Also such series require a cover letter...

    2) The dev_err() which is added is not informative at all and cannot
       replace actually useful error messages. It's not that hard to
       make it useful.

    2) Adding the printks unconditionally first will emit two messages
       with different content.

       This is not how such changes are done.

       The proper approach is to create a wrapper function which emits
       the error message:

       wrapper(....., const char *info)
       {
            ret = devm_request_threaded_irq(....);
            if (ret < 0) {
               dev_err(dev, "Failed to request %sinterrupt %u %s %s: %d\n,
                       thread_fn ? "threaded " : "",
                       irq, devname, info ? : "", ret);
            }
            return ret;
       }

       Then convert the callsites over one by one with proper
       changelogs and justification.

       See?

Thanks,

        tglx

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

* Re: [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq()
  2023-06-30 11:11   ` Thomas Gleixner
@ 2023-07-03  9:13     ` Yangtao Li
  2023-07-03  9:53       ` Uwe Kleine-König
  2023-07-03 12:15     ` Yangtao Li
                       ` (2 subsequent siblings)
  3 siblings, 1 reply; 25+ messages in thread
From: Yangtao Li @ 2023-07-03  9:13 UTC (permalink / raw)
  To: Thomas Gleixner, Uwe Kleine-König
  Cc: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, shangxiaojing, bchihi, wenst,
	hayashi.kunihiko, niklas.soderlund+renesas, chi.minghao,
	johan+linaro, jernej.skrabec, linux-pm, linux-arm-msm,
	linux-kernel, linux-rockchip, linux-mediatek, linux-tegra,
	linux-stm32, linux-arm-kernel

Hi,

On 2023/6/30 19:11, Thomas Gleixner wrote:
> On Tue, Jun 27 2023 at 13:00, Uwe Kleine-König wrote:
>> On Tue, Jun 27, 2023 at 06:12:01PM +0800, Yangtao Li wrote:
>>
>> While I assume changing to dev_err_probe is a result of my concern that
>> no error should be printed when rc=-EPROBEDEFER, my other concern that
>> adding an error message to a generic allocation function is a bad idea
>> still stands.
> I agree in general, but if you actually look at the call sites of
> devm_request_threaded_irq() then the vast majority of them print more or
> less lousy error messages. A quick grep/sed/awk/sort/uniq revealed
>
>       519 messages total (there are probably more)
>
>       352 unique messages
>
>       323 unique messages after lower casing
>
>           Those 323 are mostly just variants of the same patterns with slight
>           modifications in formatting and information provided.
>
>       186 of these messages do not deliver any useful information,
>           e.g. "no irq", "
>
>       The most useful one of all is: "could request wakeup irq: %d"
>
> So there is certainly an argument to be made that this particular
> function should print a well formatted and informative error message.
>
> It's not a general allocator like kmalloc(). It's specialized and in the
> vast majority of cases failing to request the interrupt causes the
> device probe to fail. So having proper and consistent information why
> the device cannot be used _is_ useful.
>
> Yangtao: The way how this is attempted is not useful at all.
>
>      1) The changelog is word salad and provides 0 rationale
>
>         Also such series require a cover letter...
>
>      2) The dev_err() which is added is not informative at all and cannot
>         replace actually useful error messages. It's not that hard to
>         make it useful.
>
>      2) Adding the printks unconditionally first will emit two messages
>         with different content.
>
>         This is not how such changes are done.
>
>         The proper approach is to create a wrapper function which emits
>         the error message:
>
>         wrapper(....., const char *info)
>         {
>              ret = devm_request_threaded_irq(....);
>              if (ret < 0) {
>                 dev_err(dev, "Failed to request %sinterrupt %u %s %s: %d\n,
>                         thread_fn ? "threaded " : "",
>                         irq, devname, info ? : "", ret);
>              }
>              return ret;
>         }
>
>         Then convert the callsites over one by one with proper
>         changelogs and justification.
>
>         See?


Yes, thanks a lot for the suggestion, and v3 has been sent.


MBR,

Yangtao


>
> Thanks,
>
>          tglx

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

* Re: [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq()
  2023-07-03  9:13     ` Yangtao Li
@ 2023-07-03  9:53       ` Uwe Kleine-König
  2023-07-03 11:37         ` Yangtao Li
  0 siblings, 1 reply; 25+ messages in thread
From: Uwe Kleine-König @ 2023-07-03  9:53 UTC (permalink / raw)
  To: Yangtao Li
  Cc: Thomas Gleixner, heiko, hayashi.kunihiko, rafael, amitk,
	alexandre.torgue, linux-tegra, thierry.reding, jernej.skrabec,
	miquel.raynal, srinivas.pandruvada, festevam, linux-stm32,
	bchihi, florian.fainelli, daniel.lezcano, chi.minghao, jonathanh,
	linux-rockchip, agross, bcm-kernel-feedback-list, linux-imx,
	wenst, rui.zhang, thara.gopinath, kernel, linux-pm,
	linux-arm-msm, s.hauer, linux-mediatek, mmayer, matthias.bgg,
	DLG-Adam.Ward.opensource, johan+linaro,
	angelogioacchino.delregno, linux-arm-kernel,
	niklas.soderlund+renesas, andersson, linux-kernel, shangxiaojing,
	konrad.dybcio, mcoquelin.stm32, shawnguo

[-- Attachment #1: Type: text/plain, Size: 603 bytes --]

Hello,

On Mon, Jul 03, 2023 at 05:13:29PM +0800, Yangtao Li wrote:
> [...] v3 has been sent.

Please make sure that you send a v3 patch series (at least) to the
people who gave you feedback for v2. If you skip people who had general
concerns about the whole series, this might help you in the short run
because they might miss to also criticise v3, but in the long run it
might result in a loss of trust in you.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq()
  2023-07-03  9:53       ` Uwe Kleine-König
@ 2023-07-03 11:37         ` Yangtao Li
  0 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-07-03 11:37 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Thomas Gleixner, heiko, hayashi.kunihiko, rafael, amitk,
	alexandre.torgue, linux-tegra, thierry.reding, jernej.skrabec,
	miquel.raynal, srinivas.pandruvada, festevam, linux-stm32,
	bchihi, florian.fainelli, daniel.lezcano, chi.minghao, jonathanh,
	linux-rockchip, agross, bcm-kernel-feedback-list, linux-imx,
	wenst, rui.zhang, thara.gopinath, kernel, linux-pm,
	linux-arm-msm, s.hauer, linux-mediatek, mmayer, matthias.bgg,
	DLG-Adam.Ward.opensource, johan+linaro,
	angelogioacchino.delregno, linux-arm-kernel,
	niklas.soderlund+renesas, andersson, linux-kernel, shangxiaojing,
	konrad.dybcio, mcoquelin.stm32, shawnguo

Hi Uwe,

On 2023/7/3 17:53, Uwe Kleine-König wrote:
> Hello,
>
> On Mon, Jul 03, 2023 at 05:13:29PM +0800, Yangtao Li wrote:
>> [...] v3 has been sent.
> Please make sure that you send a v3 patch series (at least) to the
> people who gave you feedback for v2. If you skip people who had general
> concerns about the whole series, this might help you in the short run
> because they might miss to also criticise v3, but in the long run it
> might result in a loss of trust in you.


Sorry, I'm a little busy. I just added you and Krzysztof Kozlowski in v3.

If others are interested in the follow-up series, please refer to the 
following link:


https://lore.kernel.org/lkml/20230703090455.62101-1-frank.li@vivo.com/


Thx,

Yangtao


>
> Best regards
> Uwe
>

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

* Re: [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq()
  2023-06-30 11:11   ` Thomas Gleixner
  2023-07-03  9:13     ` Yangtao Li
@ 2023-07-03 12:15     ` Yangtao Li
  2023-07-03 12:19     ` Yangtao Li
       [not found]     ` <247a8166-f131-2d07-ec2b-479a4c19297f@vivo.com>
  3 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-07-03 12:15 UTC (permalink / raw)
  To: tglx
  Cc: DLG-Adam.Ward.opensource, agross, alexandre.torgue, amitk,
	andersson, angelogioacchino.delregno, bchihi,
	bcm-kernel-feedback-list, chi.minghao, daniel.lezcano, festevam,
	florian.fainelli, frank.li, hayashi.kunihiko, heiko,
	jernej.skrabec, johan+linaro, jonathanh, kernel, konrad.dybcio,
	linux-arm-kernel, linux-arm-msm, linux-imx, linux-kernel,
	linux-mediatek, linux-pm, linux-rockchip, linux-stm32,
	linux-tegra, matthias.bgg, mcoquelin.stm32, miquel.raynal,
	mmayer, niklas.soderlund+renesas, rafael, rui.zhang, s.hauer,
	shangxiaojing, shawnguo, srinivas.pandruvada, thara.gopinath,
	thierry.reding, u.kleine-koenig, wenst

Hi Krzysztof,

Here. V3 was modified according to tglx's suggestion, if there is any problem, please point out.

Thx,
Yangtao

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

* Re: [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq()
  2023-06-30 11:11   ` Thomas Gleixner
  2023-07-03  9:13     ` Yangtao Li
  2023-07-03 12:15     ` Yangtao Li
@ 2023-07-03 12:19     ` Yangtao Li
       [not found]     ` <247a8166-f131-2d07-ec2b-479a4c19297f@vivo.com>
  3 siblings, 0 replies; 25+ messages in thread
From: Yangtao Li @ 2023-07-03 12:19 UTC (permalink / raw)
  To: krzysztof.kozlowski
  Cc: tglx, DLG-Adam.Ward.opensource, agross, alexandre.torgue, amitk,
	andersson, angelogioacchino.delregno, bchihi,
	bcm-kernel-feedback-list, chi.minghao, daniel.lezcano, festevam,
	florian.fainelli, frank.li, hayashi.kunihiko, heiko,
	jernej.skrabec, johan+linaro, jonathanh, kernel, konrad.dybcio,
	linux-arm-kernel, linux-arm-msm, linux-imx, linux-kernel,
	linux-mediatek, linux-pm, linux-rockchip, linux-stm32,
	linux-tegra, matthias.bgg, mcoquelin.stm32, miquel.raynal,
	mmayer, niklas.soderlund+renesas, rafael, rui.zhang, s.hauer,
	shangxiaojing, shawnguo, srinivas.pandruvada, thara.gopinath,
	thierry.reding, u.kleine-koenig, wenst

+cc krzysztof.kozlowski@linaro.org

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

* Re: [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq()
       [not found]     ` <247a8166-f131-2d07-ec2b-479a4c19297f@vivo.com>
@ 2023-07-03 12:28       ` Krzysztof Kozlowski
  0 siblings, 0 replies; 25+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-03 12:28 UTC (permalink / raw)
  To: Yangtao Li, Thomas Gleixner, Uwe Kleine-König
  Cc: miquel.raynal, rafael, daniel.lezcano, amitk, rui.zhang, mmayer,
	bcm-kernel-feedback-list, florian.fainelli, shawnguo, s.hauer,
	kernel, festevam, linux-imx, agross, andersson, konrad.dybcio,
	thara.gopinath, heiko, mcoquelin.stm32, alexandre.torgue,
	thierry.reding, jonathanh, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, shangxiaojing, bchihi, wenst,
	hayashi.kunihiko, niklas.soderlund+renesas, chi.minghao,
	johan+linaro, jernej.skrabec, linux-pm, linux-arm-msm,
	linux-kernel, linux-rockchip, linux-mediatek, linux-tegra,
	linux-stm32, linux-arm-kernel

On 03/07/2023 13:54, Yangtao Li wrote:
> Hi Krzysztof,
> 
> On 2023/6/30 19:11, Thomas Gleixner wrote:
>> On Tue, Jun 27 2023 at 13:00, Uwe Kleine-König wrote:
>>> On Tue, Jun 27, 2023 at 06:12:01PM +0800, Yangtao Li wrote:
>>>
>>> While I assume changing to dev_err_probe is a result of my concern that
>>> no error should be printed when rc=-EPROBEDEFER, my other concern that
>>> adding an error message to a generic allocation function is a bad idea
>>> still stands.
>> I agree in general, but if you actually look at the call sites of
>> devm_request_threaded_irq() then the vast majority of them print more or
>> less lousy error messages. A quick grep/sed/awk/sort/uniq revealed
>>
>>       519 messages total (there are probably more)
>>
>>       352 unique messages
>>
>>       323 unique messages after lower casing
>>
>>           Those 323 are mostly just variants of the same patterns with slight
>>           modifications in formatting and information provided.
>>
>>       186 of these messages do not deliver any useful information,
>>           e.g. "no irq", "
>>
>>       The most useful one of all is: "could request wakeup irq: %d"
>>
>> So there is certainly an argument to be made that this particular
>> function should print a well formatted and informative error message.
>>
>> It's not a general allocator like kmalloc(). It's specialized and in the
>> vast majority of cases failing to request the interrupt causes the
>> device probe to fail. So having proper and consistent information why
>> the device cannot be used _is_ useful.
>>
>> Yangtao: The way how this is attempted is not useful at all.
>>
>>      1) The changelog is word salad and provides 0 rationale
>>
>>         Also such series require a cover letter...
>>
>>      2) The dev_err() which is added is not informative at all and cannot
>>         replace actually useful error messages. It's not that hard to
>>         make it useful.
>>
>>      2) Adding the printks unconditionally first will emit two messages
>>         with different content.
>>
>>         This is not how such changes are done.
>>
>>         The proper approach is to create a wrapper function which emits
>>         the error message:
>>
>>         wrapper(....., const char *info)
>>         {
>>              ret = devm_request_threaded_irq(....);
>>              if (ret < 0) {
>>                 dev_err(dev, "Failed to request %sinterrupt %u %s %s: %d\n,
>>                         thread_fn ? "threaded " : "",
>>                         irq, devname, info ? : "", ret);
>>              }
>>              return ret;
>>         }
> 
> 
> Here.
> 
> V3 was modified according to tglx's suggestion, if there is any problem, 
> please point out.

The comment was about request_thread_irq, not about devres alloc. Don't
mix the places. Really, since when do we print any errors on ENOMEM?

Best regards,
Krzysztof


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

* Re: [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq()
  2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
                   ` (15 preceding siblings ...)
  2023-06-27 11:00 ` Uwe Kleine-König
@ 2023-07-03 16:07 ` Ahmad Fatoum
  16 siblings, 0 replies; 25+ messages in thread
From: Ahmad Fatoum @ 2023-07-03 16:07 UTC (permalink / raw)
  To: Yangtao Li, miquel.raynal, rafael, daniel.lezcano, amitk,
	rui.zhang, mmayer, bcm-kernel-feedback-list, florian.fainelli,
	shawnguo, s.hauer, kernel, festevam, linux-imx, agross,
	andersson, konrad.dybcio, thara.gopinath, heiko, mcoquelin.stm32,
	alexandre.torgue, thierry.reding, jonathanh, tglx, matthias.bgg,
	angelogioacchino.delregno, srinivas.pandruvada,
	DLG-Adam.Ward.opensource, shangxiaojing, bchihi, wenst,
	u.kleine-koenig, hayashi.kunihiko, niklas.soderlund+renesas,
	chi.minghao, johan+linaro, jernej.skrabec
  Cc: linux-pm, linux-arm-msm, linux-kernel, linux-rockchip,
	linux-mediatek, linux-tegra, linux-stm32, linux-arm-kernel

On 27.06.23 12:12, Yangtao Li wrote:
> Ensure that all error handling branches print error information. In this
> way, when this function fails, the upper-layer functions can directly
> return an error code without missing debugging information. Otherwise,
> the error message will be printed redundantly or missing.
> 
> There are more than 700 calls to the devm_request_threaded_irq method.
> Most drivers only request one interrupt resource, and these error
> messages are basically the same. If error messages are printed
> everywhere, more than 1000 lines of code can be saved by removing the
> msg in the driver.
> 
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
>  kernel/irq/devres.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/kernel/irq/devres.c b/kernel/irq/devres.c
> index f6e5515ee077..fcb946ffb7ec 100644
> --- a/kernel/irq/devres.c
> +++ b/kernel/irq/devres.c
> @@ -58,8 +58,10 @@ int devm_request_threaded_irq(struct device *dev, unsigned int irq,
>  
>  	dr = devres_alloc(devm_irq_release, sizeof(struct irq_devres),
>  			  GFP_KERNEL);
> -	if (!dr)
> +	if (!dr) {
> +		dev_err(dev, "Failed to allocate device resource data\n");

Why not use dev_err_probe too? Could turn this block into a oneliner.

>  		return -ENOMEM;
> +	}
>  
>  	if (!devname)
>  		devname = dev_name(dev);
> @@ -67,6 +69,7 @@ int devm_request_threaded_irq(struct device *dev, unsigned int irq,
>  	rc = request_threaded_irq(irq, handler, thread_fn, irqflags, devname,
>  				  dev_id);
>  	if (rc) {
> +		dev_err_probe(dev, rc, "Failed to request threaded irq%d: %d\n", irq, rc);

No need to format rc with %d. dev_err_probe will already do this for you.

>  		devres_free(dr);
>  		return rc;
>  	}

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


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

end of thread, other threads:[~2023-07-03 16:09 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-27 10:12 [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Yangtao Li
2023-06-27 10:12 ` [PATCH v2 02/15] thermal/drivers/armada: remove redundant msg Yangtao Li
2023-06-27 10:12 ` [PATCH v2 03/15] thermal/drivers/brcmstb_thermal: " Yangtao Li
2023-06-27 10:12 ` [PATCH v2 04/15] thermal/drivers/db8500: " Yangtao Li
2023-06-27 10:12 ` [PATCH v2 05/15] thermal/drivers/hisi: " Yangtao Li
2023-06-27 10:12 ` [PATCH v2 06/15] thermal/drivers/imx: " Yangtao Li
2023-06-27 10:12 ` [PATCH v2 07/15] thermal/drivers/qcom: " Yangtao Li
2023-06-27 10:12 ` [PATCH v2 08/15] thermal/drivers/tegra-soctherm: " Yangtao Li
2023-06-27 10:12 ` [PATCH v2 09/15] thermal/drivers/maxim: " Yangtao Li
2023-06-27 10:12 ` [PATCH v2 10/15] thermal/drivers/int340x: " Yangtao Li
2023-06-27 10:12 ` [PATCH v2 11/15] thermal/drivers/intel: " Yangtao Li
2023-06-27 10:12 ` [PATCH v2 12/15] thermal/drivers/stm: " Yangtao Li
2023-06-27 10:12 ` [PATCH v2 13/15] thermal/drivers/rockchip: " Yangtao Li
2023-06-27 10:12 ` [PATCH v2 14/15] thermal/drivers/tegra: " Yangtao Li
2023-06-27 10:12 ` [PATCH v2 15/15] thermal/drivers/mediatek/lvts_thermal: " Yangtao Li
2023-06-27 10:28 ` [PATCH v2 01/15] genirq/devres: Add error information printing for devm_request_threaded_irq() Krzysztof Kozlowski
2023-06-27 11:00 ` Uwe Kleine-König
2023-06-30 11:11   ` Thomas Gleixner
2023-07-03  9:13     ` Yangtao Li
2023-07-03  9:53       ` Uwe Kleine-König
2023-07-03 11:37         ` Yangtao Li
2023-07-03 12:15     ` Yangtao Li
2023-07-03 12:19     ` Yangtao Li
     [not found]     ` <247a8166-f131-2d07-ec2b-479a4c19297f@vivo.com>
2023-07-03 12:28       ` Krzysztof Kozlowski
2023-07-03 16:07 ` Ahmad Fatoum

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).