From: Nathan Chancellor <nathan@kernel.org>
To: Mark Brown <broonie@kernel.org>
Cc: Jisheng Zhang <jszhang@kernel.org>,
linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] spi: cadence-xspi: Support 32bit and 64bit slave dma interface
Date: Thu, 4 Jun 2026 19:06:34 -0700 [thread overview]
Message-ID: <20260605020634.GA1820810@ax162> (raw)
In-Reply-To: <f1cacc64-1f27-480a-8f03-4f4b0dad599a@sirena.org.uk>
On Thu, Jun 04, 2026 at 11:30:27AM +0100, Mark Brown wrote:
> On Thu, Jun 04, 2026 at 07:51:12AM +0800, Jisheng Zhang wrote:
> > On Wed, Jun 03, 2026 at 09:20:29AM +0100, Mark Brown wrote:
>
> > > readsq() and writesq() are only defined under CONFIG_64BIT AFAICT, but
> > > the driver will build on 32 bit. We need to configure out this option
> > > on 32 bit architectures.
>
> > Currently, the cadence-xspi has depended on 64BIT, the dependency was
> > introduced by commit d58ecc54bb09 ("spi: cadence: Add 64BIT Kconfig
> > dependency") for marvell sdma handling. So we have two choices:
>
> Ah, the patch is fine then - I must have been looking at a fixes tree
> without the dependency when I reviewed it, I'd forgotten that Marvell
> update had gone in.
Your 7.2 tree has commit 0c5b5c40dc31 ("spi: cadence-xspi: Add
COMPILE_TEST support") in it, so this driver does build on 32-bit
platforms now. -next is broken with
drivers/spi/spi-cadence-xspi.c:601:4: error: call to undeclared function 'readsq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
601 | readsq(src, buf, len >> 3);
| ^
drivers/spi/spi-cadence-xspi.c:623:4: error: call to undeclared function 'writesq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
623 | writesq(dst, buf, len >> 3);
| ^
2 errors generated.
which would not happen if the 64BIT dependency was there. If
0c5b5c40dc31 is to remain around, it seems like option A upthread is
needed.
--
Cheers,
Nathan
next prev parent reply other threads:[~2026-06-05 2:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-02 23:58 [PATCH v3] spi: cadence-xspi: Support 32bit and 64bit slave dma interface Jisheng Zhang
2026-06-03 8:20 ` Mark Brown
2026-06-03 23:51 ` Jisheng Zhang
2026-06-04 10:30 ` Mark Brown
2026-06-05 2:06 ` Nathan Chancellor [this message]
2026-06-04 10:27 ` 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=20260605020634.GA1820810@ax162 \
--to=nathan@kernel.org \
--cc=broonie@kernel.org \
--cc=jszhang@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.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