mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Couret Charles-Antoine <charles-antoine.couret@mind.be>
To: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Cc: broonie@kernel.org, linux-spi@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2 v2] spi: add SPI_MOSI_IDLE_LOW support from device tree
Date: Wed, 1 Apr 2026 01:05:58 +0200	[thread overview]
Message-ID: <855078f2-1b43-436e-b06e-4fa38782d2a3@mind.be> (raw)
In-Reply-To: <acl9lhyuDdugUSSP@debian-BULLSEYE-live-builder-AMD64>

Hi Marcelo,
Le 29/03/26 à 21:29, Marcelo Schmitt a écrit :
>> For example we used that to communicate with TI DAC161P997 device, where
>> "IDLE low" setting can be used to detect when the device is really powered
>> or not. But this is an optional setting, this option does not affect the
>> rest of the driver.
> Can't that be done with the existing support for idle modes? E.g.
> 		spi->mode |= SPI_MOSI_IDLE_LOW;
> 		ret = spi_setup(spi);
> 		if (ret < 0) {
> 			/* No controller MOSI idle low support. */
> 			/* Can't verify device is powered on. Return or do something else. */
> 		}
> 		/* MOSI idle low support. Verify the device is powered on. */
>
This means we need to hardcode the behaviour in the driver or to add an 
extra setting if we don't especially want to enable this.

I agree with you: there is always a way to deal with it without this 
property in the device tree. However, I don't think this means the 
property in the device tree is irrelevant.

Regards,

-- 

Charles-Antoine Couret

Embedded Software Developer

+32 488 27 56 40
Website <https://mind.be> • LinkedIn 
<https://www.linkedin.com/company/mind_essensium/> • Newslette 
<http://eepurl.com/h-gy7v>r


      reply	other threads:[~2026-03-31 23:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-29 12:57 charles-antoine.couret
2026-03-29 14:25 ` Marcelo Schmitt
2026-03-29 15:39   ` Couret Charles-Antoine
2026-03-29 19:29     ` Marcelo Schmitt
2026-03-31 23:05       ` Couret Charles-Antoine [this message]

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=855078f2-1b43-436e-b06e-4fa38782d2a3@mind.be \
    --to=charles-antoine.couret@mind.be \
    --cc=broonie@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=marcelo.schmitt1@gmail.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®