mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Anatoliy Oleinikov via B4 Relay <devnull+admin.wizle.tech@kernel.org>
To: Andi Shyti <andi.shyti@kernel.org>, linux-i2c@vger.kernel.org
Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>,
	 Markus Stockhausen <markus.stockhausen@gmx.de>,
	 Linus Walleij <linusw@kernel.org>,
	Bartosz Golaszewski <brgl@kernel.org>,
	 linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
	 Anatoliy Oleinikov <admin@wizle.tech>
Subject: [PATCH v2 0/2] i2c: i2c-gpio: Support buses with shared SDA
Date: Wed, 02 Dec 2026 16:15:45 +0300	[thread overview]
Message-ID: <20261202-i2c-gpio-shared-sda-v2-0-7b6afaa5ab2a@wizle.tech> (raw)

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@wizle.tech

---
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@wizle.tech>



             reply	other threads:[~2026-12-02 13:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 13:15 Anatoliy Oleinikov via B4 Relay [this message]
2026-12-02 13:15 ` [PATCH v2 1/2] i2c: i2c-gpio: Release a shared SCL before it can be requested again Anatoliy Oleinikov via B4 Relay
2026-12-02 13:15 ` [PATCH v2 2/2] i2c: i2c-gpio: Enhance driver for buses with shared SDA Anatoliy Oleinikov via B4 Relay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261202-i2c-gpio-shared-sda-v2-0-7b6afaa5ab2a@wizle.tech \
    --to=devnull+admin.wizle.tech@kernel.org \
    --cc=admin@wizle.tech \
    --cc=andi.shyti@kernel.org \
    --cc=brgl@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markus.stockhausen@gmx.de \
    --cc=wsa+renesas@sang-engineering.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®