Devicetree
 help / color / mirror / Atom feed
From: Conor Dooley <conor@kernel.org>
To: Mark Brown <broonie@kernel.org>
Cc: Francesco Dolcini <francesco@dolcini.it>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
	Max Krummenacher <max.oss.09@gmail.com>
Subject: Re: SPI loopback tests
Date: Wed, 11 Mar 2026 10:10:56 +0000	[thread overview]
Message-ID: <20260311-passably-pampered-314ea21b9f1f@spud> (raw)
In-Reply-To: <f35c50cc-741c-407d-97e5-81c62fcc15e7@sirena.org.uk>

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

On Tue, Mar 10, 2026 at 06:26:45PM +0000, Mark Brown wrote:
> On Tue, Mar 10, 2026 at 06:12:38PM +0000, Conor Dooley wrote:
> > On Tue, Mar 10, 2026 at 03:55:51PM +0000, Mark Brown wrote:
> > > On Tue, Mar 10, 2026 at 02:32:54PM +0100, Francesco Dolcini wrote:
> 
> > > > I am aware that you all DT maintainers shared in a pretty clear way your
> > > > view on the abuse of the spidev multiple times.
> 
> > > > What would you be your advice to handle the need of an SPI loopback
> > > > test? Am I missing something and there is a solution already available?
> 
> > > I'm not aware of any idiomatic way to deal with this with DT
> > > unfortunately.  Perhaps the DT people have some ideas here?
> 
> > I dunno, the suggestion seems fairly reasonable to me. I don't think
> > it's really abuse of anything, because the compatible would represent a
> > real hardware configuration. The only think that feels "abusive" is the
> > fake reg property you'd need.
> 
> In theory we should have a compatible specifically for loopback usage I
> suppose.  Depending on how the device does it's loopbacks there may
> actually be a genuine reg (if there's a chip select that's still
> selecting.

Okay, fair enough.

> > Not sure that there should be a "linux," vendor prefix though, there's
> > nothing linux-specific about doing loopback. Probably should be
> > vendor-less?
> 
> I think at this point it's old enough that it's just ABI and adding the
> option of having it vendorless would just cause people to ask why.

I'm not sure what you mean by "it's old enough", as this proposed loopback
compatible is new, right? Don't think this is any different to i2c-mux
or regulator-fixed etc etc. Unless you thought that I was saying that
"spidev" should be a compatible? Definitely was not suggesting that!

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

  reply	other threads:[~2026-03-11 10:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-10 13:32 SPI loopback tests Francesco Dolcini
2026-03-10 15:55 ` Mark Brown
2026-03-10 18:12   ` Conor Dooley
2026-03-10 18:26     ` Mark Brown
2026-03-11 10:10       ` Conor Dooley [this message]
2026-03-11 11:16         ` Mark Brown
2026-03-11 13:58           ` Conor Dooley
2026-03-11 16:27 ` Krzysztof Kozlowski

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=20260311-passably-pampered-314ea21b9f1f@spud \
    --to=conor@kernel.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=francesco@dolcini.it \
    --cc=krzk@kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=max.oss.09@gmail.com \
    --cc=robh@kernel.org \
    /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