Chrome platform driver development
 help / color / mirror / Atom feed
* [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure
@ 2026-07-17 11:20 Pan Chuang
  2026-07-17 11:20 ` [PATCH 2/7] platform/chrome: Remove redundant dev_err() Pan Chuang
  2026-07-20  3:29 ` (subset) [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure Tzung-Bi Shih
  0 siblings, 2 replies; 3+ messages in thread
From: Pan Chuang @ 2026-07-17 11:20 UTC (permalink / raw)
  To: Hans de Goede, Ilpo Järvinen, Bryan O'Donoghue,
	Pengyu Luo, Sebastian Reichel, Benson Leung, Tzung-Bi Shih,
	Guenter Roeck, Marek Behún, Vadim Pasternak,
	Florian Fainelli, Broadcom internal kernel review list,
	Corentin Chary, Luke D. Jones, Denis Benato, Zha Qipeng,
	Bjorn Helgaas, Danilo Krummrich, Takashi Sakamoto, Kees Cook,
	Uwe Kleine-König (The Capable Hub), Pan Chuang,
	Greg Kroah-Hartman, Jai Luthra, Stefan Wahren, Phil Elwell,
	Bartosz Golaszewski, Thomas Gleixner, Sebastian Andrzej Siewior,
	open list:ARM64 PLATFORM DRIVERS, open list,
	open list:CHROME HARDWARE PLATFORM SUPPORT,
	moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE,
	moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE

devm_request_threaded_irq() and devm_request_any_context_irq()
automatically log detailed error messages on failure via
the devm_request_result() helper, which prints device
name, IRQ number, handler functions, and error code.

Since devm_request_irq() is a static inline wrapper around
devm_request_threaded_irq(), it also benefits from this
automatic logging.

Remove the now-redundant dev_err() and dev_err_probe() calls
in platform drivers that follow these devm_request_*_irq()
functions, as the core now provides more detailed diagnostic
information on failure.

Pan Chuang (7):
  platform: arm64: Remove redundant dev_err_probe()
  platform/chrome: Remove redundant dev_err()
  platform: cznic: turris-omnia-mcu: Remove redundant dev_err_probe()
  platform: goldfish: pipe: Remove redundant dev_err()
  platform/mellanox: Remove redundant dev_err()
  platform/raspberrypi: Remove redundant dev_err()
  platform/x86: Remove redundant dev_err()/dev_err_probe()

 drivers/platform/arm64/acer-aspire1-ec.c                 | 2 +-
 drivers/platform/arm64/huawei-gaokun-ec.c                | 2 +-
 drivers/platform/arm64/lenovo-thinkpad-t14s.c            | 2 +-
 drivers/platform/arm64/lenovo-yoga-c630.c                | 2 +-
 drivers/platform/chrome/cros_ec.c                        | 5 +----
 drivers/platform/cznic/turris-omnia-mcu-gpio.c           | 2 +-
 drivers/platform/goldfish/goldfish_pipe.c                | 4 +---
 drivers/platform/mellanox/mlxbf-tmfifo.c                 | 1 -
 drivers/platform/mellanox/mlxreg-hotplug.c               | 4 +---
 drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c | 4 +---
 drivers/platform/x86/asus-tf103c-dock.c                  | 2 +-
 drivers/platform/x86/intel/bxtwc_tmu.c                   | 5 +----
 drivers/platform/x86/intel/bytcrc_pwrsrc.c               | 2 +-
 drivers/platform/x86/intel/crystal_cove_charger.c        | 2 +-
 drivers/platform/x86/intel/int0002_vgpio.c               | 4 +---
 drivers/platform/x86/intel/punit_ipc.c                   | 4 +---
 16 files changed, 15 insertions(+), 32 deletions(-)

-- 
2.34.1


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

* [PATCH 2/7] platform/chrome: Remove redundant dev_err()
  2026-07-17 11:20 [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure Pan Chuang
@ 2026-07-17 11:20 ` Pan Chuang
  2026-07-20  3:29 ` (subset) [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure Tzung-Bi Shih
  1 sibling, 0 replies; 3+ messages in thread
From: Pan Chuang @ 2026-07-17 11:20 UTC (permalink / raw)
  To: Benson Leung, Tzung-Bi Shih, Guenter Roeck,
	open list:CHROME HARDWARE PLATFORM SUPPORT, 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/platform/chrome/cros_ec.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/platform/chrome/cros_ec.c b/drivers/platform/chrome/cros_ec.c
index 1da79e3d215b..5d0f5a9187b1 100644
--- a/drivers/platform/chrome/cros_ec.c
+++ b/drivers/platform/chrome/cros_ec.c
@@ -249,11 +249,8 @@ int cros_ec_register(struct cros_ec_device *ec_dev)
 						cros_ec_irq_thread,
 						IRQF_TRIGGER_LOW | IRQF_ONESHOT,
 						"chromeos-ec", ec_dev);
-		if (err) {
-			dev_err(dev, "Failed to request IRQ %d: %d\n",
-				ec_dev->irq, err);
+		if (err)
 			goto exit;
-		}
 	}
 
 	/* Register a platform device for the main EC instance */
-- 
2.34.1


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

* Re: (subset) [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure
  2026-07-17 11:20 [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure Pan Chuang
  2026-07-17 11:20 ` [PATCH 2/7] platform/chrome: Remove redundant dev_err() Pan Chuang
@ 2026-07-20  3:29 ` Tzung-Bi Shih
  1 sibling, 0 replies; 3+ messages in thread
From: Tzung-Bi Shih @ 2026-07-20  3:29 UTC (permalink / raw)
  To: Pan Chuang
  Cc: Hans de Goede, Ilpo Järvinen, Bryan O'Donoghue,
	Pengyu Luo, Sebastian Reichel, Benson Leung, Guenter Roeck,
	Marek Behún, Vadim Pasternak, Florian Fainelli,
	Broadcom internal kernel review list, Corentin Chary,
	Luke D. Jones, Denis Benato, Zha Qipeng, Bjorn Helgaas,
	Danilo Krummrich, Takashi Sakamoto, Kees Cook,
	Uwe Kleine-König (The Capable Hub), Greg Kroah-Hartman,
	Jai Luthra, Stefan Wahren, Phil Elwell, Bartosz Golaszewski,
	Thomas Gleixner, Sebastian Andrzej Siewior,
	open list:ARM64 PLATFORM DRIVERS, open list,
	open list:CHROME HARDWARE PLATFORM SUPPORT,
	moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE,
	moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE

On Fri, Jul 17, 2026 at 07:20:38PM +0800, Pan Chuang wrote:
> devm_request_threaded_irq() and devm_request_any_context_irq()
> automatically log detailed error messages on failure via
> the devm_request_result() helper, which prints device
> name, IRQ number, handler functions, and error code.
> 
> Since devm_request_irq() is a static inline wrapper around
> devm_request_threaded_irq(), it also benefits from this
> automatic logging.
>
> [...]

Applied to

    https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next

[2/7] platform/chrome: Remove redundant dev_err()
      commit: 17376e7311cdec252b61cb1ecec43be61907781b

Thanks!

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

end of thread, other threads:[~2026-07-20  3:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17 11:20 [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-17 11:20 ` [PATCH 2/7] platform/chrome: Remove redundant dev_err() Pan Chuang
2026-07-20  3:29 ` (subset) [PATCH 0/7] platform: Remove redundant error messages on IRQ request failure Tzung-Bi Shih

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox