Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp218714pxb; Sat, 20 Feb 2021 01:08:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYUc4rtwkUIOQui3kOf7XgIBO9v65m6TANDNiP8o3wnA+ktcX+PEipE1KznIEYmtoR/Afh X-Received: by 2002:a50:bf4a:: with SMTP id g10mr12940620edk.201.1613812089528; Sat, 20 Feb 2021 01:08:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613812089; cv=none; d=google.com; s=arc-20160816; b=GzNYF4ixGegW5pSHYpCu8rYI7HZHq2JsThSpAEAmff3c/avEeY8rQcMp8iVzaRi0ne g2kNGELO+iFuhLJFYdCU9CCfv/TXA8Q+Y6toKYxNKc/I0jfK+QM6Nd/X4jEgKpPSc0bO l1vgte1QFHKQGsanaBUIkOcf1UP7OSXggO2io+QMSFMG83Fb5VL2wnD9C9hUAKZYbzIf ltUG9a4QJGfbCp7GCchBZkTg7dJdz4ZaiRLo24RUp+Ehbak1XiAosjKPSXBzrz2vcomp ktzrvVF7lg6SSg75659Ylx8A6+1Ybgt7HwuBoYiYAtA6qBN/YZ8PpmJK4ghIh0ywTatI FJcA== 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=cX6xsQ7pyPONrTJpU7Fru3pbWF3tozmJMAubBuWPY4o=; b=kUqZ1cA9Scgu6G6lV+bV0sbaC+nOJMgQVnycHveRnTWRPBobZvA9dT8OjLwJ/EJ+1y V9WeCIhpsiiWJvysH2w7BK7h/ES5+nyNNl9BC0JwhF2Ml11KeJSm8WVJ/1iGeMcISz4b TszBIVr6CO3e+HquTRTefzXq483KLXOw75FDp1ocRLMJWYidO6pXUaX8kviNN2djrsp4 nEZBUdeLkX8mGuEV0VRxLUrjIxoiWpwNJR9hBL6rxnjHh9xMdFAJ4JKwSLOW7GydZ+gP RinWeMUo5trsVHRYoQ4+54WI6bx96hBCJEVVtmOyRzgR06ikZRIVxcQk9UAzvCFL0MVv D0qQ== 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 qt10si8313502ejb.462.2021.02.20.01.07.47; Sat, 20 Feb 2021 01:08:09 -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 S229817AbhBTJFI (ORCPT + 99 others); Sat, 20 Feb 2021 04:05:08 -0500 Received: from mail.baikalelectronics.com ([87.245.175.226]:56342 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbhBTJDy (ORCPT ); Sat, 20 Feb 2021 04:03:54 -0500 Date: Sat, 20 Feb 2021 12:02:48 +0300 From: Serge Semin To: Russell King - ARM Linux admin , Heiner Kallweit , Andrew Lunn CC: Serge Semin , Jose Abreu , 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: <20210220090248.oiyonlfucvmgzw6d@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> <20210210164720.migzigazyqsuxwc6@mobilestation> <20210211103941.GW1463@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210211103941.GW1463@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 Thu, Feb 11, 2021 at 10:39:41AM +0000, Russell King - ARM Linux admin wrote: > On Wed, Feb 10, 2021 at 07:47:20PM +0300, Serge Semin wrote: > > 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. > > You can't always tell whether the compiler will inline a static function > or not. Andrew, Heiner, Russell, what is your final decision about this? Shall we export the mmd_phy_indirect() method, implement new genphy_{read,write}_mmd() or just leave the patch as is manually accessing the MMD register in the driver? -Sergey > > > 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. > > FYI, *I* am one of the phylib maintainers. > > -- > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ > FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!