From: Robin van der Gracht <robin@protonic.nl>
To: Sascha Hauer <s.hauer@pengutronix.de>,
Robin van der Gracht <robin.van.der.gracht@protonic.nl>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 5/9] ARM: boards: protonic-rk356x: Move mecsbc code to model init function
Date: Tue, 10 Mar 2026 16:17:26 +0100 [thread overview]
Message-ID: <ae348be5-6c25-4cb6-8883-7f0d298f1b33@protonic.nl> (raw)
In-Reply-To: <aa_wVOPwEBZn__Pn@pengutronix.de>
Hi Sascha,
On 3/10/26 11:20, Sascha Hauer wrote:
> Hi Robin,
>
> On Wed, Mar 04, 2026 at 12:00:09PM +0100, Robin van der Gracht wrote:
>> This adds a means for registering a model specific late initcall function.
> Please explain why this is necessary in the commit message.
>
>> +static int prt_rk356x_mecsbc_init(void)
>> +{
>> + if (prt_priv.hw_id == 0 && prt_priv.hw_rev == 0)
>> + of_register_fixup(mecsbc_sd_of_fixup, prt_priv.dev);
>> +
>> + return 0;
>> +}
>> +
>> +static int prt_rk356x_devices_init(void)
>> +{
>> + int ret;
>> +
>> + if (prt_priv.model->init) {
>> + ret = prt_priv.model->init();
>> + if (ret) {
>> + pr_warn("Model init failed with %d\n", ret);
>> + return ret;
>> + }
>> + }
>> +
>> + return 0;
>> +}
>> +late_initcall(prt_rk356x_devices_init);
> This executes unconditionally on all boards. You have a patch later in
> this series fixing that, please squash it into this patch.
>
> Sascha
>
Ack. I'll make the changes and submit v2.
Robin
next prev parent reply other threads:[~2026-03-10 15:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-04 11:00 [PATCH 0/9] ARM: boards: protonic-mecsbc: Generalization Robin van der Gracht
2026-03-04 11:00 ` [PATCH 1/9] ARM: boards: Rename protonic-mecsbc to protonic-rk356x Robin van der Gracht
2026-03-04 11:00 ` [PATCH 2/9] ARM: boards: protonic-rk356x: Remove VIN measurement Robin van der Gracht
2026-03-04 11:00 ` [PATCH 3/9] ARM: boards: protonic-rk356x: Use devicetree alias for saradc Robin van der Gracht
2026-03-04 11:00 ` [PATCH 4/9] ARM: boards: protonic-rk356x: Configure ADC and channels in model data Robin van der Gracht
2026-03-04 11:00 ` [PATCH 5/9] ARM: boards: protonic-rk356x: Move mecsbc code to model init function Robin van der Gracht
2026-03-10 10:20 ` Sascha Hauer
2026-03-10 15:17 ` Robin van der Gracht [this message]
2026-03-04 11:00 ` [PATCH 6/9] ARM: boards: protonic-rk356x: Use rockchip_bbu_mmc_register Robin van der Gracht
2026-03-04 11:00 ` [PATCH 7/9] ARM: boards: protonic-rk356x: Move bbu setup to device late init Robin van der Gracht
2026-03-04 11:00 ` [PATCH 8/9] ARM: boards: protonic-rk356x: Fix crash with different boards Robin van der Gracht
2026-03-04 11:00 ` [PATCH 9/9] ARM: boards: protonic-rk356x: Read board serial and MAC address from eMMC Robin van der Gracht
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=ae348be5-6c25-4cb6-8883-7f0d298f1b33@protonic.nl \
--to=robin@protonic.nl \
--cc=barebox@lists.infradead.org \
--cc=robin.van.der.gracht@protonic.nl \
--cc=s.hauer@pengutronix.de \
/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