Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 604FCC63705 for ; Wed, 7 Dec 2022 20:01:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3891F843A1; Wed, 7 Dec 2022 21:01:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="qRn1iSye"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8FB97843A1; Wed, 7 Dec 2022 21:01:22 +0100 (CET) Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 581AA84F1C for ; Wed, 7 Dec 2022 21:01:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-wm1-x329.google.com with SMTP id n7so14597106wms.3 for ; Wed, 07 Dec 2022 12:01:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zA2T77Z5IF2jE4cfRwdJRz4FTZY0ExFtLXFJxCgP2/0=; b=qRn1iSyeGOe+i/ZZr6SJea8SyABAx7n7jYWujcafM6lqGoHFYmuZCNBktJMK6a26m7 6Kb8pRwEpZZgDrcB2mnQvwho3Trjnix61p2uNjswn8yPTmcDSfiRky1fqXje+kGBKIEI nM0jsYNzlRh04JVKy2Uqoh+4rKJX1VuxYOYkY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zA2T77Z5IF2jE4cfRwdJRz4FTZY0ExFtLXFJxCgP2/0=; b=X6JgzKKCjD/MpZHdtYWmMFAO0A+ixJhcmzJSCOZTqAiq+ioZYThasoh3IMPNaCOnpB ONYebixZgWSE0LKAuRkGwx0st+ilGrLVYpHBWR9nIVsoK676/A9+cEWw7ibJOhSXFVWt tJuSv351BxWLGIN1mFzDGAkc0mhM+sfjD1MZDIjUS3m6mbDcGtqU6rnUCHjl/wALMLsE UGm1x8rc/YqsY8JZXKAjznPw5h5vajWqPboS4WbXJqbEzdfVEwsZyuP/SpMx4mrLgwwz fMZOYbekjagTQRSCIEBCzEZ3tBno7FZYNyisIakrb0JJeznIMSuhSOP2nLOwhLAkkSC5 VWCQ== X-Gm-Message-State: ANoB5pk+7r1QPME8U6wqmEWs/ggA96ZlbXcI6hkVIQAv0jBsm3Cu8C4N 4zhtjCKjnLxXjk1yy9xn7ab9Tw== X-Google-Smtp-Source: AA0mqf4HswyUams44Cg4gn4mnR4LwYkniEFqRThw0N6NvQ3bZpz2hewJqG5h58ty5mfGRVdfGQK6Tg== X-Received: by 2002:a7b:cd18:0:b0:3d1:e45f:34f with SMTP id f24-20020a7bcd18000000b003d1e45f034fmr7248132wmj.188.1670443277907; Wed, 07 Dec 2022 12:01:17 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-158f-15c0-8c6a-f9d3.res6.spectrum.com. [2603:6081:7b00:6400:158f:15c0:8c6a:f9d3]) by smtp.gmail.com with ESMTPSA id b4-20020a5d45c4000000b00242209dd1ffsm20165643wrs.41.2022.12.07.12.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 12:01:17 -0800 (PST) Date: Wed, 7 Dec 2022 15:01:14 -0500 From: Tom Rini To: Detlev Casanova Cc: Fabio Estevam , Troy Kisky , u-boot@lists.denx.de, Stefano Babic , "NXP i . MX U-Boot Team" Subject: Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices Message-ID: <20221207200114.GW3787616@bill-the-cat> References: <20221027152252.46552-1-detlev.casanova@collabora.com> <20221205153701.GR3787616@bill-the-cat> <2745476.mvXUDI8C0e@falcon9> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Bwzsio5Erp2hKsYL" Content-Disposition: inline In-Reply-To: <2745476.mvXUDI8C0e@falcon9> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --Bwzsio5Erp2hKsYL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 07, 2022 at 02:53:10PM -0500, Detlev Casanova wrote: > On Monday, December 5, 2022 12:33:48 P.M. EST Fabio Estevam wrote: > > On Mon, Dec 5, 2022 at 12:37 PM Tom Rini wrote: > > > I'm not really happy with this approach. It's not that upstream does= n't > > > have aliases now, it's that it has different aliases, right? That's w= hy > > > they won't accept these? > >=20 > > imx6q.dtsi does have the default mmc aliases: > >=20 > > mmc0 =3D &usdhc1; > > mmc1 =3D &usdhc2; > > mmc2 =3D &usdhc3; > > mmc3 =3D &usdhc4; > >=20 > > Upstream does not want to change mmc alias because users may rely on > > this mmc aliases. > >=20 > > Changing it now may cause the board not to boot anymore as the rootfs > > cannot be found. > >=20 > > It is OK to change mmc alias for a newly introduced board, but please > > keep in mind that > > wandboard and sabrelite have been launched many many years ago. > >=20 > > So for upstream Linux the message was clear: don't change the mmc > > alias for these boards. > >=20 > > Now let's talk about U-Boot. > >=20 > > Prior to d0399a46e7cd ("imx6dl/imx6qdl: synchronise device trees with > > linux") the mmc alias for sabrelite was present: > >=20 > > mmc0 =3D &usdhc3; > > mmc1 =3D &usdhc4; > >=20 > > After this commit, the mmc alias is gone and causes the boot > > regression as reported by Detlev. > >=20 > > We don't want to cause regressions in U-Boot as well, so that's why I > > propose just adding the alias into u-boot.dtsi. > >=20 > > There are many boards that does the same. > >=20 > > > But this also highlights that we really need to get these kind of > > > aliases and similar (a) re-synced with upstream ASAP and (b) do that = at > >=20 > > imx6 dts files are already synced with Linux. > >=20 > > > the start. I don't know which group of "users are broken by this chan= ge" > > > is bigger, the group that needs the aliases we have or the group that > > > needs the other aliases, but the group that gets changes upstream fir= st > > > "wins" here is how the OSS world works. > >=20 > > I prefer to not break things for anyone, hence my proposal. > >=20 > > If you are still not happy with it, please feel free to submit a patch > > with your proposal. >=20 > There is no SPL enabled for the imx.6 Sabrelite, Isn't that needed to use= the=20 > *-u-boot.dtsi files ? >=20 > It is not clear to me how those are loaded. The -u-boot.dtsi files are automatically included from scripts/Makefile.lib: u_boot_dtsi_options =3D $(strip $(wildcard $(dir $<)$(basename $(notdir $<)= )-u-boot.dtsi) \ $(wildcard $(dir $<)$(subst $\",,$(CONFIG_SYS_SOC))-u-boot.dtsi) \ $(wildcard $(dir $<)$(subst $\",,$(CONFIG_SYS_CPU))-u-boot.dtsi) \ $(wildcard $(dir $<)$(subst $\",,$(CONFIG_SYS_VENDOR))-u-boot.dtsi)= \ $(wildcard $(dir $<)u-boot.dtsi)) And then manually #included at times as the above logic will only pick one file and sometimes we do need to combine multiple. --=20 Tom --Bwzsio5Erp2hKsYL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmOQ8QAACgkQFHw5/5Y0 tywjYQv/d5189jVaztpNrbJtsHBM7eff2I3C2H0hgm9v2Z9UHqhAmNuq04OW2IIl MzxHaasWuvIVFUcBqwk17lLdtqy2nXE2HPp4cSitpkxo6/66SR/EHLEA4a4HkvKx KZ4I0KubpKG0YeOJ1pq7Bfo0IH5l1goXrZ/ZFCTKkEg8s0ywFam7Q+oQbUhBr57E 9bIpBiTHEaH5X+BO11vKJjKGCNjm34Ud9l0eBqxESGTJ0BNe0NTVdrROVAlsEYeI z6DVQaUqtVKl5WugFpSYgq88OYXMj/oAyfEaNWDApv9ItJpS0LbH47s1OIGqunyH zIDnQgqCXDWlClqem1JMFnmsVf1F8+A3VqiAqfon4vu/gHMOBagroVsIqb2C1Aq7 cuO3Yo815lXzTq1i2OvJFPoeQeSHvXFKz+fkWPJ3tM+HB8AdyzquF7/OAOfblYoq 86VRvAUBTrF6WgnWBIS7byxRAmURIj01MUh+s5UJ0tBmbxgW0QrlNc53iLvT4NUF Qk4qmM82 =D/xB -----END PGP SIGNATURE----- --Bwzsio5Erp2hKsYL--