Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7047202rdb; Wed, 3 Jan 2024 02:51:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IH6s2DmJVax1SXmyYKEGCFJFykDlVFnyVhSEV9sMHxlH8CnCiY3pz8dvKaPpvww0NumQ02j X-Received: by 2002:a17:902:db10:b0:1d4:8277:15e0 with SMTP id m16-20020a170902db1000b001d4827715e0mr1213157plx.0.1704279101090; Wed, 03 Jan 2024 02:51:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704279101; cv=none; d=google.com; s=arc-20160816; b=kXFiC9IbRk5XFlVl0fKbHbwQofqFIs90M0B6qOQhV+1l/8rRA95gewCrwf71zTJPHO hQPsFTt8nAkAFmtpmdp3WWSq3y+w9Vppawak6k8T8kADLDpzEFoWzdbEPCgLHMv1t7JL q8Xj1KAcPVshK6leBwuqAB1MkdJ+/pEc5il53iJ6JCii1Ev1j1QSs3R3yVljjkz7ugzG 5KF8rVOHakjZhIwojE468WA0PAw8AgmM2EUjvkgv9Px60FcQaLOfZIGzP7EKGgtjwXJO 6XAqzM/PQ/tAuU5nR3h05Mtn2KO5rdDVIqsfKoAwIdR4dj3sVSdhourIFbKNY3uIpQvJ noEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UsxFTjUw6Zc2yvy6gkvn2mjApUFXVkeXpGQUxAbjitU=; fh=jCNyAxi+daTWSNioFf7NtrvXVRVOjECPtcbY8ZTPyc8=; b=E+k96eDzsq7eGY60AX+OHzRp2qbmR46FXA0wzaT1EORszt9ijver916BT3ilzXa/SP yOPKYsYZbExQly1kxNHGIqy/SxzEpKwpwwov4M4HBm5EGyP2cAzEK+SB10U6XSkC3nl6 YCEsj0d/lIBrD78H+DoK6BS7Qvtu1Q0XzJJgYfg4vPwAQpN67fLyRYJ7Uw1x9ePpJTsC OYtx2HkpY4MaLPBzYnmV33TfP/4aBElsWDiD9yITYXYxlYhp85W0qstYaghrR8YyhdMD 4s/e41vNGRVCKHs9gy42BtctzBsI8H2W1V7+CeelCWDZDh6J8AMFt2StE7IXn9tTwshE o0YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="gpZ/aCjn"; spf=pass (google.com: domain of linux-kernel+bounces-15410-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15410-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r198-20020a632bcf000000b00589fcc39ef1si21258644pgr.365.2024.01.03.02.51.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 02:51:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15410-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="gpZ/aCjn"; spf=pass (google.com: domain of linux-kernel+bounces-15410-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15410-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 30C51283E1A for ; Wed, 3 Jan 2024 10:51:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E7A318E08; Wed, 3 Jan 2024 10:51:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="gpZ/aCjn" X-Original-To: linux-kernel@vger.kernel.org Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 6846918E06; Wed, 3 Jan 2024 10:51:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UsxFTjUw6Zc2yvy6gkvn2mjApUFXVkeXpGQUxAbjitU=; b=gpZ/aCjnmyd++8LssUZU3FoxdS 6XaYiNdun0vIQV5JJmt2Pf3BjvxTq5Ch1Z97pUyBawgO/vOBlUiRJAMbQtpTFBBMGKHSmpJoWa4Uw WhKFhSIBGDm23A1bEM6Zr3pjEMAboW0AWo5XwZWxX5lQLwHCJvKYhHwrOKLIKs+HRjIsj2q/NtHco 43oQyAcVgfqZcxIF1IuIsEztTSoukqniwvxlR2Pl+efRByvnAy4PPIeuMIddCRdCbpVqIEp67mitf u/RNfIcrqInq0IJoVxyrZ+aTboaQIvXsDmITtylv4fbz/JNmTg+JfDgtS0S5kPUrTJJabNwu0Dhrz QRqo0bYg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:57900) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rKyqC-0007Ll-3B; Wed, 03 Jan 2024 10:51:17 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rKyqB-0006Ia-VO; Wed, 03 Jan 2024 10:51:15 +0000 Date: Wed, 3 Jan 2024 10:51:15 +0000 From: "Russell King (Oracle)" To: Yajun Deng Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, andrew@lunn.ch, olteanv@gmail.com, hkallweit1@gmail.com, kabel@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: Re: [PATCH net-next] net: phy: Cleanup struct mdio_driver_common Message-ID: References: <20231228072350.1294425-1-yajun.deng@linux.dev> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: Russell King (Oracle) On Wed, Jan 03, 2024 at 10:03:14AM +0800, Yajun Deng wrote: > > On 2024/1/3 01:34, Russell King (Oracle) wrote: > > I'm not sure why this consistency is even desired, the commit message > > doesn't properly say _why_ this change is being proposed. > > Most drivers use device_driver directly. This should be added to the commit. > > Like this: > > struct sdio_driver { > > ... ... > > ??????? struct device_driver drv; > }; > > > struct pcie_port_service_driver { > > ... ... > > ??????? struct device_driver driver; > }; > > and so on ... ... which is fine for those other drivers because they don't share the same bus. That is not the case here - we have two different classes of drivers on the same bus. I don't like a justification that just because other subsystems do something in one particular way, that is the only way things should be done. I think there is good reason to have the structure we have, and thus there needs to be a good reason to change it. Maybe Andrew has a different opinion, but I think we need a better justification for this change. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!