Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1018050rwl; Fri, 4 Nov 2022 08:54:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM45Ycp88tqNJiLmZrn6WOt9O/wNlycmJcuSupWeZ/KyYoPJYv8KTljBIsQmwnGgPehqSg5w X-Received: by 2002:a17:907:2c44:b0:7a9:6e50:4c42 with SMTP id hf4-20020a1709072c4400b007a96e504c42mr35098979ejc.768.1667577239947; Fri, 04 Nov 2022 08:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667577239; cv=none; d=google.com; s=arc-20160816; b=qwxe4MTyxoCdfKAf//nAy6XwAFdtQpj12DbeD/8kOvpf2GJPXoPEzW+4B+yUJbgOuq bW3Ixa1OE4uVfytK+C4XuseCkBsX1Xkz8oW5SKIZeDDOOq5tIKK2tqCiUL5nzHIEUL+/ iBt/aYesxNHfhKsjh9I0oV8WsK7fsIC928tKI+r5cNstDzRRP7+I8kaugHbBCG2xNbMN ONKf+tJt/Tjbgzu3mDNeljGU1+C71u8SepGPaaZjifoJD00y7rFeIkitf05NHLLjbLr7 cjjFDjlneW0j/yLD6tb2gCopPxMYQhiYDclyQRuqxuNJPIdqgmTJ3qL0dEz7OxXIHhIT IRbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=JwRFU1y3EfXp9NwfKHJKDTZzTorKYkXOQOScKexSK2s=; b=c20WGer3Z4iq9QK7dTCwXKbXw7DWbZgttoBUmyZ+kQdiQtEGtWSaBytWUTku32B4xK Jm4giibd+hBawZ4lT/U/kYAZCTf+dZhGCOT8X8iqs3y16zdiUaB1YauQx0sNvbQOPLgO 1g727y55m6JlmyhqcszZ50H1I9H31bEi8R+C556pynEGjD7PQUPKy23d933tmAkdxs1M QZxPxOiLCze6Zr9WsIX+Wd/AqOzOHgriUniaWigaAZdG9pnd+HB1sytx3xDaHS9DfzY8 l3S1VLjALakpUbjtq5Z9+mfWPAAqo7EBAQ/rnKcN8H8ir768NYNNwHywf0GAqRFp5wfJ K37w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N17D5A5+; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f11-20020a056402354b00b0045d8bff7b1asi6564177edd.403.2022.11.04.08.53.36; Fri, 04 Nov 2022 08:53:59 -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=@linaro.org header.s=google header.b=N17D5A5+; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231171AbiKDPIM (ORCPT + 96 others); Fri, 4 Nov 2022 11:08:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231920AbiKDPIK (ORCPT ); Fri, 4 Nov 2022 11:08:10 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A28C8BC1A for ; Fri, 4 Nov 2022 08:08:09 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id fz10so3195432qtb.3 for ; Fri, 04 Nov 2022 08:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JwRFU1y3EfXp9NwfKHJKDTZzTorKYkXOQOScKexSK2s=; b=N17D5A5+9jSMMCIRJo9nOYaW2EOVWnYsYjcQEdCs2HipPjL04GztoZIFUdoLImjxcx YWT0qkQ61KZDBh6kF0Ffp3iSg/X3aQSV/R93MF56XvTuYLHFJQkuO6D1jva6zo3Gyxfb s19rlLsB7tsMrvt3B+npYfsnQNWtHiDfTjV26taT59vOhpWgrNg+Obgne8Fq2bMpoLdK xqclqtyEkY1hX3OQFaxsfxxAIrXbtGSYXPO7I2UTAuiovBwzOKYP3DvHizak3/qDYfE1 JBGSFqb77qeBNW02sezuWh0jHVNZmWJ9BuwC/5oymvChnUBbczRiAZ7y15bu6z1d8kHW wZFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JwRFU1y3EfXp9NwfKHJKDTZzTorKYkXOQOScKexSK2s=; b=oCqglMUtYs83RIDLlRdiDErh/VXfkeAZSdmVjF7Djqu742djBKdcnfC9AsobmaygMR 4nTi1AMkKOUga+bIpOYmwXXkkfyI/8TLQyr2GAg87g7+dvIbudcehF+Ddf/PAi1vwBPh j0Mnp8C0pvnQXCdk6xi/6EVNMad111c2yFJ/mbz8A/2nds4wAL9Ww0SFh4Oew6HXYXuI /WEU2XnTBpntCfNaK6C78GhnJn6we7iuA4woaYhcVg95aBW072OgRykQbzkLbs9Mr4mq znAVf+GEyx+yH0UkmyOkrtO8aKOcPOTP2VVvL8Q7VNKC4DqRPryXJyUuAQj2dWXO8rIB CXwg== X-Gm-Message-State: ACrzQf3MwqZn7LMhnvwpXKl0R+f3x1LTvaGh9QoWbhjUFv2kbNeTOylF YsbrYlBys3+HzmAjUoo8VtZXJA== X-Received: by 2002:a05:622a:83:b0:3a4:ee89:1288 with SMTP id o3-20020a05622a008300b003a4ee891288mr298499qtw.512.1667574488795; Fri, 04 Nov 2022 08:08:08 -0700 (PDT) Received: from ?IPV6:2601:586:5000:570:aad6:acd8:4ed9:299b? ([2601:586:5000:570:aad6:acd8:4ed9:299b]) by smtp.gmail.com with ESMTPSA id u5-20020a05620a0c4500b006fa22f0494bsm3043977qki.117.2022.11.04.08.08.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Nov 2022 08:08:08 -0700 (PDT) Message-ID: <3bdb7b04-27a2-8d50-b96a-76ad914a0988@linaro.org> Date: Fri, 4 Nov 2022 11:08:07 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH net-next v7 5/5] ARM: dts: qcom: ipq4019: Add description for the IPQESS Ethernet controller Content-Language: en-US To: Vladimir Oltean Cc: Maxime Chevallier , "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 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> From: Krzysztof Kozlowski In-Reply-To: <20221104143250.6qjkphkhrycp75rv@skbuf> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 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... Best regards, Krzysztof