public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Sumit Garg <sumit.garg@kernel.org>
To: David Lechner <dlechner@baylibre.com>
Cc: Casey Connolly <casey.connolly@linaro.org>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Varadarajan Narayanan <quic_varada@quicinc.com>,
	Tom Rini <trini@konsulko.com>,
	Julien Stephan <jstephan@baylibre.com>,
	u-boot-qcom@groups.io, u-boot@lists.denx.de
Subject: Re: [PATCH 1/6] env: scsi: rename ENV_SCSI_PART_UUID
Date: Mon, 6 Apr 2026 18:22:29 +0530	[thread overview]
Message-ID: <adOsjXA70ICRS4hD@sumit-xelite> (raw)
In-Reply-To: <20260326-env-scsi-hw-part-support-v1-1-55c9dd07a2cb@baylibre.com>

On Thu, Mar 26, 2026 at 05:59:23PM -0500, David Lechner wrote:
> Rename SCSI_ENV_PART_UUID to ENV_SCSI_PART_UUID. All other environment-
> related config names are of the form ENV_<name>, so this is more
> consistent.
> 
> Signed-off-by: David Lechner <dlechner@baylibre.com>
> ---
>  configs/qcom_qcs9100_defconfig | 2 +-
>  env/Kconfig                    | 2 +-
>  env/scsi.c                     | 6 +++---
>  3 files changed, 5 insertions(+), 5 deletions(-)

Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>

-Sumit

> 
> diff --git a/configs/qcom_qcs9100_defconfig b/configs/qcom_qcs9100_defconfig
> index 371448b8b1b..082106157bb 100644
> --- a/configs/qcom_qcs9100_defconfig
> +++ b/configs/qcom_qcs9100_defconfig
> @@ -11,6 +11,6 @@ CONFIG_REMAKE_ELF=y
>  CONFIG_FASTBOOT_BUF_ADDR=0xdb300000
>  CONFIG_DEFAULT_DEVICE_TREE="qcom/qcs9100-ride-r3"
>  CONFIG_ENV_IS_IN_SCSI=y
> -CONFIG_SCSI_ENV_PART_UUID="71cb9cd0-acf1-b6cb-ad91-be9572fe11a9"
> +CONFIG_ENV_SCSI_PART_UUID="71cb9cd0-acf1-b6cb-ad91-be9572fe11a9"
>  # CONFIG_ENV_IS_DEFAULT is not set
>  # CONFIG_ENV_IS_NOWHERE is not set
> diff --git a/env/Kconfig b/env/Kconfig
> index 2feff0b382e..5824f762870 100644
> --- a/env/Kconfig
> +++ b/env/Kconfig
> @@ -762,7 +762,7 @@ config ENV_MMC_USE_DT
>  	  The 2 defines CONFIG_ENV_OFFSET, CONFIG_ENV_OFFSET_REDUND
>  	  are not used as fallback.
>  
> -config SCSI_ENV_PART_UUID
> +config ENV_SCSI_PART_UUID
>  	string "SCSI partition UUID for saving environment"
>  	depends on ENV_IS_IN_SCSI
>  	help
> diff --git a/env/scsi.c b/env/scsi.c
> index 207717e17b1..f376f731870 100644
> --- a/env/scsi.c
> +++ b/env/scsi.c
> @@ -35,7 +35,7 @@ static inline struct env_scsi_info *env_scsi_get_part(void)
>  {
>  	struct env_scsi_info *ep = &env_part;
>  
> -	if (scsi_get_blk_by_uuid(CONFIG_SCSI_ENV_PART_UUID, &ep->blk, &ep->part))
> +	if (scsi_get_blk_by_uuid(CONFIG_ENV_SCSI_PART_UUID, &ep->blk, &ep->part))
>  		return NULL;
>  
>  	ep->count = CONFIG_ENV_SIZE / ep->part.blksz;
> @@ -83,12 +83,12 @@ static int env_scsi_load(void)
>  	int ret;
>  
>  	if (!ep) {
> -		env_set_default(CONFIG_SCSI_ENV_PART_UUID " partition not found", 0);
> +		env_set_default(CONFIG_ENV_SCSI_PART_UUID " partition not found", 0);
>  		return -ENOENT;
>  	}
>  
>  	if (blk_dread(ep->blk, ep->part.start, ep->count, &envbuf) != ep->count) {
> -		env_set_default(CONFIG_SCSI_ENV_PART_UUID " partition read failed", 0);
> +		env_set_default(CONFIG_ENV_SCSI_PART_UUID " partition read failed", 0);
>  		return -EIO;
>  	}
>  
> 
> -- 
> 2.43.0
> 

  reply	other threads:[~2026-04-06 12:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-26 22:59 [PATCH 0/6] env: scsi: support SCSI env without partition UUID David Lechner
2026-03-26 22:59 ` [PATCH 1/6] env: scsi: rename ENV_SCSI_PART_UUID David Lechner
2026-04-06 12:52   ` Sumit Garg [this message]
2026-03-26 22:59 ` [PATCH 2/6] scsi: return ENODEV in scsi_get_blk_by_uuid() David Lechner
2026-03-26 22:59 ` [PATCH 3/6] scsi: document return values of public functions David Lechner
2026-03-26 22:59 ` [PATCH 4/6] scsi: move scsi_scan() call out of scsi_get_blk_by_uuid() David Lechner
2026-03-26 22:59 ` [PATCH 5/6] env: scsi: add CONFIG_ENV_SCSI_HW_PARTITION David Lechner
2026-03-26 22:59 ` [PATCH 6/6] env: scsi: document requirements for ENV_IS_IN_SCSI David Lechner
2026-04-08 18:25 ` [PATCH 0/6] env: scsi: support SCSI env without partition UUID Tom Rini

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=adOsjXA70ICRS4hD@sumit-xelite \
    --to=sumit.garg@kernel.org \
    --cc=casey.connolly@linaro.org \
    --cc=dlechner@baylibre.com \
    --cc=jstephan@baylibre.com \
    --cc=neil.armstrong@linaro.org \
    --cc=quic_varada@quicinc.com \
    --cc=trini@konsulko.com \
    --cc=u-boot-qcom@groups.io \
    --cc=u-boot@lists.denx.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