Skip to content

I2C IRQ Probe Improvements

Charles Keepax linux-acpi linux-i2c lkml 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest6 patches 4 repliesIn review
  2. v76 patches 4 repliesSuperseded
  3. v67 patches 5 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v57 patches6 repliesSuperseded
v47 patches11 repliesSuperseded
v36 patches10 repliesSuperseded
v26 patches4 repliesSuperseded

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6i2c: core: Allow whole core to use i2c_dev_irq_from_resourcesdrivers/i2c/i2c-core-base.c drivers/i2c/i2c-core.h+4 -20 replies
2/6i2c: acpi: Use available IRQ helper functionsdrivers/i2c/i2c-core-acpi.c+13 -91 reply
3/6i2c: acpi: Factor out getting the IRQ from ACPIdrivers/i2c/i2c-core-acpi.c+21 -81 reply
4/6i2c: core: Move ACPI IRQ handling to probe timedrivers/i2c/i2c-core-acpi.c drivers/i2c/i2c-core-base.c drivers/i2c/i2c-core.h+21 -71 reply
5/6i2c: core: Move ACPI gpio IRQ handling into i2c_acpi_get_irqdrivers/i2c/i2c-core-acpi.c drivers/i2c/i2c-core-base.c+3 -31 reply
6/6i2c: core: Tidy up handling of init_irqdrivers/i2c/i2c-core-base.c+3 -20 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchMika WesterbergAndy Shevchenko
1/6R-b R-b
2/6R-b R-b
3/6R-b R-b
4/6R-b R-b
5/6R-b R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [PATCH v8 0/6] I2C IRQ Probe Improvements

This series attempts to align as much IRQ handling into the probe path as possible. Note that I don't have a great setup for testing these patches so they are mostly just build tested and need careful review and testing before any of them are merged.

The series brings the ACPI path inline with the way the device tree path handles the IRQ entirely at probe time. However, it still leaves any IRQ specified through the board_info as being handled at device time. In that case we need to cache something from the board_info until probe time, which leaves any alternative solution with something basically the same as the current handling although perhaps caching more stuff.

Thanks,
Charles

See previous discussions:
- https://lkml.org/lkml/2019/2/15/989
- https://www.spinics.net/lists/linux-i2c/msg39541.html

Charles Keepax (6):
i2c: core: Allow whole core to use i2c_dev_irq_from_resources
i2c: acpi: Use available IRQ helper functions
i2c: acpi: Factor out getting the IRQ from ACPI
i2c: core: Move ACPI IRQ handling to probe time
i2c: core: Move ACPI gpio IRQ handling into i2c_acpi_get_irq
i2c: core: Tidy up handling of init_irq

 drivers/i2c/i2c-core-acpi.c | 58 ++++++++++++++++++++++++++++++++-------------
 drivers/i2c/i2c-core-base.c | 11 +++++----
 drivers/i2c/i2c-core.h      |  9 +++++++
 3 files changed, 56 insertions(+), 22 deletions(-)
Signature · 1 line
2.11.0