Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4558031pxb; Tue, 2 Nov 2021 11:41:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEIdL/jerLHhRr7XVR2WAikOCcq3XDeWRquMiyIqlyxZAk0ZiSlpY4Xw1F8hYdUw/sAVu2 X-Received: by 2002:a05:6402:10cd:: with SMTP id p13mr53040927edu.111.1635878465246; Tue, 02 Nov 2021 11:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635878465; cv=none; d=google.com; s=arc-20160816; b=u1W24KBJicIoNyB98aXr+DdWs3oxwgNZKbCdMAygIdNvFygFoVPyujk0w0f9PxOIa0 Ptx+taztZOMNQLmaGOzBu/QmIy9jhbW2spMHwSaLwQvd/AUA12RfI3nnFfZNtVDmpEqa optYSHy6WW95U7nI8VAjODl10JXJf0sIDUMv9tpYk+Mg2UWIlmp8nhGmSkfqs2a4xgw5 su3FBLJL8NJFpoquzI/LIzWO8tBgUe0bQWXA5kyik6aD2b4B70Ue+tk2/WrS4MfKAodC mu0doqkh2O6nTP+ZgltasIx0VaRyA6L1BJtaLvtaCEk1bNKvxR+maTeSiXxgHs02dL9Q waZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=kahu1RrAQ8a3NUn7pdiksp8ndZsSm/fSJHPMdl9Wqn4=; b=EKOmiO9EigGSyLLA91Eg4IRmkiYC3SRGTG55Eo3c3rKVEXFWiQfKnQBbCLBLL/gSaN pwBjZzQjLfph/v521TgHIgChMspR7wwiZEPKJNyp4OkiS3f9yxSrozXHXHqJCHk9TyO1 9iYpk5//C9Nri9BL0fb/a8OHkS/3WMRWhPaAOc57QJ2yqCVPwuC4yXpf9MyOYl/vu0Cr iHm0HDe2AKP8m8lwFb7J7MOsM5JqMWz0h9xV8GlhabcYMcju9vyIB9QajJ7c26AywihE EoLFrSfqB0hhKq5vB4/h6wapljXaatrxy+cO9kNDmal3rqEVrISTblCI+y9xP+b4BzT6 o80g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=U0eNHkxK; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nb28si33771649ejc.258.2021.11.02.11.40.40; Tue, 02 Nov 2021 11:41:05 -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=@ti.com header.s=ti-com-17Q1 header.b=U0eNHkxK; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235201AbhKBSka (ORCPT + 99 others); Tue, 2 Nov 2021 14:40:30 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:37948 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235253AbhKBSkV (ORCPT ); Tue, 2 Nov 2021 14:40:21 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 1A2IbM7M087989; Tue, 2 Nov 2021 13:37:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1635878242; bh=kahu1RrAQ8a3NUn7pdiksp8ndZsSm/fSJHPMdl9Wqn4=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=U0eNHkxK5PVYpVxJhoYzaZ8E/+nV0czPYsP+4M8rDZiUrcwYa5Fv8ylDS9zM58uzC x8q/CW5tMwpFUlR8ljCO3jr3evn63vETUj2c7o9qjwQ9goIXXQtsvcOAjIeM3LQeoJ f0ED8UomDgld6YMaDf+JzuzGCtSFW4lBix+GWviI= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 1A2IbMMp050537 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 2 Nov 2021 13:37:22 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 2 Nov 2021 13:37:22 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Tue, 2 Nov 2021 13:37:21 -0500 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 1A2IbJDf130527; Tue, 2 Nov 2021 13:37:20 -0500 Subject: Re: [RFC PATCH] net: phy/mdio: enable mmd indirect access through phy_mii_ioctl() To: "Russell King (Oracle)" CC: Andrew Lunn , "David S. Miller" , , Jakub Kicinski , Heiner Kallweit , Florian Fainelli , , Vignesh Raghavendra References: <20211101182859.24073-1-grygorii.strashko@ti.com> From: Grygorii Strashko Message-ID: Date: Tue, 2 Nov 2021 20:37:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Russell, Andrew, Thanks a lot for you comments. On 02/11/2021 19:41, Russell King (Oracle) wrote: > On Tue, Nov 02, 2021 at 07:19:46PM +0200, Grygorii Strashko wrote: >> It would require MDIO bus lock, which is not a solution, >> or some sort of batch processing, like for mmd: >> w reg1 val1 >> w reg2 val2 >> w reg1 val3 >> r reg2 >> >> What Kernel interface do you have in mind? > > That is roughly what I was thinking, but Andrew has basically said no > to it. > >> Sry, but I have to note that demand for this become terribly high, min two pings in months > > Feel free to continue demanding it, but it seems that at least two of > the phylib maintainers are in agreement that providing generic > emulation of C45 accesses in kernel space is just not going to happen. > not ready to give up. One more idea how about mdiobus_get_phy(), so we can search for PHY and if present try to use proper API phy_read/phy_write_mmd? -- Best regards, grygorii