From: Anshul Dalal <anshuld@ti.com>
To: Aristo Chen <aristo.chen@canonical.com>, Anshul Dalal <anshuld@ti.com>
Cc: <u-boot@lists.denx.de>, Tom Rini <trini@konsulko.com>,
"Vignesh Raghavendra" <vigneshr@ti.com>,
Bryan Brattlof <bb@ti.com>,
"Neha Malcom Francis" <n-francis@ti.com>,
Sparsh Kumar <sparsh-kumar@ti.com>,
"Suhaas Joshi" <s-joshi@ti.com>, Andrew Davis <afd@ti.com>,
Paresh Bhagat <p-bhagat@ti.com>, Dhruva Gole <d-gole@ti.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Beleswar Padhi <b-padhi@ti.com>, Moteen Shah <m-shah@ti.com>,
Chintan Vankar <c-vankar@ti.com>, Aniket Limaye <a-limaye@ti.com>,
Udit Kumar <u-kumar1@ti.com>, Wadim Egorov <w.egorov@phytec.de>,
Sam Protsenko <semen.protsenko@linaro.org>,
"Vishal Mahaveer" <vishalm@ti.com>, Peng Fan <peng.fan@nxp.com>,
Alexander Sverdlin <alexander.sverdlin@siemens.com>,
Andreas Dannenberg <dannenberg@ti.com>,
"Guillaume La Roque (TI.com)" <glaroque@baylibre.com>,
Patrice Chotard <patrice.chotard@foss.st.com>,
Mattijs Korpershoek <mkorpershoek@kernel.org>
Subject: Re: [PATCH v1 1/4] arm: k3: select tifsstub via board_fit_config_name_match
Date: Tue, 23 Jun 2026 12:59:12 +0530 [thread overview]
Message-ID: <DJG933DITHOO.G8ER04I2UPWX@ti.com> (raw)
In-Reply-To: <CAA=k7=k2Xunx4pGujZTfK9kQmtFkDdJG0o29BkNxHdSbA=uguw@mail.gmail.com>
On Tue Jun 23, 2026 at 12:31 PM IST, Aristo Chen wrote:
> On Tue, Jun 23, 2026 at 2:18 PM Anshul Dalal <anshuld@ti.com> wrote:
[snip]
>> > diff --git a/arch/arm/mach-k3/common.h b/arch/arm/mach-k3/common.h
>> > index 466ad22f895..37ff98d8992 100644
>> > --- a/arch/arm/mach-k3/common.h
>> > +++ b/arch/arm/mach-k3/common.h
>> > @@ -55,7 +46,6 @@ const struct k3_speed_grade_map *k3_get_speed_grade_map(void);
>> > void k3_fix_rproc_clock(const char *path);
>> > void mmr_unlock(uintptr_t base, u32 partition);
>> > bool is_rom_loaded_sysfw(struct rom_extended_boot_data *data);
>> > -enum k3_device_type get_device_type(void);
>>
>> Why the move of this function from common.h to hardware.h? This header should be
>> accessible to all of K3 anyways.
>
> If I understand correctly, arch/arm/mach-k3/common.h is currently
> mach-k3-internal. It is not in the include search path for board
> files; it is pulled in by .c files inside mach-k3/ via relative
> includes (#include "common.h" or #include "../common.h").
>
> Board files like board/ti/am62x/evm.c include the K3 SoC header via
> <asm/arch/hardware.h>, which maps to
> arch/arm/mach-k3/include/mach/hardware.h. They have no direct path to
> arch/arm/mach-k3/common.h today.
>
> For the board_fit_config_name_match() wrappers in this patch to call
> get_device_type(), the declaration needs to live somewhere boards can
> reach. The two options I considered were:
>
> 1. Move enum k3_device_type and get_device_type() to hardware.h
> (what this patch does). Touches two files.
>
> 2. Relocate common.h into arch/arm/mach-k3/include/mach/ to make it
> public, then update every relative include inside mach-k3/. Touches
> every mach-k3/ source file.
>
> I went with (1) as the smaller change. Happy to revisit if you would
> prefer (2), but it felt out of scope for this series.
>
I can take a jab at refactoring things at a later point. But for the
time being, what you have done with option #1 is alright.
next prev parent reply other threads:[~2026-06-23 7:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-28 13:27 [PATCH v1 0/4] arm: k3: replace tifsstub runtime filter with per-state FIT configurations Aristo Chen
2026-05-28 13:27 ` [PATCH v1 1/4] arm: k3: select tifsstub via board_fit_config_name_match Aristo Chen
2026-06-01 13:57 ` Sverdlin, Alexander
2026-06-02 7:04 ` Akashdeep Kaur
2026-06-18 7:31 ` Neha Malcom Francis
2026-06-23 6:18 ` Anshul Dalal
2026-06-23 7:01 ` Aristo Chen
2026-06-23 7:29 ` Anshul Dalal [this message]
2026-05-28 13:27 ` [PATCH v1 2/4] board: phytec: phycore-am62: select tifsstub via FIT config Aristo Chen
2026-05-28 13:27 ` [PATCH v1 3/4] board: toradex: verdin-am62: " Aristo Chen
2026-05-28 13:27 ` [PATCH v1 4/4] arm: k3: drop redundant tifsstub runtime filter Aristo Chen
2026-06-18 7:31 ` Neha Malcom Francis
2026-06-23 6:18 ` Anshul Dalal
2026-06-23 6:18 ` [PATCH v1 0/4] arm: k3: replace tifsstub runtime filter with per-state FIT configurations Anshul Dalal
2026-06-23 14:15 ` [PATCH v2 " Aristo Chen
2026-06-23 14:15 ` [PATCH v2 1/4] arm: k3: select tifsstub via board_fit_config_name_match Aristo Chen
2026-06-23 14:15 ` [PATCH v2 2/4] board: phytec: phycore-am62: select tifsstub via FIT config Aristo Chen
2026-06-23 14:15 ` [PATCH v2 3/4] board: toradex: verdin-am62: " Aristo Chen
2026-06-23 14:15 ` [PATCH v2 4/4] arm: k3: drop redundant tifsstub runtime filter Aristo Chen
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=DJG933DITHOO.G8ER04I2UPWX@ti.com \
--to=anshuld@ti.com \
--cc=a-limaye@ti.com \
--cc=afd@ti.com \
--cc=alexander.sverdlin@siemens.com \
--cc=aristo.chen@canonical.com \
--cc=b-padhi@ti.com \
--cc=bb@ti.com \
--cc=c-vankar@ti.com \
--cc=d-gole@ti.com \
--cc=dannenberg@ti.com \
--cc=glaroque@baylibre.com \
--cc=ilias.apalodimas@linaro.org \
--cc=m-shah@ti.com \
--cc=mkorpershoek@kernel.org \
--cc=n-francis@ti.com \
--cc=p-bhagat@ti.com \
--cc=patrice.chotard@foss.st.com \
--cc=peng.fan@nxp.com \
--cc=s-joshi@ti.com \
--cc=semen.protsenko@linaro.org \
--cc=sparsh-kumar@ti.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=u-kumar1@ti.com \
--cc=vigneshr@ti.com \
--cc=vishalm@ti.com \
--cc=w.egorov@phytec.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.