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 44AF0C433F5 for ; Mon, 21 Mar 2022 20:36:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353453AbiCUUiE (ORCPT ); Mon, 21 Mar 2022 16:38:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351883AbiCUUiC (ORCPT ); Mon, 21 Mar 2022 16:38:02 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D865C8908A; Mon, 21 Mar 2022 13:36:22 -0700 (PDT) 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=/ynewyjtxXortQGTIg9iF+Pmp05zFVKl5vdtQZUzoGE=; b=OY1EUol2C5Hj5D6+PFLuswM8Xz /dJs+4ZdrIE/dTZ3R1BNICSGQhf9Zw+UtuNviOuU1/8/Ej4859hyLAjcTPG0Dhm5OZEVeWIiRxKKe d0ydu7ncM1MxIHE067RHnAcwD0zGHkPJyjNhW6rmB+kE95DTLFCs6l3RnerJU8gfCMBg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nWOlJ-00C17E-9x; Mon, 21 Mar 2022 21:36:21 +0100 Date: Mon, 21 Mar 2022 21:36:21 +0100 From: Andrew Lunn To: Michael Walle Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Clause 45 and Clause 22 PHYs on one MDIO bus Message-ID: References: <240354b0a54b37e8b5764773711b8aa3@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: linux-kernel@vger.kernel.org > Actually, it looks like mdiobus_c45_read() is really c45 only and only > used for PHYs which just support c45 and not c45-over-c22 (?). I was > mistaken by the heavy use of the function in phy_device.c. All the > methods in phy-c45.c use phy_*_mmd() functions. Thus it might only be > the mxl-gpy doing something fishy in its probe function. Yes, there is something odd here. You should search back on the mailing list. If i remember correctly, it is something like it responds to both c22 and c45. If it is found via c22, phylib does not set phydev->is_c45, and everything ends up going indirect. So the probe additionally tries to find it via c45? Or something like that. > Nevertheless, I'd still need the opt-out of any c45 access. Otherwise, > if someone will ever implement c45 support for the mdio-mscc-mdio > driver, I'll run in the erratic behavior. Yah, i need to think about that. Are you purely in the DT world, or is ACPI also an option? Maybe extend of_mdiobus_register() to look for a DT property to limit what values probe_capabilities can take? Andrew