From: Tom Rini <trini@konsulko.com>
To: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
Cc: Simon Glass <sjg@chromium.org>,
casey.connolly@linaro.org, neil.armstrong@linaro.org,
sumit.garg@kernel.org, jerome@forissier.org,
marek.vasut+renesas@mailbox.org, ilias.apalodimas@linaro.org,
me@samcday.com, aswin.murugan@oss.qualcomm.com,
clamor95@gmail.com, michal.simek@amd.com, u-boot@lists.denx.de,
u-boot-qcom@groups.io, Sumit Garg <sumit.garg@oss.qualcomm.com>
Subject: Re: [PATCH v6 2/5] drivers: sysreset: Add sysreset op that can take arguments
Date: Mon, 16 Feb 2026 09:29:06 -0600 [thread overview]
Message-ID: <20260216152906.GU2747538@bill-the-cat> (raw)
In-Reply-To: <aZKrlhpNI/tpdWmG@hu-varada-blr.qualcomm.com>
[-- Attachment #1: Type: text/plain, Size: 1822 bytes --]
On Mon, Feb 16, 2026 at 11:01:02AM +0530, Varadarajan Narayanan wrote:
> On Fri, Feb 13, 2026 at 01:20:10PM -0700, Simon Glass wrote:
> [ . . . ]
>
> > > > > > I haven't been following this, but what sort of args are you planning to pass?
> > > > >
> > > > > As of now, an argument to indicate reboot to emergency download mode.
> > > >
> > > > So how about adding a struct in sysreset.h where you can include a
> > > > flag word and create a single flag for your case? We should be able to
> > > > handle reset without the cmdline being enabled.
> > > >
> > > > There are other cases where this would be useful, e.g. an EFI app
> > > > rebooting into setup boot.
> > >
> > > Previously, i.e. v5 [1] didn't have SYSRESET_CMD_RESET_ARGS config
> > > option. This was added to avoid bloat code size for platforms that will
> > > not need this. Please see [2]
> >
> > Sure, but you are adding a new method, so you could make it take a new
> > struct instead of the string list, still behind your Kconfig option.
>
> Sure.
>
> You want 'request_arg' function pointer to take a structure instead of
> 'char * const argv[]'. Is this understanding correct?
>
> If yes, this string list is what was given in the command line. And is
> passed to the implementation specific handler.
>
> Command line -> do_reset -> sysreset_walk_arg -> *request_arg
>
> The implementation specific handler can interpret the argv[] as
> applicable to itself. Not sure how to convert/parse this to a struct
> that can be used by EFI app. Am I missing something. Please advice.
Varada, do you think this suggestion is taking things in a useful
direction? It's unclear to me at this point if what Simon suggested is
going to provide something meaningfully more clear / useful or not.
Thanks.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-02-16 15:29 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-21 6:39 [PATCH v6 0/5] Implement reset to EDL for qcs9100 Varadarajan Narayanan
2026-01-21 6:39 ` [PATCH v6 1/5] arm: psci: Add API to check for support of specific PSCI function Varadarajan Narayanan
2026-01-21 6:39 ` [PATCH v6 2/5] drivers: sysreset: Add sysreset op that can take arguments Varadarajan Narayanan
2026-01-21 14:57 ` Tom Rini
2026-01-26 5:15 ` Simon Glass
2026-01-27 4:18 ` Varadarajan Narayanan
2026-02-04 0:23 ` Simon Glass
2026-02-13 9:42 ` Varadarajan Narayanan
2026-02-13 20:20 ` Simon Glass
2026-02-16 5:31 ` Varadarajan Narayanan
2026-02-16 15:29 ` Tom Rini [this message]
2026-02-17 4:26 ` Varadarajan Narayanan
2026-02-17 14:39 ` Tom Rini
2026-02-16 17:19 ` Simon Glass
2026-02-17 4:24 ` Varadarajan Narayanan
2026-02-17 13:31 ` Simon Glass
2026-01-21 6:39 ` [PATCH v6 3/5] sysreset: Implement PSCI based reset to EDL mode for QCOM SoCs Varadarajan Narayanan
2026-05-26 13:32 ` Quentin Schulz
2026-06-08 14:53 ` Quentin Schulz
2026-06-23 16:50 ` Tom Rini
2026-07-02 17:43 ` Quentin Schulz
2026-07-02 17:46 ` Tom Rini
2026-07-03 5:21 ` Varadarajan Narayanan
2026-07-03 7:28 ` Varadarajan Narayanan
2026-01-21 6:39 ` [PATCH v6 4/5] cmd: boot: Add '-edl' option to reset command documentation Varadarajan Narayanan
2026-01-21 6:39 ` [PATCH v6 5/5] qcom_defconfig: enable psci based sysreset Varadarajan Narayanan
2026-04-29 8:49 ` [PATCH v6 0/5] Implement reset to EDL for qcs9100 Casey Connolly
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=20260216152906.GU2747538@bill-the-cat \
--to=trini@konsulko.com \
--cc=aswin.murugan@oss.qualcomm.com \
--cc=casey.connolly@linaro.org \
--cc=clamor95@gmail.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jerome@forissier.org \
--cc=marek.vasut+renesas@mailbox.org \
--cc=me@samcday.com \
--cc=michal.simek@amd.com \
--cc=neil.armstrong@linaro.org \
--cc=sjg@chromium.org \
--cc=sumit.garg@kernel.org \
--cc=sumit.garg@oss.qualcomm.com \
--cc=u-boot-qcom@groups.io \
--cc=u-boot@lists.denx.de \
--cc=varadarajan.narayanan@oss.qualcomm.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