Re: [PATCH v3] spi: tegra114: initialize native chip selects inactive

From: Abraham Zukor

Date: Tue Sep 15 2026 - 22:02:18 EST


On Thu, Aug 27, 2026 at 04:38:39PM +0100, Mark Brown wrote:
> I can see a system having multiple variants with the bootloader
> selecting which device is active in the DT based on runtime
> enumeration. Not sure if anyone is *actually* doing that, but given
> the state of the world with overlays...

I think we should handle this per native chip select:

If exactly one node is enabled, use its polarity, ignoring disabled
alternatives.

If none are enabled, use the polarity specified by the disabled nodes
when they agree, including when there is only one. If they disagree, log
a warning and use the polarity of one of them, since no inactive level
can satisfy both polarities.

Multiple enabled nodes using the same CS are a configuration error that
the SPI core already checks.

My v3 needs adjusting for the first case. I will implement this as a v4
if no one sees an issue.