Skip to content

ARM: OMAP2+: Convert OMAP3 I2C to ti-sysc

Andreas Kemnade linux-arm-kernel linux-devicetree linux-omap lkml 2 versions New

Get series with b4
b4 am [email protected] change-id 20261109-i2c-sysc-a048409add7c

Versions newest first

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- fix missing kerneldoc
- fix typo in dtsi, which surprisingly worked quite well
- Link to v1: https://patch.msgid.link/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bus: ti-sysc: fix I2C quirk for OMAP3 variantsdrivers/bus/ti-sysc.c+14 -60 replies
2/3ARM: dts: ti/omap: describe omap3 i2c via ti-syscarch/arm/boot/dts/ti/omap/omap3.dtsi+78 -180 replies
3/3ARM: OMAP2+: remove i2c from OMAP3 hwmods listarch/arm/mach-omap2/omap_hwmod_3xxx_data.c+0 -1120 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] ARM: OMAP2+: Convert OMAP3 I2C to ti-sysc

During suspend on OMAP3, I2C suspend oopses. This is a longer standing issue, in the past I mostly tested runtime suspendidle behaviour on that platform (including uart autosuspend). A change in the I2C driver fixes some corner cases in pm for ti-sysc based systems, but breaks systems using the deprecated ti,hwmods property.
To avoid that maintainance overhead, convert the i2c definition First fix the I2C quirk needed for these older chips. OMAP2 stuff is not touched due to its planned removal.
After OMAP2 is removed, arch/arm/mach-omap2/i2c.c can be removed, too. I may try to check again if there is some safe fix in omap_device.c but changing things there has a very high chance of unexpected side effects.

Handling the commits:
In the past (e.g. around commit 42a79edd4a3dc1bb8e89fd2849f9e8e1e1c13977 for converting musb to ti-sys) these changes were handled through a separate branch to keep them in order.
Here is a hard requirement of the order. Patch 3 can most easily wait but having patch 2 after patch 1 is a hard requirement. As the affected devices get their devicetree updated with the kernel, that should not hurt too much.

---
Changes in v2:
- fix missing kerneldoc
- fix typo in dtsi, which surprisingly worked quite well
- Link to v1: https://patch.msgid.link/[email protected]

---
Andreas Kemnade (3):
bus: ti-sysc: fix I2C quirk for OMAP3 variants
ARM: dts: ti/omap: describe omap3 i2c via ti-sysc
ARM: OMAP2+: remove i2c from OMAP3 hwmods list

 arch/arm/boot/dts/ti/omap/omap3.dtsi       |  96 ++++++++++++++++++++-----
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 112 -----------------------------
 drivers/bus/ti-sysc.c                      |  20 ++++--
 3 files changed, 92 insertions(+), 136 deletions(-)

---
base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb
change-id: 20261109-i2c-sysc-a048409add7c

Best regards,

Signature · 1 line
Andreas Kemnade <[email protected]>