All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] platform/x86: hp: hp_accel: Propagate errors from optional IRQ lookup
@ 2026-08-10  5:26 phucduc.bui
  2026-08-10  5:26 ` [PATCH 2/3] platform/x86: intel: punit_ipc: " phucduc.bui
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: phucduc.bui @ 2026-08-10  5:26 UTC (permalink / raw)
  To: Eric Piel, Hans de Goede, ilpo.jarvinen, Zha Qipeng
  Cc: Mika Westerberg, Andy Shevchenko, platform-driver-x86,
	linux-kernel, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

platform_get_irq_optional() returns a positive IRQ number on success or
a negative error code on failure. For an optional IRQ, -ENXIO indicates
that no optional IRQ is available, while other errors should be propagated.

Propagate all error codes returned by platform_get_irq_optional() other
than -ENXIO.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 drivers/platform/x86/hp/hp_accel.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/platform/x86/hp/hp_accel.c b/drivers/platform/x86/hp/hp_accel.c
index 39b73dc473f1..8f6b03196540 100644
--- a/drivers/platform/x86/hp/hp_accel.c
+++ b/drivers/platform/x86/hp/hp_accel.c
@@ -309,6 +309,8 @@ static int lis3lv02d_probe(struct platform_device *device)
 
 	/* obtain IRQ number of our device from ACPI */
 	ret = platform_get_irq_optional(device, 0);
+	if (ret < 0 && ret != -ENXIO)
+		return ret;
 	if (ret > 0)
 		lis3_dev.irq = ret;
 
-- 
2.43.0


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

end of thread, other threads:[~2026-08-11  3:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-10  5:26 [PATCH 1/3] platform/x86: hp: hp_accel: Propagate errors from optional IRQ lookup phucduc.bui
2026-08-10  5:26 ` [PATCH 2/3] platform/x86: intel: punit_ipc: " phucduc.bui
2026-08-10  7:00   ` Andy Shevchenko
2026-08-11  3:30     ` Bui Duc Phuc
2026-08-10  5:26 ` [PATCH 3/3] platform/x86: intel_scu_ipc: Handle " phucduc.bui
2026-08-10  7:04   ` Andy Shevchenko
2026-08-10  6:50 ` [PATCH 1/3] platform/x86: hp: hp_accel: Propagate " Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.