Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp406620rdb; Sat, 17 Feb 2024 14:22:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVlqPeYqeuzElucKnHSlZoBgkFrfuGnPkLQLPtRHWpMonLTaoFyNEMFUaH/Z7gfrVDWAIMkPMDPSKcZw7ai9PkjSsySFaHbilNtyNZDKw== X-Google-Smtp-Source: AGHT+IHhHfcoDooexkKvjwI8oQwQXvoaYdy0btTC3E40LJ+YARd6yllWNvrjEFeR+2dJkk4JJPDI X-Received: by 2002:a17:906:2657:b0:a3e:46f3:ac92 with SMTP id i23-20020a170906265700b00a3e46f3ac92mr670405ejc.21.1708208546377; Sat, 17 Feb 2024 14:22:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708208546; cv=pass; d=google.com; s=arc-20160816; b=JQt/7Aena7zfdG8GglToGKyxs2lYhhL4lIbrAdyTcHOEjRsVeHUMKgyO1AbRCH721S hG30LMAaPF735t+PKU4zWWCszho7Hl2dGpdGDuibi2QHRSHomUpbcw8fgc0mQxNSzuiU Y7buz3FCym8A5J4qGomCtbceL3zjNkScVQV9NbHMaszR6WYKBgivxs3HyU8TKB8HFGQC 7YgQICx/HKyaaApMBP4W1mPCn9LqzO1yora5J6m/fCzuijWboIBuBmIDsEBwzNHB0Nz+ d5NWL3ztHMOAa9/m//YgQ30zCrtWut2vsBsp33AVdR0xU2vQ2Z+3KOG9IPzMMgmrPQMl jC3g== 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=d/y5qpq3uF2po3jkaK8CtNhWm1biK0mglGlG7nCOk+Q=; fh=rrcJhiqrylTJwiglrmpY6uZDTsfkwBoH3KRRz8RAtxA=; b=whdiTzn77YkqvwXSm5tgXAlyX7RfROCS0zxR0fRnqnthm6O4hzcOEojaFhFyVfPmII Np20KSO6Pdl6oHkLqprAyti1T5kGGikRs0EmnSeIL83cI1ua5t6s98RuiWQNzLvCUlJF oO2inYCCoT/o0m9qXlvTXHuuITAWKWWlHUvGX4sjb9obX90+9DmMOYdZJif8jwgF2PZK YxaFwBq7/cPggyKZEwNC8tHcrxDd8/gPSU8HxnCKE3Fp/kqx+yMjWVa6xj/oXP+cZZcc qdjOdJ56u+FGgNnciZbr5j4wu5WNnudwBJ7RXuzUBgS2rZRGLMvHq6693IeZrpjKjkg9 4T1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=IGuZAJv4; 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-70106-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70106-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 n4-20020a1709061d0400b00a3d85a525f5si1207873ejh.634.2024.02.17.14.22.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 14:22:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70106-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=IGuZAJv4; 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-70106-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70106-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 1F74A1F21D09 for ; Sat, 17 Feb 2024 22:22:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89BA680051; Sat, 17 Feb 2024 22:22:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="IGuZAJv4" 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 E18AE7E579; Sat, 17 Feb 2024 22:22:08 +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=1708208530; cv=none; b=EkXle9+ZUY/sbFw1DzSQugopmY5a6urkKKMpFvrrv2AuJVrtuMDHROGkwTme78lVWgJd1UqsZZKQCQEJvGVLeuWphD22PSaso+q58Q4/Ica4NXfUxzjcIbIvAAuFF3zChpfM7AWRZRXBDImfCi2BAxX0zlqiqZ8eaY0hJpKwbWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708208530; c=relaxed/simple; bh=50i9ll5m3n7Dob7+vPwV679xDA+8IF0BSI+30JunILA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dmxFNNcwiyPK3ljHdglv9PlrUlH2Qt1p7kjF45iyEInAglSqExp2uHcn1gEIXkp+hMHMEeUzVZZHPflCi6wzUs0HuE+UJimzTGtgOa8o+ELuSUD76LjX1UPPvASfyXziOIX4f33imJUPSwI67buYo6v9Jpqzn1aqcoq4Mr7zIOQ= 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=IGuZAJv4; 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=d/y5qpq3uF2po3jkaK8CtNhWm1biK0mglGlG7nCOk+Q=; b=IGuZAJv46IilCO1EOeTEdr/OKc Ekt8q/pK20nszsr5XQFOS0VjbUq9e84AIARYog7v8zSxVav9pnVXl/Qsc1FGCRLAka6kjqQx1zysx oN5p07q8ZALxEMPQ0kZHo4sazDApO7BcIzOcHiw/nJ7IQVZqcErgi7xkp7DsrgSE7eR0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rbT44-0085gT-3i; Sat, 17 Feb 2024 23:21:44 +0100 Date: Sat, 17 Feb 2024 23:21:44 +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> 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: <20240217194116.8565-1-ansuelsmth@gmail.com> On Sat, Feb 17, 2024 at 08:41:11PM +0100, Christian Marangi wrote: > Posting as RFC due to the massive change to a fundamental struct. > > While adding some PHY ID for Aquantia, I notice that there is a > big problem with duplicating OPs with each PHY. > > The original idea to prevent this was to use mask on the PHY ID > and identify PHY Family. Problem is that OEM started to use all > kind of PHY ID and this is not doable, hence for PHY that have > the same OPs, we have to duplicate all of them. > > This is present in Aquantia PHY, but is much more present in > other PHY, especially in the BCM7XXX where they use a big macro > for common PHYs. > > To reduce patch delta, I added the additional variable without > adding tabs as this would have resulted in a massive patch. > Also to have patch bisectable, this change has to be in one go > hence I had to use this trick to reduce patch delta. To me, this makes the code look ugly. I also expect many text editors which understand indentation will be unhappy, saying the indentation is wrong. > 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. Andrew