From: Sumit Garg <sumit.garg@kernel.org>
To: Varadarajan Narayanan <quic_varada@quicinc.com>
Cc: trini@konsulko.com, caleb.connolly@linaro.org,
neil.armstrong@linaro.org, sjg@chromium.org,
ilias.apalodimas@linaro.org, sughosh.ganu@linaro.org,
me@samcday.com, marex@denx.de, robert.marko@sartura.hr,
seashell11234455@gmail.com, ycliang@andestech.com,
u-boot-qcom@groups.io, u-boot@lists.denx.de
Subject: Re: [PATCH v1 1/3] mach-snapdragon: Do not define reset_cpu() if SYSRESET is enabled
Date: Mon, 28 Apr 2025 13:54:59 +0530 [thread overview]
Message-ID: <aA87W3wylwsZbKRr@sumit-X1> (raw)
In-Reply-To: <20250410120208.4142087-2-quic_varada@quicinc.com>
On Thu, Apr 10, 2025 at 05:32:06PM +0530, Varadarajan Narayanan wrote:
> If CONFIG_SYSRESET is enabled, the reset_cpu() function defined in
> arch/arm/mach-snapdragon/board.c conflicts with the definition of
> reset_cpu() in drivers/sysreset/sysreset-uclass.c resulting in duplicate
> symbol error while compiling. So, do not include it if CONFIG_SYSRESET
> is enabled.
I would rather like to see all Qcom platforms migrating to SYSRESET but
this looks reasonable to me as of now, FWIW:
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
-Sumit
>
> Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
> ---
> arch/arm/mach-snapdragon/board.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/mach-snapdragon/board.c b/arch/arm/mach-snapdragon/board.c
> index 2ef936aab75..2254e0b55a1 100644
> --- a/arch/arm/mach-snapdragon/board.c
> +++ b/arch/arm/mach-snapdragon/board.c
> @@ -187,10 +187,12 @@ int board_fdt_blob_setup(void **fdtp)
> return ret;
> }
>
> +#if !IS_ENABLED(CONFIG_SYSRESET)
> void reset_cpu(void)
> {
> psci_system_reset();
> }
> +#endif
>
> /*
> * Some Qualcomm boards require GPIO configuration when switching USB modes.
> --
> 2.34.1
>
next prev parent reply other threads:[~2025-04-28 8:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-10 12:02 [PATCH v1 0/3] Implement reset to EDL for qcs9100 Varadarajan Narayanan
2025-04-10 12:02 ` [PATCH v1 1/3] mach-snapdragon: Do not define reset_cpu() if SYSRESET is enabled Varadarajan Narayanan
2025-04-28 8:24 ` Sumit Garg [this message]
2025-04-28 8:28 ` Sam Day
2025-04-28 13:58 ` Casey Connolly
2025-04-10 12:02 ` [PATCH v1 2/3] sysreset: Implement PSCI based reset to EDL mode for QCOM SoCs Varadarajan Narayanan
2025-04-28 8:36 ` Sumit Garg
2025-04-28 14:22 ` Casey Connolly
2025-04-29 11:40 ` Varadarajan Narayanan
2025-04-29 21:02 ` Sam Day
2025-04-30 8:57 ` Varadarajan Narayanan
2025-04-10 12:02 ` [PATCH v1 3/3] configs: qcs9100_defconfig: Enable SYSRESET Varadarajan Narayanan
2025-04-28 8:36 ` Sumit Garg
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=aA87W3wylwsZbKRr@sumit-X1 \
--to=sumit.garg@kernel.org \
--cc=caleb.connolly@linaro.org \
--cc=ilias.apalodimas@linaro.org \
--cc=marex@denx.de \
--cc=me@samcday.com \
--cc=neil.armstrong@linaro.org \
--cc=quic_varada@quicinc.com \
--cc=robert.marko@sartura.hr \
--cc=seashell11234455@gmail.com \
--cc=sjg@chromium.org \
--cc=sughosh.ganu@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot-qcom@groups.io \
--cc=u-boot@lists.denx.de \
--cc=ycliang@andestech.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