[PATCH v2 0/2] i2c: i2c-gpio: Support buses with shared SDA

From: Anatoliy Oleinikov via B4 Relay

Date: Wed Dec 02 2026 - 08:16:43 EST


Some Realtek based switches share the data line instead of the clock
line among the I2C buses of their SFP cages: the Acorid GLS7700-24F8G-4X
has an SCL per cage and an SDA per four cages. The second patch extends
the shared SCL support of i2c-gpio to SDA. The first one fixes a race in
the release of a shared SCL that the second would make more likely.

---
Changes in v2:
- New patch 1: Release a shared SCL before it can be requested again,
found by the Sashiko review of v1.
- Patch 2: release a shared line the same way.
- Link to v1: https://patch.msgid.link/20261202-i2c-gpio-shared-sda-v1-1-8b411d498d14@xxxxxxxxxx

---
Anatoliy Oleinikov (2):
i2c: i2c-gpio: Release a shared SCL before it can be requested again
i2c: i2c-gpio: Enhance driver for buses with shared SDA

drivers/i2c/busses/i2c-gpio.c | 190 +++++++++++++++++++++++++-----------------
1 file changed, 113 insertions(+), 77 deletions(-)
---
base-commit: 177501be260dae21d8b095a4ec4c98714a4d9c68
change-id: 20261202-i2c-gpio-shared-sda-afbd172a9c74

Best regards,
--
Anatoliy Oleinikov <admin@xxxxxxxxxx>