Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2232657pxp; Mon, 21 Mar 2022 14:30:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2H81snqS+3jFT4bWT9ICWQ7DYkb6g5r3tSB/sOyLXXdSsCFeTLvgltTTfIXUJkdqB3/9r X-Received: by 2002:a17:90b:4a02:b0:1c6:c1a1:d65c with SMTP id kk2-20020a17090b4a0200b001c6c1a1d65cmr1166959pjb.97.1647898223941; Mon, 21 Mar 2022 14:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647898223; cv=none; d=google.com; s=arc-20160816; b=MPgKfns0N6WA6XI/995waolei9TdE901cVIInZ9BNi3OhG1BenV+CIyz13WzmbUUUB j61LEJ0DRszbaXzND0S3ws0BUIJdGqQAVxviiJ6xXQT72YmdGk5uuZJuiFZQKYtyYKj9 xdLMRvPRDkiBNleV3gSqV/ubkV6c7fIFLx2pTuQOecm7nrQjH9cwebOPR32ritSgFXQt Q1m/8of//37RJEyeEzVrtrK7tOS75eJXuEiqf0jBaXJyo/GiOc7I7A1QuTBixfarghmv 5yTMFBSH0O1Dx3IWGex6rAIexmgUlTP5rXEQok9L+A+L0bh/G5qWg8nPe6J6LVzbzK8x KyAA== 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=/ynewyjtxXortQGTIg9iF+Pmp05zFVKl5vdtQZUzoGE=; b=QspQpsR06OnurqyyTwpdSptA/apJOrB5eSLFKybZPpRWcNpvajiMu3XZbPN5ybjPp4 JCutk94E9YAYE02xzTSOr+fRKHwWUhUZFVZzR5hrYF4oqe7dN0fKuoGyVhqowyuvezkO Gqsdq10iutNdFZtOC/bef0JXyoyr0qwygg1qPrfyHv+9eorB44OrKCMk6QFDETmkMIoT EGeOSSyxIFfE5oGGRKy6P0tqE+H2h80qo3XzMG5G5g9QRdvyi8dDyvFe49CMX4dGCBkQ Xt9nsPB1aV+fDTl5Eym87GIXYxWr03L3P3DrTStmV62VuwZB5DpxXLIZl0oS+wQJodwE y/KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=OY1EUol2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k6-20020a63f006000000b003816043f0cdsi12966530pgh.706.2022.03.21.14.30.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 14:30:23 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=OY1EUol2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4BE5A1C392D; Mon, 21 Mar 2022 14:10:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353418AbiCUUiD (ORCPT + 99 others); Mon, 21 Mar 2022 16:38:03 -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: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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