Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp427451rdb; Sat, 17 Feb 2024 15:49:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVC9cTUO71iTbt/rpoZrhCqQF7giNbe4znzipTvu0f+aR/F0x9Cnvtt7qkSRQKQj+fGWYPDpr3TmJzM6T3Kw3ne461i4bnzIBRhSAmGFw== X-Google-Smtp-Source: AGHT+IHciEpXK367+ifHzWrdYWxxnAd8G5f0KhS20hK/hdXEEp19jissGcUzFJo94WHo7JY2mHA4 X-Received: by 2002:a17:906:4ec8:b0:a3d:f14d:e6fa with SMTP id i8-20020a1709064ec800b00a3df14de6famr3582611ejv.30.1708213749655; Sat, 17 Feb 2024 15:49:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708213749; cv=pass; d=google.com; s=arc-20160816; b=Llwq7uSCqI0ZZSUHAZeEuGbagWpsGzJK+kXEo5UtVCdNGxJoUdEzFEEEECYfrZs08d WabqTntwNwPxVfV4luM629AsKtTgNxQsMCnNcTub8ezN1WvaNV0BMdXIed7HSgQJe8L/ SZwy39muKMA8LhUHJT7bbArB8AbrLHLAj1v5HTWnBG29huNCcl1STfs9TtMIjjHK11va YJHP9Q7F2ZeaajiYG/ThfAPNS27A7NnNXiH8lQwW6fGA4crht0EfccvZjNP2reCGGJS9 hCE1ToC4hGMqB3GiKvImxi3Ayi/BZHLr10KwQ/TuIAADL6frRryH1ti3YX8atKw90uMb HvVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FMxvckYePbS1jnoZ5oG6Cm4EypY4Dw/pbZjxC0ZP4yU=; fh=rrcJhiqrylTJwiglrmpY6uZDTsfkwBoH3KRRz8RAtxA=; b=JUaHs2xuKoRmDk87gJqghK/DYSmcj1yhlK7c5RXHFVSxnqlsr/pHy8uExFhdyip7d7 pH2bAgM5QM8pFqOo8//9rTuA6nXHHVaH4blZBvErXr1dyE+JRM7hZSV4KZHvhSv1qP8K MWtokxEPia4IXk48qWT+FLKE1zYPZavQRX1g/IlZo/dBtfjiqw6XAJxdXEa0k9yFnd+n 4XkgBz4tOgangn1dPOKCxWJlTvFN+VNMaUqNHLJ2mVURpbqbXyKXMYTWq6suauYBvNkC uXn1I2qHotyifcC0s5RIg2XimUjwJhVgl5Q3H3vf3Q1CbjvUnhxIAD2lUyJyNXeBE9R2 OTpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=CPzKeDAm; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-70119-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70119-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z13-20020a170906434d00b00a3dec96d61fsi1195927ejm.440.2024.02.17.15.49.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 15:49:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70119-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=CPzKeDAm; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-70119-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70119-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5F0E91F21E11 for ; Sat, 17 Feb 2024 23:49:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90C9B8005F; Sat, 17 Feb 2024 23:48:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="CPzKeDAm" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8EDB14A86; Sat, 17 Feb 2024 23:48:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708213734; cv=none; b=uTSNVvhH67K+uli1ofBBtQC3BLBQXFp1Y6C/nXXz3irFXqpU2gs48s2hS3V1ugZ1tlipvFeQ5NnC3X0g9dPtkywsMJisl/lXRD+gAyuLpGhrd8838LPeMZia7NWrlsJFg7kLUFAR7U8sLQPjYpg3r7qivO1ocyHWkBVatB/Fmjg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708213734; c=relaxed/simple; bh=1g5oK+yNBXpoPw5N07d7muSFkpE6uSYQn/NJNDkMbAg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JVfeuBnyn9KRrD98uRK9whytyn1oHL99zffE/3LEBnrYFy0Y1/ow71p0SCbpFZ32ANJFBD3YJxC17v6Ma1HK0J+dDCv1cuMOvAo/m06ZHqbw02LtfRBEmKhePPSQ1MEosgnXXZ7wOj1QRrabC7oojC8qQW0A9nsWVj39xY9WpB8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=CPzKeDAm; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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=FMxvckYePbS1jnoZ5oG6Cm4EypY4Dw/pbZjxC0ZP4yU=; b=CPzKeDAmryQgULRVfeg9ZXkTij sV5K4ExtKLQtMWkXBHzzTZujVOaGPUXXKbK1euewjW9lDjsFSr2E4PYT7u1SBA71pkRVI3/BqoQ8P Yt5mKJuEZUeqa8K0hBbIQZ8PE6rcAY9Yy7FYlnkXwYiyuiFMNbNKcJjI+wuUfEVpT7gA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rbUPw-0085vH-Pp; Sun, 18 Feb 2024 00:48:24 +0100 Date: Sun, 18 Feb 2024 00:48:24 +0100 From: Andrew Lunn To: Christian Marangi Cc: Michael Hennerich , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , Richard Cochran , Marek =?iso-8859-1?Q?Beh=FAn?= , Daniel Golle , Qingfang Deng , SkyLake Huang , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Arun Ramadoss , UNGLinuxDriver@microchip.com, Peter Geis , Frank , Xu Liang , Piergiorgio Beruto , Andrei Botila , Bjorn Andersson , Konrad Dybcio , Heiko Stuebner , Michal Simek , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Matthias Brugger , AngeloGioacchino Del Regno , Robert Marko , "Russell King (Oracle)" , Vladimir Oltean , David Epping , Harini Katakam , Simon Horman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, rust-for-linux@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [net-next RFC PATCH 0/3] net: phy: detach PHY driver OPs from phy_driver struct Message-ID: References: <20240217194116.8565-1-ansuelsmth@gmail.com> <65d140fb.5d0a0220.81be3.7138@mx.google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <65d140fb.5d0a0220.81be3.7138@mx.google.com> > Yes, it was done to limit the patch delta, if I had to account for the > tab for each new section we would be in the order of 2000+ changes I > think. > > > > 64 files changed, 737 insertions(+), 291 deletions(-) > > > > These statistics are not good. If you had deleted more lines than you > > added, then maybe it might be an O.K. idea. > > > > Sometimes KISS is best. > > > > Well IMHO these stats are a bit flawed, the additional code is really > just extra check if ops is defined and the new .ops variable in each > phy_driver. > > If you check patch 2 and 3 you can already see some code is removed. Yes, the problem is, it probably needs another 50 patches to remove all the duplication. I have to question, is that really going to happen? Are you going to keep working on this until every driver has its duplicates removed? It probably needs some tooling to help. Something which can decode the object file, and tell you which ops structures are identical. That can then guide you when editing all the PHY drivers. Andrew