Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1956295rdb; Thu, 7 Dec 2023 13:44:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEK/9QaneVIRCTvbO3JEaPNxiugfDh0mwgOM1bNemZo+8YWKrBJVTf8E5knaJxG0yDyDkh0 X-Received: by 2002:aa7:9e87:0:b0:6ce:6bd5:b943 with SMTP id p7-20020aa79e87000000b006ce6bd5b943mr2696567pfq.11.1701985441319; Thu, 07 Dec 2023 13:44:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701985441; cv=none; d=google.com; s=arc-20160816; b=A8Z9wB+tzjscaAvBorgrB0nTl1WwZmfNZYQdCrjGhd8fF1eNwOwK2AS2pYMN/UDdeu kPo8kqoB5JrZt63kK28Kx6jCnj9xp5S7Rn7Dj8Mh+Tt9sxNyypfFRW6JplNT/q1dsOif GxK9e2Yj7DxE0V3+vi43Q49Sdw9k5AOy/j1lxMvGs53J1EoVAsHStGLH7glxgVpNkYMh 3ryGQ2PdmT1isfFFI/Yq51EmhpWy7X8H1beHoJUr3OuXbLpuVWLZVHM4rfHIbc3PYsaj gEuNyxkCqGJcmW2919WAFA5+OcksD1+XWJV4kVulpGbmzTQPHbJMkhRbLVY6qkG+5OM+ +z3g== 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=8OvmBG1BbR/bHyNih1YR4dH1zldxx7EatEh9gKyCn3k=; fh=9E8n55BilXOQC0AR//CJQ9rU1RICdG0DsmpTdR9M0Kg=; b=I4mG8QwTPvildPefqxVpPaqLSpOuDF0KNzoyehuXrzPLoMdhnvkA+LWRxQa2W+m7oG +9LdJnkjVazxdfzggg3VDk4ZbrcB9HQjNmpG4igFakC4rmy5q5aLJtKDUb8NcsdhOWRe LHvrYz2u/1VKL1aGJyFkd3D/+00waA4gPbn/Ecfa200zVlL1yUvEBiivJ0y3sKsEbChX dkpnzcOpc9MC8ueihjYWybvRCEUkqIWMRaFxNSZDd+5e0WPka2kBH51eyP70qVkXA5BX d+ilOnV8JbyUW+7E7HZQ+uixR20zWswE0rX/6kdTsGAH02qJ/RH6YHlu+MmKLhAlelS7 mQTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=W0la2bgT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id y24-20020a634b18000000b005c215b317e9si318770pga.478.2023.12.07.13.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 13:44:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=W0la2bgT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id BFE5B81603B7; Thu, 7 Dec 2023 13:43:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235303AbjLGVnp (ORCPT + 99 others); Thu, 7 Dec 2023 16:43:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235607AbjLGVnY (ORCPT ); Thu, 7 Dec 2023 16:43:24 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BCD56A7E; Thu, 7 Dec 2023 13:30:44 -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=8OvmBG1BbR/bHyNih1YR4dH1zldxx7EatEh9gKyCn3k=; b=W0la2bgTJsrmJjTtn/9/EBX5W1 G5mWQDTF2TQkuG9W0WswYE6as9kBIlUYP1DiJ7vdkqBMFMFlI70X2zViRx1u+34aMaQdR7zD2kJU5 lWgBhSiW28BFCD6A2Z3txUSGyw9yjASO3Oc+U2SvpWhFrnkDUnIr403116fEideov2oc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rBLwt-002MAB-2H; Thu, 07 Dec 2023 22:30:23 +0100 Date: Thu, 7 Dec 2023 22:30:23 +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 Subject: Re: [PATCH net-next v2] net: stmmac: don't create a MDIO bus if unnecessary Message-ID: 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: <20231206-stmmac-no-mdio-node-v2-1-333cae49b1ca@redhat.com> 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 07 Dec 2023 13:43:58 -0800 (PST) On Wed, Dec 06, 2023 at 05:46:09PM -0600, Andrew Halaney wrote: > The stmmac_dt_phy() function, which parses the devicetree node of the > MAC and ultimately causes MDIO bus allocation, misinterprets what > fixed-link means in relation to the MAC's MDIO bus. This results in > a MDIO bus being created in situations it need not be. Please extend that with something like.... This is bad, because .... Most 'clean' driver unconditionally create the MDIO bus. But stmmac is not that clean, and has to keep backwards compatibility to some old usage. I'm just wondering what this patch actually brings us, and is it worth it. Is it fixing a real bug, or just an optimisation? Andrew