From: kernel test robot <lkp@intel.com>
To: Fabrizio Castro <fabrizio.castro.jz@renesas.com>,
Mark Brown <broonie@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Magnus Damm <magnus.damm@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-spi@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
Biju Das <biju.das.jz@bp.renesas.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: Re: [PATCH 3/6] spi: Add driver for the RZ/V2H(P) RSPI IP
Date: Wed, 25 Jun 2025 19:32:02 +0800 [thread overview]
Message-ID: <202506251915.mDWx8v2S-lkp@intel.com> (raw)
In-Reply-To: <20250624192304.338979-4-fabrizio.castro.jz@renesas.com>
Hi Fabrizio,
kernel test robot noticed the following build errors:
[auto build test ERROR on broonie-spi/for-next]
[also build test ERROR on geert-renesas-drivers/renesas-clk arm64/for-next/core geert-renesas-devel/next robh/for-next linus/master v6.16-rc3 next-20250625]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Fabrizio-Castro/clk-renesas-r9a09g057-Add-entries-for-the-RSPIs/20250625-032714
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
patch link: https://lore.kernel.org/r/20250624192304.338979-4-fabrizio.castro.jz%40renesas.com
patch subject: [PATCH 3/6] spi: Add driver for the RZ/V2H(P) RSPI IP
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20250625/202506251915.mDWx8v2S-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250625/202506251915.mDWx8v2S-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506251915.mDWx8v2S-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/spi/spi-rzv2h-rspi.c: In function 'rzv2h_rspi_prepare_message':
>> drivers/spi/spi-rzv2h-rspi.c:298:18: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
298 | conf32 = FIELD_PREP(RSPI_SPCMD_CPOL, !!(spi->mode & SPI_CPOL));
| ^~~~~~~~~~
vim +/FIELD_PREP +298 drivers/spi/spi-rzv2h-rspi.c
268
269 static int rzv2h_rspi_prepare_message(struct spi_controller *ctlr,
270 struct spi_message *message)
271 {
272 struct rzv2h_rspi_priv *rspi = spi_controller_get_devdata(ctlr);
273 const struct spi_device *spi = message->spi;
274 struct spi_transfer *xfer;
275 u32 speed_hz = U32_MAX;
276 u8 bits_per_word;
277 u32 conf32;
278 u16 conf16;
279
280 /* Make sure SPCR.SPE is 0 before amending the configuration */
281 rzv2h_rspi_spe_disable(rspi);
282
283 /* Configure the device to work in "host" mode */
284 conf32 = RSPI_SPCR_MSTR;
285
286 /* Auto-stop function */
287 conf32 |= RSPI_SPCR_SCKASE;
288
289 /* SPI receive buffer full interrupt enable */
290 conf32 |= RSPI_SPCR_SPRIE;
291
292 writel(conf32, rspi->base + RSPI_SPCR);
293
294 /* Use SPCMD0 only */
295 writeb(0x0, rspi->base + RSPI_SPSCR);
296
297 /* Setup mode */
> 298 conf32 = FIELD_PREP(RSPI_SPCMD_CPOL, !!(spi->mode & SPI_CPOL));
299 conf32 |= FIELD_PREP(RSPI_SPCMD_CPHA, !!(spi->mode & SPI_CPHA));
300 conf32 |= FIELD_PREP(RSPI_SPCMD_LSBF, !!(spi->mode & SPI_LSB_FIRST));
301 conf32 |= FIELD_PREP(RSPI_SPCMD_SSLKP, 1);
302 conf32 |= FIELD_PREP(RSPI_SPCMD_SSLA, spi_get_chipselect(spi, 0));
303 writel(conf32, rspi->base + RSPI_SPCMD);
304 if (spi->mode & SPI_CS_HIGH)
305 writeb(BIT(spi_get_chipselect(spi, 0)), rspi->base + RSPI_SSLP);
306 else
307 writeb(0, rspi->base + RSPI_SSLP);
308
309 /* Setup FIFO thresholds */
310 conf16 = FIELD_PREP(RSPI_SPDCR2_TTRG, RSPI_FIFO_SIZE - 1);
311 conf16 |= FIELD_PREP(RSPI_SPDCR2_RTRG, 0);
312 writew(conf16, rspi->base + RSPI_SPDCR2);
313
314 rzv2h_rspi_clear_fifos(rspi);
315
316 list_for_each_entry(xfer, &message->transfers, transfer_list) {
317 if (!xfer->speed_hz)
318 continue;
319
320 speed_hz = min(xfer->speed_hz, speed_hz);
321 bits_per_word = xfer->bits_per_word;
322 }
323
324 if (speed_hz == U32_MAX)
325 return -EINVAL;
326
327 rspi->bytes_per_word = roundup_pow_of_two(BITS_TO_BYTES(bits_per_word));
328 rzv2h_rspi_reg_rmw(rspi, RSPI_SPCMD, RSPI_SPCMD_SPB, bits_per_word - 1);
329
330 rspi->freq = rzv2h_rspi_setup_clock(rspi, speed_hz);
331 if (!rspi->freq)
332 return -EINVAL;
333
334 rzv2h_rspi_spe_enable(rspi);
335
336 return 0;
337 }
338
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-06-25 11:32 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-24 19:22 [PATCH 0/6] Add RSPI support for RZ/V2H Fabrizio Castro
2025-06-24 19:22 ` [PATCH 1/6] clk: renesas: r9a09g057: Add entries for the RSPIs Fabrizio Castro
2025-06-24 19:37 ` Biju Das
2025-07-01 13:17 ` Geert Uytterhoeven
2025-06-24 19:23 ` [PATCH 2/6] spi: dt-bindings: Document the RZ/V2H(P) RSPI Fabrizio Castro
2025-06-27 20:28 ` Rob Herring (Arm)
2025-07-01 13:29 ` Geert Uytterhoeven
2025-06-24 19:23 ` [PATCH 3/6] spi: Add driver for the RZ/V2H(P) RSPI IP Fabrizio Castro
2025-06-25 10:19 ` Biju Das
2025-07-04 14:14 ` Fabrizio Castro
2025-06-25 11:32 ` kernel test robot [this message]
2025-06-25 19:09 ` Mark Brown
2025-07-04 14:17 ` Fabrizio Castro
2025-06-24 19:23 ` [PATCH 4/6] MAINTAINERS: Add entries for the RZ/V2H(P) RSPI Fabrizio Castro
2025-07-01 13:30 ` Geert Uytterhoeven
2025-06-24 19:23 ` [PATCH 5/6] arm64: defconfig: Enable the RZ/V2H(P) RSPI driver Fabrizio Castro
2025-07-01 13:31 ` Geert Uytterhoeven
2025-06-24 19:23 ` [PATCH 6/6] arm64: dts: renesas: r9a09g057: Add RSPI nodes Fabrizio Castro
2025-07-01 13:32 ` Geert Uytterhoeven
2025-06-25 7:59 ` [PATCH 0/6] Add RSPI support for RZ/V2H Chris Paterson
2025-06-25 8:21 ` Fabrizio Castro
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=202506251915.mDWx8v2S-lkp@intel.com \
--to=lkp@intel.com \
--cc=biju.das.jz@bp.renesas.com \
--cc=broonie@kernel.org \
--cc=fabrizio.castro.jz@renesas.com \
--cc=geert+renesas@glider.be \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=p.zabel@pengutronix.de \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.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®