From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A8A4C4338F for ; Mon, 26 Jul 2021 01:01:52 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 23A0B60E09 for ; Mon, 26 Jul 2021 01:01:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 23A0B60E09 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aosc.io Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DD88883252; Mon, 26 Jul 2021 03:01:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=aosc.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=mymailcheap.com header.i=@mymailcheap.com header.b="ZeyKkB5n"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=aosc.io header.i=@aosc.io header.b="cnQxVUkZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 83E4083253; Mon, 26 Jul 2021 03:01:47 +0200 (CEST) Received: from relay2.mymailcheap.com (relay2.mymailcheap.com [217.182.66.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 276778323A for ; Mon, 26 Jul 2021 03:01:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=aosc.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=icenowy@aosc.io Received: from filter1.mymailcheap.com (filter1.mymailcheap.com [149.56.130.247]) by relay2.mymailcheap.com (Postfix) with ESMTPS id 8AD1F3EDEC; Mon, 26 Jul 2021 03:01:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by filter1.mymailcheap.com (Postfix) with ESMTP id B1FE02A0C8; Sun, 25 Jul 2021 21:01:37 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mymailcheap.com; s=default; t=1627261297; bh=l+REVOSlwtrLTPezqnyzHINK66rgt/cbfiLwcvH+qD8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=ZeyKkB5n8XY4fjXjl9TluR+2qMVn/VJ5B+n3230mtQl6UhvkMFaUnRqhu8vugiy59 mcmKyGwCDFl5ePHro3jQ5qYPlkCsdIb4vkjTZxRuOG/zrnb7waWxExnY6kZ5KBk5UO D8z2HZylAYkn+xzhhP8R1qJ7s0QwIZ0Hl5g1KxLM= Received: from filter1.mymailcheap.com ([127.0.0.1]) by localhost (filter1.mymailcheap.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1XB9NBmVexB1; Sun, 25 Jul 2021 21:01:36 -0400 (EDT) Received: from mail20.mymailcheap.com (mail20.mymailcheap.com [51.83.111.147]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by filter1.mymailcheap.com (Postfix) with ESMTPS; Sun, 25 Jul 2021 21:01:36 -0400 (EDT) Received: from [148.251.23.173] (ml.mymailcheap.com [148.251.23.173]) by mail20.mymailcheap.com (Postfix) with ESMTP id 4D78743635; Mon, 26 Jul 2021 01:01:35 +0000 (UTC) Authentication-Results: mail20.mymailcheap.com; dkim=pass (1024-bit key; unprotected) header.d=aosc.io header.i=@aosc.io header.b="cnQxVUkZ"; dkim-atps=neutral AI-Spam-Status: Not processed Received: from [192.168.0.49] (unknown [14.154.29.85]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail20.mymailcheap.com (Postfix) with ESMTPSA id 059DA43635; Mon, 26 Jul 2021 01:01:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aosc.io; s=default; t=1627261292; bh=l+REVOSlwtrLTPezqnyzHINK66rgt/cbfiLwcvH+qD8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=cnQxVUkZ18FNjFDmeM1K4jw11Ua02zK/2e3QBsW8Dj7JowhcJg6grnl8Ooii4eFYU HhF4K5EOuYsxf64kkHQpkPHvlqH7TFsL7s7zg4YR6oAf+iijein9n0Qo/+0HEXYMl2 3hv3LZ9/LBW/ec4cA8qceZNgbS0hKIZIFooJauIM= Message-ID: <17b8c045fc3af4d1a0335d828bbfe28cf6475041.camel@aosc.io> Subject: Re: [PATCH 19/27] arm: dts: sunxi: do not renumber if mmc2 does not exist From: Icenowy Zheng To: Yifan Gu , u-boot@lists.denx.de Cc: Jagan Teki , Andre Przywara , George Hilliard Date: Mon, 26 Jul 2021 09:01:26 +0800 In-Reply-To: <20210725231636.879913-20-me@yifangu.com> References: <20210725231636.879913-1-me@yifangu.com> <20210725231636.879913-20-me@yifangu.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4D78743635 X-Rspamd-Server: mail20.mymailcheap.com X-Spamd-Result: default: False [-0.10 / 10.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(0.00)[aosc.io:s=default]; HFILTER_HELO_BAREIP(3.00)[148.251.23.173,1]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[aosc.io]; R_SPF_SOFTFAIL(0.00)[~all]; RCPT_COUNT_FIVE(0.00)[5]; RECEIVED_SPAMHAUS_PBL(0.00)[14.154.29.85:received]; ML_SERVERS(-3.10)[148.251.23.173]; DKIM_TRACE(0.00)[aosc.io:+]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:148.251.0.0/16, country:DE]; FREEMAIL_CC(0.00)[amarulasolutions.com,arm.com,gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean 在 2021-07-25星期日的 19:16 -0400,Yifan Gu写道: > We renumber mmc2 to mmc1 for sunxi devices, but if mmc2 does not exist > dts will not build. > > This patch prevents that by checking CONFIG_MMC_SUNXI_SLOT_EXTRA. I have a similar patch at https://patchwork.ozlabs.org/project/uboot/patch/20210722063015.421923-3-icenowy@sipeed.com/ > --- >  arch/arm/dts/sunxi-u-boot.dtsi | 2 ++ >  1 file changed, 2 insertions(+) > > diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u- > boot.dtsi > index 06da009fa2..53db622144 100644 > --- a/arch/arm/dts/sunxi-u-boot.dtsi > +++ b/arch/arm/dts/sunxi-u-boot.dtsi > @@ -13,7 +13,9 @@ >  / { >         aliases { >                 mmc0 = &mmc0; > +#if CONFIG_MMC_SUNXI_SLOT_EXTRA > 1 >                 mmc1 = &mmc2; > +#endif >         }; >   >         binman: binman {