Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2329254rdb; Fri, 8 Dec 2023 05:16:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKx2c0+ahpDtx6wBLa6y+ds6SnPLMh4lTMgkHi/wRPoA1K58mHLQmfbDhuH7OnDUhaxwUG X-Received: by 2002:a05:6a20:4308:b0:18f:97c:ba03 with SMTP id h8-20020a056a20430800b0018f097cba03mr3900640pzk.93.1702041401845; Fri, 08 Dec 2023 05:16:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702041401; cv=none; d=google.com; s=arc-20160816; b=pd+w7JQprjtVF3EvgjW4ZifZlX1/LFLzLtJUTEAnxNZNfCYih9n+G5FdlEktf2sEvt fcJ7ZqBA3LtO6d/shLCn0x4yeE9JNySUJvC8sXYYRWp8qVp3nR8f8j2kL1sYCMAUUEUj FthM3ia7S3F271fIOV0tqXRVzpd6UOYYwV6PlYyr6Uyc/3QUUzsagk7TcLP1eiD5MP5x GfKQgYx0zAec24GqFtZ2mqgbIVJJz3rPHCnjyXBfxJ1hvDEr5XV7ldIUwud/uNNsZzGB aSbzDCnXB8wgGJ9RavJF+/IAVKcEIdUXI19bZKSxeDory1rG7VWy2f4KlYEEo0Da5aFy 9sQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZyIwn9UadV4oPIAt3Iw42rESNqNPVByooLrrQQomUoM=; fh=by24GWiMc5Hx50nNjfJuSB7s97DdZa6GkautqgTrJWQ=; b=rKOw+R32jFyQCOMcnIF9POVpZlmsrKn6O11IGLw76ZBWvYUpwLm0+/oUVPpr1X3L5A 900iOlc/hKjizC1gitlEQWQ5y8TBkdK1wwag/Am4WrEG54JQUh02y16mM3EnDChY6+KQ j4je2kDTHwwzO/1Ury+zpGpPbbz6f1SYAywYqfYK02vCzRMMoizQdTLneycdq7jb9ZoO vOZSOn6D6qDYYJZakBij0rYW5pzcxX4FlCwI7iyoVnKrbSZWqYJl+SeLoA2MxPK4U9YH 1g3GcfOcnTQ4XzRymORiSHQCyT7BLhJHGhvhkcYcska7YUOMy/I1ljP2TrgPeJovZq38 FqVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ger+sbf5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id o2-20020a1709026b0200b001d087d08161si1588402plk.32.2023.12.08.05.16.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 05:16:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ger+sbf5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 3C7B880765C3; Fri, 8 Dec 2023 05:15:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233560AbjLHNOt (ORCPT + 99 others); Fri, 8 Dec 2023 08:14:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233499AbjLHNOs (ORCPT ); Fri, 8 Dec 2023 08:14:48 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B42ED54; Fri, 8 Dec 2023 05:14:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=ZyIwn9UadV4oPIAt3Iw42rESNqNPVByooLrrQQomUoM=; b=ger+sbf5lz0mDcCnoWzUZY5VJZ 331/0+XOXQ3TDJx6pxgjZkvNXuIOKiSXl0bnfVoKevRgfS8+oOwPYLaOzzBF9oSFaSCUI4q7beqp6 xaWGCzgV5R4wM4L4ANuvF+WoOTV6mxqDlrWxirqTZbivw+YSflI8rsYmr9IKKRdU3oKw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rBagj-002PvD-33; Fri, 08 Dec 2023 14:14:41 +0100 Date: Fri, 8 Dec 2023 14:14:41 +0100 From: Andrew Lunn To: Andrew Halaney Cc: Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Serge Semin Subject: Re: [PATCH net-next v2] net: stmmac: don't create a MDIO bus if unnecessary Message-ID: <9eddb32d-c798-4e1b-b0ea-c44d31cc29bf@lunn.ch> References: <20231206-stmmac-no-mdio-node-v2-1-333cae49b1ca@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 08 Dec 2023 05:15:07 -0800 (PST) > I know you said the standard is to make the MDIO bus unconditionally, but > to me that feels like a waste, and describing say an empty MDIO bus > (which would set the phy_mask for us eventually and not scan a > bunch of phys, untested but I think that would work) seems like a bad > description in the devicetree (I could definitely see describing an > empty MDIO bus getting NACKed, but that's a guess). DT describes the hardware. The MDIO bus master exists. So typically the SoC .dtsi file would include it in the Ethernet node. At the SoC level it is empty, unless there is an integrated PHY in the SoC. The board .dts file then adds any PHYs to the node which the board actually has. So i doubt adding an empty MDIO node to the SoC .dtsi file will get NACKed, it correctly describes the hardware. Andrew