| Message ID | 20250515133035.815572-2-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBAWZS7AQMGQEVG7IU3I@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com
[209.85.128.70])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 663403F97E
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 15 May 2025 15:30:43 +0200 (CEST)
Received: by mail-wm1-f70.google.com with SMTP id
5b1f17b1804b1-43d007b2c79sf7813435e9.2
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 15 May 2025 06:30:43 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1747315843; cv=pass;
d=google.com; s=arc-20240605;
b=Wk0E8UgtIeYABYDlFN8EJPZ3qp5mWwOv2yewU3nDKZcFLHcxhlsgxu5u9NSs50jyUw
WdvGbW6J08tAmyMXtZVl71Zq4ne5ehzTWmBPq/yxA5FInwDZASyGFXHq161FUhXvGuVY
YZTcftRXLsbFyBZ+KzfJwGf88vfGThmjzG4m4k6usZCRgVqxcVwrnQXsmr59q++B8grJ
AIADp2/PmxmhaNuTd6hq/P0Sy2mdtaf/Xl5MMyjYYjevBx+fhJI70F9+T9ZNDdhcykuH
G1XYSIo5y6pExa+z8oMXEO693TeBlp0036CGaYbxXVZKmN93BX87nUlwpTjEPv3Tyagm
aJCg==
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:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=5HI0q2/AnT18mwNRHSP7tADcE0hmJzcJQVrLP+usI3w=;
fh=dv7rDkDz8hNy8ul51qHWiKB/e3rF3sazArLFUX0VAgU=;
b=BqyrtnEphpTNtADanMrWBMsvLkYhJ7won5IWusOwU1M9vfUuHCzATA1or6tpTA55Jg
2SGPzrrO12QI2CK43XqVswS9yB6ynmQipa61NmVprNFIr9lTWpk/RQwAwD9qLDwp/Wwd
thjU2pZGC3FiJInPXucm6atTirDOaTI35iu/J0M9Xjp8p0tkq9d7uiggfjkLSC7s+cfE
2tV7MhDW5rxP2KxSTmZMitoS9o9cg/hlwZMxd57BaXN/UeJry+48Frv9YT0auqtDicmy
K0h+WyyUXKbOIrM3SRyoQrwluOKHBbAfTh+4E8xbchW8QWVNVVY5qHSmWBnmkXBqmSF4
+pug==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=ULSHeLNj;
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=1747315843; x=1747920643;
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:references:in-reply-to:message-id
:date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=5HI0q2/AnT18mwNRHSP7tADcE0hmJzcJQVrLP+usI3w=;
b=NieCDdBaCnb/l13vwi/DYpk44qJqNBxyI3FXdkqrwep4XL9vlns4Ba/XenxOfzpF9M
5DPkh7gG4C22onZAglpn4jjMvDn5sJYas/R1maqZS/6e3jBLyhyq9RW5Fd03hTFfUAok
AJxU230DSIwLSKCpsRCCyLFdTlf6qYRA1FWwE=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1747315843; x=1747920643;
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
:references:in-reply-to:message-id:date:subject:cc:to:from
:x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=5HI0q2/AnT18mwNRHSP7tADcE0hmJzcJQVrLP+usI3w=;
b=xIPK50HyABXDrBqgi1cdVfEb9Fere7uaUvXQXo4CUf/1lyMr8afULzvD01/5u74GDR
Hj5CrFoac5ut4guqwEJP6KCGxnHvuMyPYIRzRfJOHKlg4NFOr3ygsDl+RfqFl+CUh3cQ
RFwC89xJSxh07UV8rnF1G119bUhjeM4hO7KQCJBsiHvgWQtEcUFQN2URZHdSxTm4QvMo
8UM3QjI8GVNAE9C235XSdujrxmGa1svLvCN6zXgMXqKDFiqJncKdfYgL9mqO8QiIe/Zr
X/4xGAMFPWxmGXq6cBgxLRXG1zpWP0FRt3cp/NNM6DxZxJXyGjHFSf8lm75GcrIhD2GA
0T+A==
X-Forwarded-Encrypted: i=2;
AJvYcCXOxhzEmwXyhfdXTbaCqUpBglQZuWkCRsKMGrhl3e97RPpn6E/gaF/xsJHKRVnBwRiqsMzXKkuHGOLWci5Y@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0Yzz4CFHqmvFOhAKEtCT+5J4eZ/AleaxuS1Ci+kkukFE8L16u0MT
d142Ek2om6tsA+/cH0IJrAdTH0ocubscxm1kYtKhynv5J2TY7jeB02TK0+kcgWGxew==
X-Google-Smtp-Source:
AGHT+IFSe+t8XD/QWXpQ4+NO+Eu0Ov5FTQBEi0L5s0dD5Er6PLbiViqOi8UmBIexOJ9Q4khWkSshGg==
X-Received: by 2002:a05:600c:4e11:b0:441:b5cb:4f94 with SMTP id
5b1f17b1804b1-442f20baefamr80243985e9.5.1747315842859;
Thu, 15 May 2025 06:30:42 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com;
h=AVT/gBHjBVoiw1ih7BPN6dpmLB/2HCnh7Q3GPEVWS/zpi+sJPQ==
Received: by 2002:a05:600c:3d0b:b0:43b:c5a5:513c with SMTP id
5b1f17b1804b1-442f8782f40ls5981995e9.1.-pod-prod-02-eu; Thu, 15 May 2025
06:30:41 -0700 (PDT)
X-Received: by 2002:a05:600c:3f07:b0:43c:fc04:6d35 with SMTP id
5b1f17b1804b1-442f20bb576mr79190805e9.4.1747315840631;
Thu, 15 May 2025 06:30:40 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1747315840; cv=none;
d=google.com; s=arc-20240605;
b=GdIS6CG2KDEVQW/xd4qB/gmTHdxjjw3YF4oW1rI6fLtmpLYBxniv5Ut3XaflmKyv6L
F9ZirV/yF/QpLZZwHsmyLd5rfR0XOB7xPZcN+FlEUa2DlNQNd78HhBuCJjYKTd3fOZeY
GTdB7FRmiY8xk0TdwpL3Kw4ZZ5D6t8lFE0OuRqPxcZr4KnG36o6A0dvNGzYWv6VCHw8s
zlGJkVhOHwxSJu75N/bJFb5fkszrMREezui2dORHrUEiKQC7sQcYcP2YviQ4PQl53a3z
2zGqDghs6B8iqVdYa1xkt6FqDxsw/dPNFeyEjzsiH6CsD/jTnDpRC/7Wc1OxQGCM8wQc
E+Jg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=zOFCEvCnXwwyTnmpoZ9LlIu/qCiOsWgQbQw6htAZrd0=;
fh=kMbuGewnu65/Iu3S8VL4tVz0gXDSc/nR1SRmBX8SQQg=;
b=TgJy/NBnm3fPbq6kQLDBX6Jhwozl7k94fhb2CSlpkRq5jMZ/nm2N15mr4K2sArsiJ3
hb4GFO9HYO5DBbCa+nRkmycctnHKgVbDSC9XkrGd2AAevcn+3mFauMxbm1ugypXwkd33
kWIiVgvY+lMi5q8bs/PW/uRELOMWJ3fk3CusYfR7RKSW1wJv35oY2/4qgalMR3Yp/0or
li8USU1TFOS3jLVm9UFO19E9zJgkT0YmBp0rZbqDHLbN75HPejz2IgH6ITxINFAt6sif
OH0dSDMxXX9WXGthVzq4zrK+So/WCrtoP1vI7FjXVnmV4FAbp9PhiabcZNNyCK87l2ZG
ZygA==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=ULSHeLNj;
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-442d67e1299sor51995815e9.4.2025.05.15.06.30.40
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Thu, 15 May 2025 06:30:40 -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: ASbGnctxgqvmI05I6+jZvbeAKRaRWiuk7rKeyRNXygvidEvLm4d49ywAWDBIxgiUnSD
CjWQW31cpJ1Evs6eoKmDJsX12YuiNO9TxfPrU6jGHOQPA9fRMVBJgUpgSUb3p547/7DgEI+kUx6
aGL5mTxN7rTc9uDoTOh18lCzic0qmtcoEF5ThXCeg7KPbmcP3jR7ZCU6XWKCGYXVP6FQGAV0Ogi
vgPqInaTo/2AKKOomszLbEr1zvf6lmYd+syWFfNCOfLwZEYAynl43Q1qrwFCxO5gmgFpuIgbPFK
iVXfiY6RSqGl2NC5e74cyxJ/XWf3iBGWr0jcxdKCnH22qkllyf4EvccD2oXmfGgs1/QjRR+lWXj
2fpwDREU5MZ8AwPjeWObLTZWhZXNGY8ZKq9ayRZBOkxuf1GqVYPEpWA==
X-Received: by 2002:a05:600c:3d0b:b0:442:d9f2:c74e with SMTP id
5b1f17b1804b1-442f2168ce4mr65321415e9.23.1747315839687;
Thu, 15 May 2025 06:30:39 -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-442f397b6fbsm70186185e9.39.2025.05.15.06.30.38
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 15 May 2025 06:30:39 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: u-boot@lists.denx.de
Cc: linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Fabio Estevam <festevam@gmail.com>,
Marek Vasut <marex@denx.de>,
Michael Trimarchi <michael@amarulasolutions.com>,
"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>,
Simon Glass <sjg@chromium.org>,
Stefano Babic <sbabic@nabladev.com>,
Tom Rini <trini@konsulko.com>
Subject: [PATCH v2 2/2] arm: imx: imx8m: soc: replace ifdef by IS_ENABLED()
Date: Thu, 15 May 2025 15:30:23 +0200
Message-ID: <20250515133035.815572-2-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20250515133035.815572-1-dario.binacchi@amarulasolutions.com>
References: <20250515133035.815572-1-dario.binacchi@amarulasolutions.com>
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=ULSHeLNj;
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 |
[v2,1/2] arm: imx: imx8m: soc: fix the macro name
|
|
Commit Message
Dario Binacchi
May 15, 2025, 1:30 p.m. UTC
Standardize on using the IS_ENABLED macro.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
(no changes since v1)
arch/arm/mach-imx/imx8m/soc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Dario, On 5/15/25 3:30 PM, Dario Binacchi wrote: > Standardize on using the IS_ENABLED macro. > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > (no changes since v1) > > arch/arm/mach-imx/imx8m/soc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c > index 806adcf145fa..6c53555d22bf 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) You can even do those two as well :) and all the others in this file :) I would recommend to only do for those that start with CONFIG_ which are Kconfig symbols. E.g. PHYS_SDRAM_2_SIZE isn't, so I don't think you can use IS_ENABLED. The easiest way to check everything is fine is to compile before and after patching the file and checking that the output is bit to bit identical (you may need to change the SOURCE_DATE_EPOCH to guarantee that though? Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> 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 03:40:15PM +0200, Quentin Schulz wrote: > Hi Dario, > > On 5/15/25 3:30 PM, Dario Binacchi wrote: > > Standardize on using the IS_ENABLED macro. > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > > > --- > > > > (no changes since v1) > > > > arch/arm/mach-imx/imx8m/soc.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c > > index 806adcf145fa..6c53555d22bf 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) > > You can even do those two as well :) > > and all the others in this file :) I would recommend to only do for those > that start with CONFIG_ which are Kconfig symbols. E.g. PHYS_SDRAM_2_SIZE > isn't, so I don't think you can use IS_ENABLED. > > The easiest way to check everything is fine is to compile before and after > patching the file and checking that the output is bit to bit identical (you > may need to change the SOURCE_DATE_EPOCH to guarantee that though? A change like that would just be code churn and I'd rather not see it. Especially since yes, you *can* get away with IS_ENABLED(FOO) and the kernel does it in a few places, but you shouldn't do that in U-Boot as it's more likely to be an error (you wanted IS_ENABLED(CONFIG_FOO)) than a helpful case of: if (IS_ENABLED(FOO)) { ... }
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 806adcf145fa..6c53555d22bf 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 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION +#if IS_ENABLED(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)