From: Tom Rini <trini@konsulko.com>
To: Boon Khai Ng <boon.khai.ng@altera.com>
Cc: U-boot Openlist <u-boot@lists.denx.de>,
"Lucien . Jheng" <lucienzx159@gmail.com>,
Marek Vasut <marek.vasut+renesas@mailbox.org>,
Peng Fan <peng.fan@nxp.com>,
Sky Huang <SkyLake.Huang@mediatek.com>,
Tien Fong Chee <tien.fong.chee@altera.com>,
Weijie Gao <weijie.gao@mediatek.com>, Yao Zi <me@ziyao.cc>,
Dinesh Maniyam <dinesh.maniyam@altera.com>,
Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>,
Chen Huei Lok <chen.huei.lok@altera.com>,
Kok Kiang Hea <kok.kiang.hea@altera.com>
Subject: Re: [PATCH v1] misc: fs_loader: Add QSPI RAW partition loading support
Date: Thu, 2 Apr 2026 11:12:56 -0600 [thread overview]
Message-ID: <20260402171256.GA1914552@bill-the-cat> (raw)
In-Reply-To: <20260319100256.965-1-boon.khai.ng@altera.com>
[-- Attachment #1: Type: text/plain, Size: 1829 bytes --]
On Thu, Mar 19, 2026 at 06:02:56PM +0800, Boon Khai Ng wrote:
> Enhanced the generic firmware loader to support QSPI RAW partition
> loading. This would enable FPGA configuration bitstream loading
> from QSPI RAW partition to program FPGA.
>
> Signed-off-by: Tien Fong Chee <tien.fong.chee@altera.com>
> Signed-off-by: Boon Khai Ng <boon.khai.ng@altera.com>
> ---
> drivers/misc/fs_loader.c | 111 +++++++++++++++++++++++++++++++--------
> include/fs_loader.h | 35 ++++++++++++
> 2 files changed, 123 insertions(+), 23 deletions(-)
Building this on sandbox gives:
drivers/misc/fs_loader.c: In function 'fs_loader_probe':
drivers/misc/fs_loader.c:310:68: error: passing argument 3 of 'spi_flash_probe_bus_cs' makes pointer from integer without a cast [-Werror=int-conversion]
310 | plat->sfconfig.speed,
| ~~~~~~~~~~~~~~^~~~~~
| |
| u32 {aka unsigned int}
In file included from drivers/misc/fs_loader.c:22:
include/spi_flash.h:105:45: note: expected 'struct udevice **' but argument is of type 'u32' {aka 'unsigned int'}
105 | struct udevice **devp);
| ~~~~~~~~~~~~~~~~~^~~~
drivers/misc/fs_loader.c:308:31: error: too many arguments to function 'spi_flash_probe_bus_cs'
308 | ret = spi_flash_probe_bus_cs(plat->sfconfig.bus,
| ^~~~~~~~~~~~~~~~~~~~~~
include/spi_flash.h:104:5: note: declared here
104 | int spi_flash_probe_bus_cs(unsigned int busnum, unsigned int cs,
Please fix, thanks.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-04-02 17:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-19 10:02 [PATCH v1] misc: fs_loader: Add QSPI RAW partition loading support Boon Khai Ng
2026-04-02 17:12 ` Tom Rini [this message]
2026-04-06 12:06 ` NG, BOON KHAI
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=20260402171256.GA1914552@bill-the-cat \
--to=trini@konsulko.com \
--cc=SkyLake.Huang@mediatek.com \
--cc=alif.zakuan.yuslaimi@altera.com \
--cc=boon.khai.ng@altera.com \
--cc=chen.huei.lok@altera.com \
--cc=dinesh.maniyam@altera.com \
--cc=kok.kiang.hea@altera.com \
--cc=lucienzx159@gmail.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=me@ziyao.cc \
--cc=peng.fan@nxp.com \
--cc=tien.fong.chee@altera.com \
--cc=u-boot@lists.denx.de \
--cc=weijie.gao@mediatek.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