Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4858760pxb; Tue, 2 Nov 2021 17:34:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3kBvC6wnH15A8sCoTzHuSuc0zUZeb1lOOPPmMhz9FUG4t1eYuMwnDCfOFI9CaVO3tOvz4 X-Received: by 2002:a05:6402:12c9:: with SMTP id k9mr39221707edx.364.1635899683080; Tue, 02 Nov 2021 17:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635899683; cv=none; d=google.com; s=arc-20160816; b=mc+g5w2r3+ErYiVcUxTwnA3Fxd1xomWD0Wq0O5u5LaEkUtJAJsJrb7ZsjeNgxgDU6z JuQYwOfHn0pUxwSvgQ2WP0RKba0PTjRoWUif0MWLw8HsLc/9yCuEvz1I3nCW1wwhy/Gs p2o2zs5HsuDxZuvC10tOrAGyhOo73dO6n7c48v0SB8CI1KnTMfA3NQe+oCrk1WH2jC8x pa4G5DtX8B8mvJMPnqQzcaHuH3x1h1IH5Wm4QrCAxICCM7gGiDCVRrDcFidh+l2esjvr GQUX0y3JYKr2Fl0Bx4xRA/ElbPtrcrjYRs3Fv8gPrF8wtDu4wBjETww6CjQtTxOFCklq d9uQ== 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=TOx+tLGxVuHGdt7/IA8a5LYgGnGV+ES3Sguz6hIKwEs=; b=HIv8IkphOY8OOO+WaGqfiAv6h79zhbHJNgIJcjmGaOVV/y1l3Reohe5bqXhedFCee6 1WeHHsmSknT+FKM5MNg2fdrU8UodgAThQnGFGkYbZ3BPG6cMAe2J6pFCv/GC0YZLaS7B Q7VBLvOTfzBpsS8C+uHky4zJLxoqaFDD5EFhDDSXkgQYgS67cNf/jvut7QRJVK4EcVpc oYJGb0S8jALjylm8I/gUptnmrNOWP7P4Lksdc0/f0RN0mRhj8x7Bw0aeSH1Z+I8fiM19 xKoKm6VBRy7HitUHVmLa5AVL1JfKAArTQsXyWjRSq7yL4ZBguJoKgxNC2pY+Ex64K7WT acMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=gxQ2AV+d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 28si756469ejb.18.2021.11.02.17.34.02; Tue, 02 Nov 2021 17:34:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=gxQ2AV+d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231776AbhKCAaQ (ORCPT + 99 others); Tue, 2 Nov 2021 20:30:16 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:44248 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbhKCAaP (ORCPT ); Tue, 2 Nov 2021 20:30:15 -0400 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=TOx+tLGxVuHGdt7/IA8a5LYgGnGV+ES3Sguz6hIKwEs=; b=gxQ2AV+dHEkZ8dgo5D2vUdaZes ub5xPiUZXwhBQMzEEfC4yjTc/4tX7cFj7XK3n411iYeJggapt5FedkZC+5vGLzTqR5FbO+DSh10Ed 8M4HQ9k+pdIfPYkLlk/haNvWr4eQPY9PMxgkWjgLBmGruKfEl294kLOf385StXWUsoik=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mi47n-00CS64-5x; Wed, 03 Nov 2021 01:27:31 +0100 Date: Wed, 3 Nov 2021 01:27:31 +0100 From: Andrew Lunn To: Grygorii Strashko Cc: "Russell King (Oracle)" , "David S. Miller" , netdev@vger.kernel.org, Jakub Kicinski , Heiner Kallweit , Florian Fainelli , linux-kernel@vger.kernel.org, Vignesh Raghavendra Subject: Re: [RFC PATCH] net: phy/mdio: enable mmd indirect access through phy_mii_ioctl() Message-ID: References: <828e2d69-be15-fe69-48d8-9cfc29c4e76e@ti.com> <8d24c421-064c-9fee-577a-cbbf089cdf33@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8d24c421-064c-9fee-577a-cbbf089cdf33@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > What i find interesting is that you and the other resent requester are > > using the same user space tool. If you implement C45 over C22 in that > > tool, you get your solution, and it will work for older kernels as > > well. Also, given the diverse implementations of this IOTCL, it > > probably works for more drivers than just those using phy_mii_ioctl(). > > Do you mean change uapi, like > add mdio_phy_id_is_c45_over_c22() and > flag #define MDIO_PHY_ID_C45_OVER_C22 0x4000? No, i mean user space implements C45 over C22. Make phytool write MII_MMD_CTRL and MII_MMD_DATA to perform a C45 over C22. Andrew