* [PATCH v2 1/7] hwmon: (axi-fan-control) Remove redundant dev_err_probe()
2026-07-20 6:37 [PATCH v2 0/7] hwmon: Remove redundant error messages on IRQ request failure Pan Chuang
@ 2026-07-20 6:37 ` Pan Chuang
2026-07-20 14:32 ` Guenter Roeck
2026-07-20 6:37 ` [PATCH v2 2/7] hwmon: (da9055) Remove redundant dev_err() Pan Chuang
` (5 subsequent siblings)
6 siblings, 1 reply; 15+ messages in thread
From: Pan Chuang @ 2026-07-20 6:37 UTC (permalink / raw)
To: Nuno Sá,
Guenter Roeck, open list:AXI-FAN-CONTROL HARDWARE MONITOR DRIVER,
open list
Cc: Pan Chuang
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_threaded_irq() automatically logs
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err() calls.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/hwmon/axi-fan-control.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/hwmon/axi-fan-control.c b/drivers/hwmon/axi-fan-control.c
index 1cb481a1ad26..04a767d762b3 100644
--- a/drivers/hwmon/axi-fan-control.c
+++ b/drivers/hwmon/axi-fan-control.c
@@ -508,8 +508,7 @@ static int axi_fan_control_probe(struct platform_device *pdev)
IRQF_ONESHOT | IRQF_TRIGGER_HIGH,
NULL, ctl);
if (ret)
- return dev_err_probe(&pdev->dev, ret,
- "failed to request an irq\n");
+ return ret;
return 0;
}
--
2.34.1
^ permalink raw reply [flat|nested] 15+ messages in thread* [PATCH v2 2/7] hwmon: (da9055) Remove redundant dev_err()
2026-07-20 6:37 [PATCH v2 0/7] hwmon: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-20 6:37 ` [PATCH v2 1/7] hwmon: (axi-fan-control) Remove redundant dev_err_probe() Pan Chuang
@ 2026-07-20 6:37 ` Pan Chuang
2026-07-20 14:33 ` Guenter Roeck
2026-07-20 6:37 ` [PATCH v2 3/7] hwmon: (lm90) " Pan Chuang
` (4 subsequent siblings)
6 siblings, 1 reply; 15+ messages in thread
From: Pan Chuang @ 2026-07-20 6:37 UTC (permalink / raw)
To: Support Opensource, Guenter Roeck, open list:HARDWARE MONITORING,
open list
Cc: Pan Chuang
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_threaded_irq() automatically logs
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err() call.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/hwmon/da9055-hwmon.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/hwmon/da9055-hwmon.c b/drivers/hwmon/da9055-hwmon.c
index 7652d553b8ea..7d330baa0f05 100644
--- a/drivers/hwmon/da9055-hwmon.c
+++ b/drivers/hwmon/da9055-hwmon.c
@@ -256,11 +256,8 @@ static int da9055_hwmon_probe(struct platform_device *pdev)
NULL, da9055_auxadc_irq,
IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
"adc-irq", hwmon);
- if (ret != 0) {
- dev_err(hwmon->da9055->dev, "DA9055 ADC IRQ failed ret=%d\n",
- ret);
+ if (ret != 0)
return ret;
- }
hwmon_dev = devm_hwmon_device_register_with_groups(dev, "da9055",
hwmon,
--
2.34.1
^ permalink raw reply [flat|nested] 15+ messages in thread* [PATCH v2 3/7] hwmon: (lm90) Remove redundant dev_err()
2026-07-20 6:37 [PATCH v2 0/7] hwmon: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-20 6:37 ` [PATCH v2 1/7] hwmon: (axi-fan-control) Remove redundant dev_err_probe() Pan Chuang
2026-07-20 6:37 ` [PATCH v2 2/7] hwmon: (da9055) Remove redundant dev_err() Pan Chuang
@ 2026-07-20 6:37 ` Pan Chuang
2026-07-20 14:33 ` Guenter Roeck
2026-07-20 6:37 ` [PATCH v2 4/7] hwmon: (npcm750-pwm-fan) " Pan Chuang
` (3 subsequent siblings)
6 siblings, 1 reply; 15+ messages in thread
From: Pan Chuang @ 2026-07-20 6:37 UTC (permalink / raw)
To: Jean Delvare, Guenter Roeck,
open list:LM90 HARDWARE MONITOR DRIVER, open list
Cc: Pan Chuang
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_threaded_irq() automatically logs
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err() call.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/hwmon/lm90.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c
index 4b9c0ccdf260..348eea5bec3f 100644
--- a/drivers/hwmon/lm90.c
+++ b/drivers/hwmon/lm90.c
@@ -2918,10 +2918,8 @@ static int lm90_probe(struct i2c_client *client)
err = devm_request_threaded_irq(dev, client->irq,
NULL, lm90_irq_thread,
IRQF_ONESHOT, "lm90", client);
- if (err < 0) {
- dev_err(dev, "cannot request IRQ %d\n", client->irq);
+ if (err < 0)
return err;
- }
}
return 0;
--
2.34.1
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH v2 3/7] hwmon: (lm90) Remove redundant dev_err()
2026-07-20 6:37 ` [PATCH v2 3/7] hwmon: (lm90) " Pan Chuang
@ 2026-07-20 14:33 ` Guenter Roeck
0 siblings, 0 replies; 15+ messages in thread
From: Guenter Roeck @ 2026-07-20 14:33 UTC (permalink / raw)
To: Pan Chuang
Cc: Jean Delvare, open list:LM90 HARDWARE MONITOR DRIVER, open list
On Mon, Jul 20, 2026 at 02:37:37PM +0800, Pan Chuang wrote:
> Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
> devm_request_*_irq()"), devm_request_threaded_irq() automatically logs
> detailed error messages on failure. Remove the now-redundant
> driver-specific dev_err() call.
>
> Signed-off-by: Pan Chuang <panchuang@vivo.com>
Applied.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2 4/7] hwmon: (npcm750-pwm-fan) Remove redundant dev_err()
2026-07-20 6:37 [PATCH v2 0/7] hwmon: Remove redundant error messages on IRQ request failure Pan Chuang
` (2 preceding siblings ...)
2026-07-20 6:37 ` [PATCH v2 3/7] hwmon: (lm90) " Pan Chuang
@ 2026-07-20 6:37 ` Pan Chuang
2026-07-20 14:34 ` Guenter Roeck
2026-07-20 6:37 ` [PATCH v2 5/7] hwmon: (pwm-fan) " Pan Chuang
` (2 subsequent siblings)
6 siblings, 1 reply; 15+ messages in thread
From: Pan Chuang @ 2026-07-20 6:37 UTC (permalink / raw)
To: Andrew Jeffery, Avi Fishman, Tomer Maimon, Tali Perry,
Patrick Venture, Nancy Yuen, Benjamin Fair, Guenter Roeck,
moderated list:ARM/NUVOTON NPCM ARCHITECTURE,
open list:HARDWARE MONITORING, open list
Cc: Pan Chuang
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_irq() automatically logs detailed
error messages on failure. Remove the now-redundant driver-specific
dev_err() call.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/hwmon/npcm750-pwm-fan.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/hwmon/npcm750-pwm-fan.c b/drivers/hwmon/npcm750-pwm-fan.c
index aea0b8659f5f..df24dec78e77 100644
--- a/drivers/hwmon/npcm750-pwm-fan.c
+++ b/drivers/hwmon/npcm750-pwm-fan.c
@@ -991,10 +991,8 @@ static int npcm7xx_pwm_fan_probe(struct platform_device *pdev)
sprintf(name, "NPCM7XX-FAN-MD%d", i);
ret = devm_request_irq(dev, data->fan_irq[i], npcm7xx_fan_isr,
0, name, (void *)data);
- if (ret) {
- dev_err(dev, "register IRQ fan%d failed\n", i);
+ if (ret)
return ret;
- }
}
for_each_child_of_node_scoped(np, child) {
--
2.34.1
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH v2 4/7] hwmon: (npcm750-pwm-fan) Remove redundant dev_err()
2026-07-20 6:37 ` [PATCH v2 4/7] hwmon: (npcm750-pwm-fan) " Pan Chuang
@ 2026-07-20 14:34 ` Guenter Roeck
0 siblings, 0 replies; 15+ messages in thread
From: Guenter Roeck @ 2026-07-20 14:34 UTC (permalink / raw)
To: Pan Chuang
Cc: Andrew Jeffery, Avi Fishman, Tomer Maimon, Tali Perry,
Patrick Venture, Nancy Yuen, Benjamin Fair,
moderated list:ARM/NUVOTON NPCM ARCHITECTURE,
open list:HARDWARE MONITORING, open list
On Mon, Jul 20, 2026 at 02:37:38PM +0800, Pan Chuang wrote:
> Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
> devm_request_*_irq()"), devm_request_irq() automatically logs detailed
> error messages on failure. Remove the now-redundant driver-specific
> dev_err() call.
>
> Signed-off-by: Pan Chuang <panchuang@vivo.com>
Applied.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2 5/7] hwmon: (pwm-fan) Remove redundant dev_err()
2026-07-20 6:37 [PATCH v2 0/7] hwmon: Remove redundant error messages on IRQ request failure Pan Chuang
` (3 preceding siblings ...)
2026-07-20 6:37 ` [PATCH v2 4/7] hwmon: (npcm750-pwm-fan) " Pan Chuang
@ 2026-07-20 6:37 ` Pan Chuang
2026-07-20 14:35 ` Guenter Roeck
2026-07-20 6:37 ` [PATCH v2 6/7] hwmon: (sht15) " Pan Chuang
2026-07-20 6:37 ` [PATCH v2 7/7] hwmon: (pmbus) " Pan Chuang
6 siblings, 1 reply; 15+ messages in thread
From: Pan Chuang @ 2026-07-20 6:37 UTC (permalink / raw)
To: Guenter Roeck, open list:HARDWARE MONITORING, open list; +Cc: Pan Chuang
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_irq() automatically logs detailed
error messages on failure. Remove the now-redundant driver-specific
dev_err() call.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/hwmon/pwm-fan.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/hwmon/pwm-fan.c b/drivers/hwmon/pwm-fan.c
index 37f37813ea51..3b87f65bae05 100644
--- a/drivers/hwmon/pwm-fan.c
+++ b/drivers/hwmon/pwm-fan.c
@@ -628,12 +628,8 @@ static int pwm_fan_probe(struct platform_device *pdev)
if (tach->irq > 0) {
ret = devm_request_irq(dev, tach->irq, pulse_handler,
IRQF_NO_THREAD, pdev->name, tach);
- if (ret) {
- dev_err(dev,
- "Failed to request interrupt: %d\n",
- ret);
+ if (ret)
return ret;
- }
}
if (!ctx->pulses_per_revolution[i]) {
--
2.34.1
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH v2 5/7] hwmon: (pwm-fan) Remove redundant dev_err()
2026-07-20 6:37 ` [PATCH v2 5/7] hwmon: (pwm-fan) " Pan Chuang
@ 2026-07-20 14:35 ` Guenter Roeck
0 siblings, 0 replies; 15+ messages in thread
From: Guenter Roeck @ 2026-07-20 14:35 UTC (permalink / raw)
To: Pan Chuang; +Cc: open list:HARDWARE MONITORING, open list
On Mon, Jul 20, 2026 at 02:37:39PM +0800, Pan Chuang wrote:
> Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
> devm_request_*_irq()"), devm_request_irq() automatically logs detailed
> error messages on failure. Remove the now-redundant driver-specific
> dev_err() call.
>
> Signed-off-by: Pan Chuang <panchuang@vivo.com>
Applied.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2 6/7] hwmon: (sht15) Remove redundant dev_err()
2026-07-20 6:37 [PATCH v2 0/7] hwmon: Remove redundant error messages on IRQ request failure Pan Chuang
` (4 preceding siblings ...)
2026-07-20 6:37 ` [PATCH v2 5/7] hwmon: (pwm-fan) " Pan Chuang
@ 2026-07-20 6:37 ` Pan Chuang
2026-07-20 14:35 ` Guenter Roeck
2026-07-20 6:37 ` [PATCH v2 7/7] hwmon: (pmbus) " Pan Chuang
6 siblings, 1 reply; 15+ messages in thread
From: Pan Chuang @ 2026-07-20 6:37 UTC (permalink / raw)
To: Guenter Roeck, open list:HARDWARE MONITORING, open list; +Cc: Pan Chuang
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_irq() automatically logs detailed
error messages on failure. Remove the now-redundant driver-specific
dev_err() call.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/hwmon/sht15.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/hwmon/sht15.c b/drivers/hwmon/sht15.c
index 101cebbe68e4..7bb2105d1ae2 100644
--- a/drivers/hwmon/sht15.c
+++ b/drivers/hwmon/sht15.c
@@ -981,10 +981,8 @@ static int sht15_probe(struct platform_device *pdev)
IRQF_TRIGGER_FALLING,
"sht15 data",
data);
- if (ret) {
- dev_err(&pdev->dev, "failed to get irq for data line\n");
+ if (ret)
goto err_release_reg;
- }
disable_irq_nosync(gpiod_to_irq(data->data));
ret = sht15_connection_reset(data);
if (ret)
--
2.34.1
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH v2 6/7] hwmon: (sht15) Remove redundant dev_err()
2026-07-20 6:37 ` [PATCH v2 6/7] hwmon: (sht15) " Pan Chuang
@ 2026-07-20 14:35 ` Guenter Roeck
0 siblings, 0 replies; 15+ messages in thread
From: Guenter Roeck @ 2026-07-20 14:35 UTC (permalink / raw)
To: Pan Chuang; +Cc: open list:HARDWARE MONITORING, open list
On Mon, Jul 20, 2026 at 02:37:40PM +0800, Pan Chuang wrote:
> Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
> devm_request_*_irq()"), devm_request_irq() automatically logs detailed
> error messages on failure. Remove the now-redundant driver-specific
> dev_err() call.
>
> Signed-off-by: Pan Chuang <panchuang@vivo.com>
Applied.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2 7/7] hwmon: (pmbus) Remove redundant dev_err()
2026-07-20 6:37 [PATCH v2 0/7] hwmon: Remove redundant error messages on IRQ request failure Pan Chuang
` (5 preceding siblings ...)
2026-07-20 6:37 ` [PATCH v2 6/7] hwmon: (sht15) " Pan Chuang
@ 2026-07-20 6:37 ` Pan Chuang
2026-07-20 14:36 ` Guenter Roeck
6 siblings, 1 reply; 15+ messages in thread
From: Pan Chuang @ 2026-07-20 6:37 UTC (permalink / raw)
To: Guenter Roeck, Sanman Pradhan, Abdurrahman Hussain, Pan Chuang,
Ashish Yadav, open list:HARDWARE MONITORING, open list
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_threaded_irq() automatically logs
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err() call.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/hwmon/pmbus/pmbus_core.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c
index 3143b9e0316c..91771747e2ca 100644
--- a/drivers/hwmon/pmbus/pmbus_core.c
+++ b/drivers/hwmon/pmbus/pmbus_core.c
@@ -3496,10 +3496,8 @@ static int pmbus_irq_setup(struct i2c_client *client, struct pmbus_data *data)
/* Register notifiers */
err = devm_request_threaded_irq(dev, client->irq, NULL, pmbus_fault_handler,
IRQF_ONESHOT, "pmbus-irq", data);
- if (err) {
- dev_err(dev, "failed to request an irq %d\n", err);
+ if (err)
return err;
- }
return 0;
}
--
2.34.1
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH v2 7/7] hwmon: (pmbus) Remove redundant dev_err()
2026-07-20 6:37 ` [PATCH v2 7/7] hwmon: (pmbus) " Pan Chuang
@ 2026-07-20 14:36 ` Guenter Roeck
0 siblings, 0 replies; 15+ messages in thread
From: Guenter Roeck @ 2026-07-20 14:36 UTC (permalink / raw)
To: Pan Chuang
Cc: Sanman Pradhan, Abdurrahman Hussain, Ashish Yadav,
open list:HARDWARE MONITORING, open list
On Mon, Jul 20, 2026 at 02:37:41PM +0800, Pan Chuang wrote:
> Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
> devm_request_*_irq()"), devm_request_threaded_irq() automatically logs
> detailed error messages on failure. Remove the now-redundant
> driver-specific dev_err() call.
>
> Signed-off-by: Pan Chuang <panchuang@vivo.com>
Applied.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 15+ messages in thread