From: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
To: Rasmus Villemoes <linux@rasmusvillemoes.dk>,
Mark Brown <broonie@kernel.org>
Cc: Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
NXP Linux Team <linux-imx@nxp.com>,
linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Marc Kleine-Budde <mkl@pengutronix.de>,
Kevin Groeneveld <kgroeneveld@lenbrook.com>
Subject: Re: [PATCH 0/3] spi: spi-imx: fix use of more than four chip selects
Date: Tue, 16 May 2023 13:43:23 +0200 [thread overview]
Message-ID: <9f9d4f04-70d1-7d62-7d27-c76e80d2861f@prevas.dk> (raw)
In-Reply-To: <a56c2cec-b10c-ec73-2179-6b92251a7419@rasmusvillemoes.dk>
On 26/04/2023 15.23, Rasmus Villemoes wrote:
>>> It's not exactly a regression, because any chip_select >= 4 never
>>> actually worked, but what I'm saying is that 87c614175bbf also isn't a
>>> complete fix if one wants to support mixing native and gpio chip
>>> selects. For that, one really needs the unused_native_cs to be used for
>>> all gpio chip selects; in particular, one needs some unused native cs to
>>> exist. IOW, what my series tries to do.
>>
>> No, we only need one unused chip select to be available.
>
> Which is exactly what I'm saying, so I think we're in agreement.
>
> I.e., something like this 3-patch series is needed to actually support
> mixing native and gpio chip selects (having the core verify that there
> is an unused chip select available, and provide that in the
> ->unused_native_cs field in the spi_controller). I don't think there's
> any textual conflict with 87c614175bbf, and the masking done by
> 87c614175bbf doesn't hurt, but also becomes irrelevant if this series is
> applied, since we'd never pass any value > 3 to those macros.
So, what's the conclusion here? Will these three patches be applied, or
will we just live with the status as of next-20230516, namely that
* for up to four slaves, any combination of native and gpio chip select
works
* with more then four slaves, CSn and CS(n&3) must be be gpios for all n
>= 4
?
Rasmus
next prev parent reply other threads:[~2023-05-16 11:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-25 13:45 Rasmus Villemoes
2023-04-25 13:45 ` [PATCH 1/3] spi: spi-imx: use "controller" variable consistently in spi_imx_probe() Rasmus Villemoes
2023-04-25 13:45 ` [PATCH 2/3] spi: spi-imx: set max_native_cs for imx51/imx53/imx6 variants Rasmus Villemoes
2023-04-25 13:45 ` [PATCH 3/3] spi: spi-imx: fix use of more than four chipselects Rasmus Villemoes
2023-05-16 12:07 ` Mahapatra, Amit Kumar
2023-04-26 7:19 ` [PATCH 0/3] spi: spi-imx: fix use of more than four chip selects Rasmus Villemoes
2023-04-26 12:25 ` Mark Brown
2023-04-26 12:47 ` Rasmus Villemoes
2023-04-26 13:10 ` Mark Brown
2023-04-26 13:23 ` Rasmus Villemoes
2023-05-16 11:43 ` Rasmus Villemoes [this message]
2023-05-16 15:22 ` Mark Brown
2023-05-23 21:22 ` Mark Brown
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=9f9d4f04-70d1-7d62-7d27-c76e80d2861f@prevas.dk \
--to=rasmus.villemoes@prevas.dk \
--cc=broonie@kernel.org \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=kgroeneveld@lenbrook.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=linux@rasmusvillemoes.dk \
--cc=mkl@pengutronix.de \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@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
all inboxes | Powered by JetHome®