Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1124075rwl; Fri, 4 Nov 2022 10:02:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Aro/MK3GjZSmz0ali7+ndzQvPpcMWVR1+ZDwJJgnVp8nWRZ3564Qi8BuPQZ8m5oG4tVfe X-Received: by 2002:a17:902:ab8f:b0:185:46d3:8c96 with SMTP id f15-20020a170902ab8f00b0018546d38c96mr37779074plr.136.1667581375675; Fri, 04 Nov 2022 10:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667581375; cv=none; d=google.com; s=arc-20160816; b=u79R3Oz9Q0uASlrQ0WTFVGiMrHKThwQyrXKGf2NCFDRyr/bQM4jM117waREubOoJPl 5GdpiU0M7Y75DcQAWLeLfIwmT/M3MfO/kn483bq+SYv1bs8Z7hzhpEvEL3zGOVPJXDli hzySGXBVVKcglWycG9AJ3VjNz58l4+Pv+RDklABq3UNAgecsxt1HmGPiZI+9U+MiBDTd k14dzPbS/FNbWBP72fCVcLYb+Viri0FP7xcxlYz0z7HFL5W7SPHaYWKN+9U5bmX5QeDq WOv3JBOuG1B1FYS8nug8C+oO1/8i8/bfks6nLVEnrrWUsCWsf3in0OXh8suvnsd0gXih 8wvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=808GK+NY0bb9SRQPS3AOWotYB050t9mvngzQ7fYdHj0=; b=BctUYeuunbYNt1w6n+78yxMmUM7dB1qq0HYAa7S19pan9bGHCOSKpoKeTjPSICsd9s CFMgtwxb6GaYq8vtaSHX8tDWruv0I1fDUFnGanm207BttZndY/xGFOZgzNbANcAXyFzD JfX7L1p2dRnHGXFSwFMCArlO0Jxe025gUV1aNiLJeTPIR0uvHvV5JmeAmy6pRL++H5Zb mHikzZqFiHJ9j2vgdMOD1AJIqc94kqwuOFkDKYPB6w62zzue8H7g17MZChqwy9xXHjmV JHDzCS3ajdpybW5vwVMEBawBAUDNyisXRRuTSEuJigfVm41HPvMDj8HYGu29sf3QXPUp Qfpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=LPFwd04k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i22-20020a635416000000b0046f72960506si6136119pgb.422.2022.11.04.10.02.23; Fri, 04 Nov 2022 10:02:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=LPFwd04k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231728AbiKDQhI (ORCPT + 96 others); Fri, 4 Nov 2022 12:37:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231827AbiKDQhA (ORCPT ); Fri, 4 Nov 2022 12:37:00 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CB5927148; Fri, 4 Nov 2022 09:36:57 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 9D4D610000C; Fri, 4 Nov 2022 16:36:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667579816; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=808GK+NY0bb9SRQPS3AOWotYB050t9mvngzQ7fYdHj0=; b=LPFwd04kD+EfMdBuALeI7XL56MoTr+69iRZ7JoeMct1muLj9rxm+G1EpKw4rpRhh7kkCwy D2rlkiN7D3IPKDadbptg9C9dfFiExZcnQjzdINJ1453lFrFmwgwrLI5mmGoOQTVVhFAivg O6wlOc7fmO+exNWnY/yXVPp/SMUCx8ecyAvXs2gdm/G+yi0cd5MHQ7likz8ecHlgNbFGrB aEorQ84ibVsVy7zkV3mRC+5NHMBBZca1WqMNr3DR7XfgGf+bYS4+6gHMrLjLFFeCd39IM1 y1JgI1WGtavOlwbaY47LPvWggiqYVT0aDS9iWJ0rpXrTEQSYos8z75qhfpIkUQ== Date: Fri, 4 Nov 2022 17:36:52 +0100 From: Maxime Chevallier To: Vladimir Oltean Cc: Krzysztof Kozlowski , "davem@davemloft.net" , Rob Herring , Krzysztof Kozlowski , Jakub Kicinski , Eric Dumazet , Paolo Abeni , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "thomas.petazzoni@bootlin.com" , Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , "linux-arm-kernel@lists.infradead.org" , Luka Perkov , Robert Marko , Andy Gross , Bjorn Andersson , Konrad Dybcio Subject: Re: [PATCH net-next v7 5/5] ARM: dts: qcom: ipq4019: Add description for the IPQESS Ethernet controller Message-ID: <20221104173652.594b17db@pc-8.home> In-Reply-To: <20221104154047.6rtchfslvijqyxp6@skbuf> References: <20221104142746.350468-1-maxime.chevallier@bootlin.com> <20221104142746.350468-6-maxime.chevallier@bootlin.com> <50814a5b-03d3-95b4-ab14-bfd19adae52b@linaro.org> <20221104143250.6qjkphkhrycp75rv@skbuf> <3bdb7b04-27a2-8d50-b96a-76ad914a0988@linaro.org> <20221104154047.6rtchfslvijqyxp6@skbuf> Organization: Bootlin X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Krzysztof, Vladimir, On Fri, 4 Nov 2022 15:40:48 +0000 Vladimir Oltean wrote: > On Fri, Nov 04, 2022 at 11:08:07AM -0400, Krzysztof Kozlowski wrote: > > On 04/11/2022 10:32, Vladimir Oltean wrote: > > > On Fri, Nov 04, 2022 at 10:31:06AM -0400, Krzysztof Kozlowski > > > wrote: > > >>> diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi > > >>> b/arch/arm/boot/dts/qcom-ipq4019.dtsi index > > >>> b23591110bd2..5fa1af147df9 100644 --- > > >>> a/arch/arm/boot/dts/qcom-ipq4019.dtsi +++ > > >>> b/arch/arm/boot/dts/qcom-ipq4019.dtsi @@ -38,6 +38,7 @@ aliases > > >>> { spi1 = &blsp1_spi2; > > >>> i2c0 = &blsp1_i2c3; > > >>> i2c1 = &blsp1_i2c4; > > >>> + ethernet0 = &gmac; > > >> > > >> Hm, I have doubts about this one. Why alias is needed and why it > > >> is a property of a SoC? Not every board has Ethernet enabled, so > > >> this looks like board property. > > >> > > >> I also wonder why do you need it at all? > > > > > > In general, Ethernet aliases are needed so that the bootloader > > > can fix up the MAC address of each port's OF node with values it > > > gets from the U-Boot environment or an AT24 EEPROM or something > > > like that. > > > > Assuming that's the case here, my other part of question remains - > > is this property of SoC or board? The buses (SPI, I2C) are > > properties of boards, even though were incorrectly put here. If the > > board has multiple ethernets, the final ordering is the property of > > the board, not SoC. I would assume that bootloader also configures > > the MAC address based on the board config, not per SoC... > > I don't disagree. On NXP LS1028A, we also have all aliases in board > device trees and not in the SoC dtsi. You're right indeed, it was put there so that it's alongside the other aliases, but it makes more sense to include it in the board file. I'll respin with the alias removed. Thanks, Maxime