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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37CFEC4167B for ; Fri, 8 Dec 2023 13:14:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573791AbjLHNOu (ORCPT ); Fri, 8 Dec 2023 08:14:50 -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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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