mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Sascha Hauer" <s.hauer@pengutronix.de>
To: "Sascha Hauer" <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] fixup! mtd: spi-nor: enable module in PBL
Date: Tue, 20 Oct 2026 09:05:38 +0000	[thread overview]
Message-ID: <32955f6f-8cde-4bd6-a04e-7df94443262a@pengutronix.de> (raw)
In-Reply-To: <20261020073955.3715289-1-s.hauer@pengutronix.de>

On 2026-10-20 09:39, Sascha Hauer wrote:
> Building spi-nor.c for PBL breaks the sandbox build: the PBL only
> provides get_time_ns() and is_timeout() with CONFIG_PBL_CLOCKSOURCE,
> which sandbox only selects with COMPILE_TEST, and sandbox links the PBL
> objects with --whole-archive:
> 
>   undefined reference to `get_time_ns'
>   undefined reference to `is_timeout'
> 
> Use the read_poll_get_time_ns()/read_poll_is_timeout() wrappers from
> <linux/iopoll.h>, which fall back to polling without timeout when there
> is no PBL clocksource, like read_poll_timeout() already does.
> 

I decided for another approach: Add a dedicated config option CONFIG_MTD_SPI_NOR_PBL
which has to be selected when SPI NOR is used by the xloader.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




  reply	other threads:[~2026-10-20  9:06 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-07 10:55 [PATCH 00/11] arm: socfpga: agilex5: add xload support for bl33 to FSBL Michael Tretter
2026-10-07 10:55 ` [PATCH 01/11] mtd: spi-nor: drop requirement for device field Michael Tretter
2026-10-07 10:55 ` [PATCH 02/11] mtd: spi-nor: enable module in PBL Michael Tretter
2026-10-20  7:39   ` [PATCH] fixup! " Sascha Hauer
2026-10-20  9:05     ` Sascha Hauer [this message]
2026-10-07 10:55 ` [PATCH 03/11] mtd: spi-nor: cadence: extract common part for use " Michael Tretter
2026-10-07 10:55 ` [PATCH 04/11] mtd: spi-nor: cadence: add a PBL driver Michael Tretter
2026-10-07 10:55 ` [PATCH 05/11] arm: socfpga: agilex5: add bl33 xload support Michael Tretter
2026-10-07 10:55 ` [PATCH 06/11] arm: socfpga: agilex5: separate load and start of bl33 Michael Tretter
2026-10-07 10:55 ` [PATCH 07/11] arm: socfpga: agilex5: enable xload for bl33 Michael Tretter
2026-10-07 10:55 ` [PATCH 08/11] arm: socfpga: agilex5: initialize QSPI flash in PBL Michael Tretter
2026-10-07 12:11   ` Michael Tretter
2026-10-07 10:55 ` [PATCH 09/11] arm: socfpga: agilex5: add agilex5_barebox_entry_xload Michael Tretter
2026-10-07 10:55 ` [PATCH 10/11] arm: socfpga: axe5-eagle: move lowlevel init to separate function Michael Tretter
2026-10-07 10:55 ` [PATCH 11/11] arm: socfpga: axe5-eagle: build FSBL without piggy data Michael Tretter
2026-10-21  8:38   ` [PATCH] fixup! " Michael Tretter
2026-10-19 12:43 ` [PATCH 00/11] arm: socfpga: agilex5: add xload support for bl33 to FSBL Sascha Hauer
2026-10-20 14:30 ` Sascha Hauer

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=32955f6f-8cde-4bd6-a04e-7df94443262a@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.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