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 CCCEFC54E94 for ; Tue, 24 Jan 2023 21:03:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230461AbjAXVD2 (ORCPT ); Tue, 24 Jan 2023 16:03:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjAXVD1 (ORCPT ); Tue, 24 Jan 2023 16:03:27 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E18BE2685; Tue, 24 Jan 2023 13:03:25 -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=ph/B8CA5XEjvPhXzOrcnAHQMPGq8rPd6A2i264YU/7g=; b=Kuro7FXNmc40mV3DPu/8jZt3Sf mu0L+F+vhjZYc5XULMBMysSHEBuTjO6J8c5ZvYKTnNboBboXezYcGBlqLPwMGEPd0g4mbaEsfNDBM Hl7cahF+dEXdG7EoEt5IIB//bUIPp5epnCWEUYH3VuCCZxHLbFD+oyr0Z/Ae8qGKLS8U=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pKQRg-0033JP-3G; Tue, 24 Jan 2023 22:03:08 +0100 Date: Tue, 24 Jan 2023 22:03:08 +0100 From: Andrew Lunn To: Michael Walle Cc: "Russell King (Oracle)" , Yisen Zhuang , Salil Mehta , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Florian Fainelli , Broadcom internal kernel review list , Heiner Kallweit , Marek =?iso-8859-1?Q?Beh=FAn?= , Xu Liang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 0/5] net: phy: C45-over-C22 access Message-ID: References: <20230120224011.796097-1-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > Btw. for the DT case, it seems we need yet another property > to indicate broken MDIO busses. I would prefer to avoid that. I would suggest you do what i did for the none DT case. First probe using C22 for all devices known in DT. Then call mdiobus_prevent_c45_scan() which will determine if any of the found devices are FUBAR and will break C45. Then do a second probe using C45 and/or C45 over C22 for those devices in DT with the c45 compatible. Andrew