| Message ID | 20250515100253.730388-1-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBWPXS3AQMGQEAQVNEZI@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com
[209.85.221.70])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4EC323F049
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 15 May 2025 12:03:06 +0200 (CEST)
Received: by mail-wr1-f70.google.com with SMTP id
ffacd0b85a97d-3a0b9bbfa5dsf330660f8f.3
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 15 May 2025 03:03:06 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1747303386; cv=pass;
d=google.com; s=arc-20240605;
b=ZoqmTwSr9adpxIV6FyGiX+VWwxty5R9VL/aol3IzOqHLPpDeD72N+PpHWq9y7HMacV
6Qbarl5CXQEKQqQMxKCjcBotxKNNd8JtrfWcq1GnwLzIw/anRU6geOlX2CNoPfIeBGap
RonZfPnIQCRmXZytEKCh/6nv7Xm4zawHw7Dbazn/Vlo6u4hQ5CKm7+AGFRPBjd2Rv8Jx
5izoNyp1PXZcH4LSKmRskEwGCqpW8snmfgnL5t1FG3F2CkjNSxdLkYg5KF5l4jaKiqns
Y6Hf33XuwIM6/EC8qbL1hJVGW0RaxrCQ1q/Q9RpPQtKTD3qwgwbRu3pVXIxsTcSMwRR2
Edtg==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:message-id:date:subject:cc:to
:from:dkim-signature;
bh=4Xw+gWVrYQ8eiQJNqV2uRFzEbXEPDpSJPABXuSavXyg=;
fh=WwF93izvrdOzn45eGXH+hA7205XdEmnR/bQ87oNTfU0=;
b=S454sfxOXFV0a43sRrJ2cBrqsMx6HIiZjytDq2n0j93HImummH2gBKrWkvCbLNsVrf
xGA88kRhrll1xIj8bxUR52P56jMF6ymWL1V7Lds3XVHOj7XKzqDBswXcFxh/irOGt+lp
PSMIC/MHmwWjvQMCxXkSiAZF8h4X+9wHCk10aB/iK+dyfU1aT8htXJB6Zm9b2qmJ1fEm
R7ivZc7CUicSMWDpjsz7jYzBUMmqZSou18FNflXnxlzf1iT0ONXRYt8WA6TthUUXwJfi
ZXM7ckANCyDz3fM87XUZ8729rLJAmpv+ptPjldwoNlx//002I+eZGSnry1xwBFPJHJNT
XdJQ==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=iu4Wt+rT;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1747303386; x=1747908186;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:message-id:date:subject:cc:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=4Xw+gWVrYQ8eiQJNqV2uRFzEbXEPDpSJPABXuSavXyg=;
b=rSc+nNe/Z0OcPe5tpmKZ2ibvqPL59BXs5Nw1mUswMVeEkns5c5FELDeXxtP67Sc/2r
m98SARTwf7IVglNBFjJEFDmfm41AIgaEr4cks++2l6tqiarm0vbK/gMN80LqnHbHNcgQ
5OrMqLqsWgFkLBYZoBCECPUgLoFEGQQ+eZtP4=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1747303386; x=1747908186;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=4Xw+gWVrYQ8eiQJNqV2uRFzEbXEPDpSJPABXuSavXyg=;
b=H5v1U0dUM/bzV/kg8HWXk7EPzJo4KHhuDbYP9ckggpiZb1JQlKiaTeZXjVM2UcdoNI
WwGOwd0HNVxv+OirFwBnlhuwIkS+faftyotTkzUZfLMK4ho/RWMNewRawgUUWGiR7oxH
Iq1pWXCaivgKIXrAXHi4BiasllJAKbCoOePBJi29fPvFSiwovBpks7uPZjmMJQAj7mQa
KYJFQ0TtVJvzlp/S3xTEcgoTFYIfmMQ71oX795HKHJ1e/hDKJ29/2HaIdQgTp1k/jhia
9eNmddNUKb2e+4SNIjSmpS9zTXpHzgSVnBydBb+NFJ6hKszsZaMIm3jWheSN3ePK2Kpg
f5Ug==
X-Forwarded-Encrypted: i=2;
AJvYcCWESIdVaa0RowRUoFEoaYhSNP5CelqRJsBHhFMmF3SwP+//UzhAikyCxP39AdtjJ3nMLxuzRG8GVm4wNQQF@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YwgzX49RUmm7HwYnBrhPTJw7sJ79Gx8ojgr57TN570fPpkqInCU
rZCtCQQdrlaNP2ydZyysJxNa6wvT3t+4L8Wo7uJlXraPH7fge1f2/al2/yQaQYiwLqQg2Aeecg=
=
X-Google-Smtp-Source:
AGHT+IE46mIxJ+3rTVc4HvPSSqQ0ZexeUv5PF17j/hJ3Bmis8SpZ8Tpvw37mvH5dCtT89g8r3pUKfA==
X-Received: by 2002:a05:6000:401f:b0:3a3:5b88:fb33 with SMTP id
ffacd0b85a97d-3a35b88fb91mr390328f8f.1.1747303385524;
Thu, 15 May 2025 03:03:05 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com;
h=AVT/gBGKPotGAbpqwm2oo39tBRbv5ZBhIENiuab5fHNYJMdhtw==
Received: by 2002:a05:600c:350e:b0:43c:f1c0:1f7f with SMTP id
5b1f17b1804b1-442f8785ce6ls3720025e9.2.-pod-prod-03-eu; Thu, 15 May 2025
03:03:03 -0700 (PDT)
X-Received: by 2002:a05:600c:609b:b0:43c:fceb:91a with SMTP id
5b1f17b1804b1-442f20e8c4fmr61454305e9.11.1747303383304;
Thu, 15 May 2025 03:03:03 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1747303383; cv=none;
d=google.com; s=arc-20240605;
b=HAo4sVbfQA7Gjl9tniu58UQsDxvyB/0nWvBqxzuNjnoG3lq+Oyv9c6SE5mUKd9kwKT
eqv5L5ifpbXouVD3NBDyneHBbz+lzE3JDDEfaaf9/38AaX+yTHF6PuMt2xKrZWJrRTNo
Cwqsqb6457f1viFQ04Bl1j+0HgU/c1HMZJdS7I6iAx8qdkpURgFUein9QeLvohn8aNaD
8UfioNeEVBIoSQQctrFDs++erQyC1T9vnkr4g3Jqa9LQ4Lf9zNAByl3MXb2/0R6Yt5lm
uZk21s7cf1+LZhrMfn60RD2iNaMRZ02LaWUER5ZXASVjAyLXExrhLaLyEoo6rgK7EXJX
8Dpw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:dkim-signature;
bh=Z/SPXq4bsFUheBeAN54TSGhJH0zAFFGQH0BD+eMTKbQ=;
fh=9ztacQSccWdQEKgMyyeWO42NXgLguPGOLIAUyuYzUY8=;
b=GvlmznjIOW8TwevI16kPtOCnB6FWJcGmXuCU2WmN4rF9USWy1b+i8FR4xmKCzsTbyX
dCtpXXAU8inRYro9Zy8jPvPxcjbjhZRWIJPzO6JCl1aJNfmSxQ9vUo2JaRkiei9gIK+z
yOZSiWwZiU7bxoedAXfPf9/I2zgsU26+CcjjgJvjSo8nuHgHml+gr5WnltSniRaAGCe+
GTucjQeWqtvWidQxoFA1laIg/RlK7cOqq9fvU8lz9yg6uCyddWsLBwyqoyet72vlwHm0
W8b8TKPIwrg4C8Hc4b4cmVREV4rDrIgXdQ/9q+nWv3BQZV/j6LHPajCCE6HBAltEiQSU
U4BQ==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=iu4Wt+rT;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
5b1f17b1804b1-442d682dd9csor38814505e9.6.2025.05.15.03.03.03
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Thu, 15 May 2025 03:03:03 -0700 (PDT)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Gm-Gg: ASbGncteyqUvqqQUje4Hv9UceuznLW4FipGDpv4q5uuqMjjXbtRSF6vhjD3FoC+yHGF
qeLCn2iiRYjNNw64QI1uwV2/Rz8H13UilgsH2lYxKipsk+e/ihLestOV8afP/U7bxx2rOJLtIY4
wsEpIaxDALn9+6ANZQJ832olJKXcSSr+PgChFptKA6ulmgBY246Qav8W5iDlrV/9SbRmkk4Ako3
zm2c5s4cL1+EhfF5Hixo/gPuAFMAgSu9/sibIvagauU/IUxhL89RbxgHn4gYQ/fHweuh+Ont/tZ
QJR5GL/MLtQSpAq42x6t/Rvu1ZhYzbevLgGYoxswca47CMoDCoUATiZAs5Z1X6nTEnoD7SKuVs0
4C0KL6kJBaGBnpm85KXl3ice9fsugfkFHkxoV79CzE0A=
X-Received: by 2002:a05:600c:1c12:b0:442:c98e:79ab with SMTP id
5b1f17b1804b1-442f20e8159mr65645505e9.9.1747303382719;
Thu, 15 May 2025 03:03:02 -0700 (PDT)
Received: from dario-ThinkPad-T14s-Gen-2i.client.m3-hotspots.de
([46.189.28.43])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-442f397b680sm64897765e9.40.2025.05.15.03.03.01
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 15 May 2025 03:03:02 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: u-boot@lists.denx.de
Cc: linux-amarula@amarulasolutions.com,
Michael Trimarchi <michael@amarulasolutions.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Fabio Estevam <festevam@gmail.com>, Marek Vasut <marex@denx.de>,
"NXP i.MX U-Boot Team" <uboot-imx@nxp.com>,
Paul Geurts <paul.geurts@prodrive-technologies.com>,
Peng Fan <peng.fan@nxp.com>, Quentin Schulz <quentin.schulz@cherry.de>,
Sean Anderson <seanga2@gmail.com>, Simon Glass <sjg@chromium.org>,
Stefano Babic <sbabic@nabladev.com>, Tom Rini <trini@konsulko.com>,
=?utf-8?q?Vincent_Stehl=C3=A9?= <vincent.stehle@arm.com>,
Vitor Soares <vitor.soares@toradex.com>
Subject: [PATCH] arm: imx: imx8m: soc: fix the macro name
Date: Thu, 15 May 2025 12:02:47 +0200
Message-ID: <20250515100253.730388-1-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=iu4Wt+rT;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
arm: imx: imx8m: soc: fix the macro name
|
|
Commit Message
Dario Binacchi
May 15, 2025, 10:02 a.m. UTC
From: Michael Trimarchi <michael@amarulasolutions.com> The function arch_spl_mmc_get_uboot_raw_sector() was never compiled, even when the option CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION was enabled. So rename the macro SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION to CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION. Fixes: 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options") Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- arch/arm/mach-imx/imx8m/soc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Comments
Hi Dario, On 5/15/25 12:02 PM, Dario Binacchi wrote: > From: Michael Trimarchi <michael@amarulasolutions.com> > > The function arch_spl_mmc_get_uboot_raw_sector() was never compiled, > even when the option CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION was > enabled. So rename the macro SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION to > CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION. > > Fixes: 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options") > Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > arch/arm/mach-imx/imx8m/soc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c > index 567e8e9e81a0..806adcf145fa 100644 > --- a/arch/arm/mach-imx/imx8m/soc.c > +++ b/arch/arm/mach-imx/imx8m/soc.c > @@ -791,7 +791,7 @@ int boot_mode_getprisec(void) > #endif > > #if defined(CONFIG_IMX8MN) || defined(CONFIG_IMX8MP) > -#ifdef SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION > +#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION Maybe a good opportunity to switch to #if IS_ENABLED(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION) ? Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> I had a random idea but I'm wondering if there's a way we could check all symbols listed in IS_ENABLED/CONFIG_IS_ENABLED and check they actually exist in Kconfig somewhere? This would not have caught this one since we were using #ifdef but wondering if it could help with migrations/renaming? Thanks! Quentin To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
On Thu, May 15, 2025 at 01:37:44PM +0200, Quentin Schulz wrote: > Hi Dario, > > On 5/15/25 12:02 PM, Dario Binacchi wrote: > > From: Michael Trimarchi <michael@amarulasolutions.com> > > > > The function arch_spl_mmc_get_uboot_raw_sector() was never compiled, > > even when the option CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION was > > enabled. So rename the macro SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION to > > CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION. > > > > Fixes: 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options") > > Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > > > --- > > > > arch/arm/mach-imx/imx8m/soc.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c > > index 567e8e9e81a0..806adcf145fa 100644 > > --- a/arch/arm/mach-imx/imx8m/soc.c > > +++ b/arch/arm/mach-imx/imx8m/soc.c > > @@ -791,7 +791,7 @@ int boot_mode_getprisec(void) > > #endif > > #if defined(CONFIG_IMX8MN) || defined(CONFIG_IMX8MP) > > -#ifdef SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION > > +#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION > > Maybe a good opportunity to switch to > > #if IS_ENABLED(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION) I honestly don't know if that's more readable, but don't strongly care. > ? > > Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> > > I had a random idea but I'm wondering if there's a way we could check all > symbols listed in IS_ENABLED/CONFIG_IS_ENABLED and check they actually exist > in Kconfig somewhere? This would not have caught this one since we were > using #ifdef but wondering if it could help with migrations/renaming? I think that might be something tools/qconfig.py --scan-source prints out about, but the output then requires manual investigation. I also *think* it missed one set of cases, but I've added a checkpatch.pl change to be louder about it.
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 567e8e9e81a0..806adcf145fa 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -791,7 +791,7 @@ int boot_mode_getprisec(void) #endif #if defined(CONFIG_IMX8MN) || defined(CONFIG_IMX8MP) -#ifdef SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION +#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION #define IMG_CNTN_SET1_OFFSET GENMASK(22, 19) unsigned long arch_spl_mmc_get_uboot_raw_sector(struct mmc *mmc, unsigned long raw_sect) @@ -826,7 +826,7 @@ unsigned long arch_spl_mmc_get_uboot_raw_sector(struct mmc *mmc, return raw_sect; } -#endif /* SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION */ +#endif /* CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION */ #endif bool is_usb_boot(void)