Linux I2C development
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa+renesas@sang-engineering.com>
To: Bartosz Golaszewski <brgl@kernel.org>
Cc: markus.stockhausen@gmx.de, andi.shyti@kernel.org,
	linux-i2c@vger.kernel.org
Subject: Re: AW: [PATCH 1/2] dt-bindings: i2c: Add i2c-shared-gpio
Date: Mon, 11 May 2026 17:39:08 +0200	[thread overview]
Message-ID: <agH4HKEQ0BGK4fbt@ninjato> (raw)
In-Reply-To: <CAMRc=MfN=jNiPRp_fS9T-39s7c366ak4MC6DWGFreonCZM92FA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 704 bytes --]


> >> @Bart: is it possible to share a GPIO so that multiple i2c-gpio
> >> instances can use the same GPIO as SCL? Use case is explained in the
> >> cover letter[2].
> >
> 
> The way it works is with a kind of a voting system. As long as there's at
> least one user that votes for the GPIO to be "high", it stays high. Is this
> behavior fine for the recovery use-case?

Ouch, I guess this will not work then. SCL is high in its idle state.
So, all busses except the active one will request high :(

I guess Markus would need some kind of locking for the shared SCL-GPIO
anyhow. Like bus Y has to wait until bus X has finished SCL toggling for
its transfer. That's how I understand it.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2026-05-11 15:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-07 18:17 [PATCH 0/2] i2c: Add i2c-shared-gpio driver Markus Stockhausen
2026-05-07 18:17 ` [PATCH 1/2] dt-bindings: i2c: Add i2c-shared-gpio Markus Stockhausen
2026-05-07 19:30   ` Rob Herring (Arm)
2026-05-08 13:18   ` Rob Herring
2026-05-08 14:43     ` AW: " markus.stockhausen
2026-05-09 17:38       ` Wolfram Sang
2026-05-09 20:41         ` AW: " markus.stockhausen
2026-05-11 12:43           ` Bartosz Golaszewski
2026-05-11 15:39             ` Wolfram Sang [this message]
2026-05-11 16:08               ` Bartosz Golaszewski
2026-05-13 16:21         ` Rob Herring
2026-05-13 17:19           ` AW: " markus.stockhausen
2026-05-13 21:34             ` 'Wolfram Sang'
2026-05-09 11:16     ` markus.stockhausen
2026-05-07 18:17 ` [PATCH 2/2] i2c: shared-gpio: Add driver for gpio based busses with shared SCL Markus Stockhausen

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=agH4HKEQ0BGK4fbt@ninjato \
    --to=wsa+renesas@sang-engineering.com \
    --cc=andi.shyti@kernel.org \
    --cc=brgl@kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=markus.stockhausen@gmx.de \
    /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