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 94A26C6FD1F for ; Sun, 12 Mar 2023 09:04:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229543AbjCLJES (ORCPT ); Sun, 12 Mar 2023 05:04:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjCLJEQ (ORCPT ); Sun, 12 Mar 2023 05:04:16 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0044F38B67; Sun, 12 Mar 2023 01:04:14 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id l7-20020a05600c1d0700b003eb5e6d906bso5975172wms.5; Sun, 12 Mar 2023 01:04:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678611853; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=Pc80kOGlqxH4dxS+XiPVwGBzRY6XRSb/pMTBjXDBKDE=; b=C3cg//7XD2AcK5g+5oCgxoHKpG4SvHhXCR6v3qVBpiEF+WUBvq8ZZ5tLZALnAauFJj rEjcj8NQdRwYA4ux+JtDErrDB5Nzgzw/AjFO7u0h0p6bfBrcaoPow6njYj1Dpibayb5/ rgQXZOJX2QpGVTOFfuhNc4VViO3V+jQGWDutKXSO3z29+LOIX7NHJe8BgWUeV0Qk+DSk mMlP6cSn2QTc59qxxyX991VOGeYMydMOolYIb9WD2htJwDY+uEmUa0Eg8folOgr2R58c RDylORvHuf3pHLcGdHNCl4UQ7gXNtsoP/5FQmSl+eZlfQ7tij9W7fxrqeMU92uRl/3o4 YRng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678611853; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Pc80kOGlqxH4dxS+XiPVwGBzRY6XRSb/pMTBjXDBKDE=; b=E5osqA3tpkPOBbBiKi9e9UEKj7Oyvb5Y0D1yPTG76rQU26E0W3elcq0JHsbkXJiFID W4Ns/CqMaZYP4r7cxTfRkuF5YCjEpXZR+XMAj1I9vxY4iPRpWy21jH4tFyjnsDSNYzpb SuP+o2Kcs1T7oEmqHJoMYqTy5y2vMNzCapSC/EsuTXHRQJ0HhkXy+J2Fxe9NQjxtFonY b8D27lEOWlbHmd4WP3w+YypNCuzW1L2LAJv5M+TRbk+i0k76Iqeof6tnl8MYmVbzPDSH w7J6t3zppfBUxEfwfoHzh3/HKAF2XD5XSDccix2WmRvfm98MAKBJygcYOiFgjhYY5wg8 ANKg== X-Gm-Message-State: AO0yUKVMpYxBRsBMMpws+Nh4EwAV4DD1v/IVyt/1yAprLz2j19eElSne VE20AZYzHcBOVTyQqDYFeQA= X-Google-Smtp-Source: AK7set+ky1MP5G4zegthCZnFjMiOBM5971of0IvZsyf8jSOYuUK5Q1+66wGmT3hiJ3eY3UnFWhYJRw== X-Received: by 2002:a05:600c:1d02:b0:3e9:c2f4:8ad4 with SMTP id l2-20020a05600c1d0200b003e9c2f48ad4mr7065700wms.8.1678611853347; Sun, 12 Mar 2023 01:04:13 -0800 (PST) Received: from ?IPv6:2a02:168:6806:0:b020:289a:731d:fbb8? ([2a02:168:6806:0:b020:289a:731d:fbb8]) by smtp.gmail.com with ESMTPSA id p23-20020a1c7417000000b003e11f280b8bsm5233062wmc.44.2023.03.12.01.04.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 01:04:12 -0800 (PST) Message-ID: <0a1ec04fe494fcd8c68d03e4f544d7162c0e4f39.camel@gmail.com> Subject: Re: [PATCH net-next v2 4/6] net: mdio: scan bus based on bus capabilities for C22 and C45 From: Klaus Kudielka To: Andrew Lunn Cc: Michael Walle , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , Matthias Brugger , Bryan Whitehead , UNGLinuxDriver@microchip.com, Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Joel Stanley , Andrew Jeffery , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-aspeed@lists.ozlabs.org, Jesse Brandeburg Date: Sun, 12 Mar 2023 10:04:11 +0100 In-Reply-To: <29ee3cc4-a1d6-4a07-8d90-4b2f26059e7d@lunn.ch> References: <0e10aa8492eadb587949d8744b56fccaabbd183b.camel@gmail.com> <72530e86-9ba9-4a01-9cd2-68835ecae7a0@lunn.ch> <09d65e1ee0679e1e74b4f3a5a4c55bd48332f043.camel@gmail.com> <70f5bca0-322c-4bae-b880-742e56365abe@lunn.ch> <10da10caea22a8f5da8f1779df3e13b948e8a363.camel@gmail.com> <4abd56aa-5b9f-4e16-b0ca-11989bb8c764@lunn.ch> <2f64385a350359c5755eb4d2479e2efef7a96216.camel@gmail.com> <29ee3cc4-a1d6-4a07-8d90-4b2f26059e7d@lunn.ch> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2023-03-12 at 03:53 +0100, Andrew Lunn wrote: > >=20 > > What you are proposing here would not show any improvement on the > > Omnia, as only the 6 ports would be scanned - right?=20 >=20 > Correct. But their also should not of been any noticeable slow down, > because there should not be any additional scanning when everything is > described in DT. And the move of the MDIO bus registration from probe > to setup should actually make it faster than before. >=20 But then, why *do* I see such a big difference on the Omnia? mdiobus_scan_bus_c45() takes: ~2.7 seconds without phy_mask patch ~0.2 seconds with phy_mask patch (It's not a big deal, but somehow strange) Regards, Klaus PS: There was another open question: How long does the first unsuccessful mv88e6xxx_probe() take, when calling mv88e6xxx_mdios_register() from mv88e6xxx_setup()? I would say "negligible": [ 0.194414] mv88e6085 f1072004.mdio-mii:10: *** mv88e6xxx_probe call *** [ 0.194739] mv88e6085 f1072004.mdio-mii:10: switch 0x1760 detected: Marv= ell 88E6176, revision 1 [ 0.208163] mv88e6085 f1072004.mdio-mii:10: *** mv88e6xxx_probe return -= 517 ***