Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1461636pxb; Wed, 10 Feb 2021 08:51:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVdm3iJsto4sGz2v02fnX9xgLP9567iN3raVV5OkVgdUwPVf8aykN6HJs1BmQx80H2AxhG X-Received: by 2002:a17:907:1b06:: with SMTP id mp6mr3830430ejc.408.1612975860048; Wed, 10 Feb 2021 08:51:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612975860; cv=none; d=google.com; s=arc-20160816; b=CcHntPOpgl2hrdM79FS8MmbhjA8emlCtvXQxdfEPJgIPOyPr4oE5vxKMdXJ+ADK/tt MVKMqOE6xNO72GxCQcJ2cvJekynNblRdeDC9s3f90AkVar8FG8TRv93lgLIPlrkSKYFx YDIh+xUCWDQJy4v22QfSA+61yEqUp9uJ0Fg3KDpRFlCedeXuX/z/uHNpVmlcxT95hkTU tqzvA/22KSjbweb9FIakeV1zBdNj7ygDZ+286wPORW7epgLmxrnKAfkPRjdCqmf5RwRj DtnL7sk6DKWS2RBhudoSZ0wdWxp/SUQsbcothlw0meE9YImmlL0gffPLUCVY+uhYtaZL p4bw== 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; bh=KLCCvYf8pj45ma/vnmrWGW6KBM3PQzu7ZrdNf9f9kjA=; b=MByO6SLv9Qxz9a6jfMEzoMEX4yfVxFKWcJQa+vCcQDv77xeCe7HVqhPhdRSPSRjIl0 CtTdAUE2g2uhWcgmq79pRcW1TcRDVcR/jXOQ2rY7dHpa1xpbzgEai2IYUhI0mo9zJWUN nGOW91cSFWdX//ysP/V5/fp/fT47VvRgfXGV/jZtJlBkd0UXGzwjw7xu+j9JwomztzPn TjK6otarZ3KdP36dG0yvJtsCyEezRC16ol6uy+Ibv6Iq80zNg/pAPuHS84r+HhL9lmdO 69De661FT5QXmSaYetiDSAPkQiWSvXnN6m7BTvqCEaB6u3uxTBrV8h2JMP0/o1RV2/4N NGag== ARC-Authentication-Results: i=1; mx.google.com; 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 i1si1579195edn.588.2021.02.10.08.50.35; Wed, 10 Feb 2021 08:51:00 -0800 (PST) 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; 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 S232539AbhBJQtB (ORCPT + 99 others); Wed, 10 Feb 2021 11:49:01 -0500 Received: from mail.baikalelectronics.com ([87.245.175.226]:34650 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232974AbhBJQsO (ORCPT ); Wed, 10 Feb 2021 11:48:14 -0500 Date: Wed, 10 Feb 2021 19:47:20 +0300 From: Serge Semin To: Russell King - ARM Linux admin CC: Serge Semin , Heiner Kallweit , Jose Abreu , Andrew Lunn , Joao Pinto , , Alexandre Torgue , , , Alexey Malahov , Jose Abreu , Pavel Parkhomenko , Maxime Coquelin , Jakub Kicinski , Giuseppe Cavallaro , Vyacheslav Mitrofanov , "David S. Miller" , Subject: Re: [PATCH 01/20] net: phy: realtek: Fix events detection failure in LPI mode Message-ID: <20210210164720.migzigazyqsuxwc6@mobilestation> References: <20210208140341.9271-1-Sergey.Semin@baikalelectronics.ru> <20210208140341.9271-2-Sergey.Semin@baikalelectronics.ru> <8300d9ca-b877-860f-a975-731d6d3a93a5@gmail.com> <20210209101528.3lf47ouaedfgq74n@mobilestation> <20210209105646.GP1463@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210209105646.GP1463@shell.armlinux.org.uk> X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 09, 2021 at 10:56:46AM +0000, Russell King - ARM Linux admin wrote: > On Tue, Feb 09, 2021 at 11:37:29AM +0100, Heiner Kallweit wrote: > > Right, adding something like a genphy_{read,write}_mmd() doesn't make > > too much sense for now. What I meant is just exporting mmd_phy_indirect(). > > Then you don't have to open-code the first three steps of a mmd read/write. > > And it requires no additional code in phylib. > > ... but at the cost that the compiler can no longer inline that code, > as I mentioned in my previous reply. (However, the cost of the accesses > will be higher.) On the plus side, less I-cache footprint, and smaller > kernel code. Just to note mmd_phy_indirect() isn't defined with inline specifier, but just as static and it's used twice in the drivers/net/phy/phy-core.c unit. So most likely the compiler won't inline the function code in there. Anyway it's up to the PHY library maintainers to decide. Please settle the issue with Heiner and Andrew then. I am ok with both solutions and will do as you decide. -Sergey > > -- > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ > FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!