Skip to content

Handle optional IRQs correctly

[email protected] linux-arm-kernel linux-i2c lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3i2c: pca-platform: Handle errors from optional IRQ lookupdrivers/i2c/busses/i2c-pca-platform.c+4 -10 replies
2/3i2c: brcmstb: Handle errors from optional IRQ lookupdrivers/i2c/busses/i2c-brcmstb.c+2 -00 replies
3/3i2c: brcmstb: Correct optional IRQ handlingdrivers/i2c/busses/i2c-brcmstb.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Handle optional IRQs correctly

From: bui duc phuc <[email protected]>

Hi all,

The changes were found through code inspection while reviewing optional IRQ handling in I2C drivers.

I noticed that some drivers already handle the return value of platform_get_irq_optional() explicitly, including i2c-designware-platdrv, i2c-ocores, and i2c-sh_mobile.

This series updates the affected drivers to properly handle errors from platform_get_irq_optional() and distinguish a missing optional IRQ from other errors.

The series also fixes the handling of IRQ 0 in the brcmstb driver, since 0 is not a valid IRQ number returned by platform_get_irq_optional().

The series was only compile-tested.

Best regards,
Phuc

bui duc phuc (3):
i2c: pca-platform: Handle errors from optional IRQ lookup
i2c: brcmstb: Handle errors from optional IRQ lookup
i2c: brcmstb: Correct optional IRQ handling

 drivers/i2c/busses/i2c-brcmstb.c      | 6 ++++--
 drivers/i2c/busses/i2c-pca-platform.c | 5 ++++-
 2 files changed, 8 insertions(+), 3 deletions(-)
Signature · 1 line
2.43.0