Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7067146rdb; Wed, 3 Jan 2024 03:38:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGY0x4WCBtJckN0scYF6TWUkqHG+VgOLL5140RpoSvpoxiHl6Mnkd5J/1bGznKgdIExw322 X-Received: by 2002:a05:620a:126f:b0:775:cf6d:a468 with SMTP id b15-20020a05620a126f00b00775cf6da468mr19989143qkl.49.1704281907632; Wed, 03 Jan 2024 03:38:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704281907; cv=none; d=google.com; s=arc-20160816; b=qXPbfl+DmV7qnOPWAqX/4vbIqE6S2WoG0EyQ7C+h5A30aXCZMel+ZHYXMSgXkQee6n BOL/cS/fIofvRKQHHHS9Irt8+wTwacZPEedJRgrzqO3wpFaO3mER77WtA/LLCicco4eB R1yX8p260F8jjpJDr5R87aayY5OtadekBi6ZLK/UKh+H65XY7K2d54y/Q7pq5T/l0eOn OfXbrAFzHqBmBXbfRS9KhP+0D4X2op5NW7eQemjJTnbAv4OYTsyFZ+P/jUthYOXFiVRb EkYRjNMqyOVVIiMqvdDW6ExJbtRzerucq3E4JMqW+tMz1JZhtqtxaRXasNgBnwI1SR8G iYAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=fWtlIAOzUvDm9M4JJeNbJAd3af9ZIm0GtuZrj7wr4/0=; fh=H2avzKUuQWVE5htp7tBfODochNYQwOnJ6+V7VYxZojw=; b=mNfyGFJpmyiLQD2NFYYYKfnKpLVXELIpDh72TXjFNFUaNonmkWkgS3d2a7fnO+zs8N RaP8ZPMSxpKovE1HaMvKUQk5BWej+SxfQjGI251puZ2DyvSHV0A2DB3zRpDwxBBHnFqm 4t0NZ7TE3gsT50WqIFA/cJny0NrIgGXunYbIFLLYnrzvINctoTNAhh4NHJHaqROZhU/6 lKT76PcA8qLkkz8zCjn5tMqkhMaLMTCDxT64xOoNSumYXzrVf5QEP8S/2heBS6/QmwNr FLP+i+h00E3K9HdRUwPPcMy74PrO750as2LGptfDDSq5PbZ5lgbXE/xtF3ldQLqy4MZ4 fVjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=G2gwt3l3; spf=pass (google.com: domain of linux-kernel+bounces-15459-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15459-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j20-20020a05620a411400b007816590f36csi15512032qko.545.2024.01.03.03.38.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 03:38:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15459-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=G2gwt3l3; spf=pass (google.com: domain of linux-kernel+bounces-15459-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15459-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 60EC91C21984 for ; Wed, 3 Jan 2024 11:38:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D62318EA6; Wed, 3 Jan 2024 11:38:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="G2gwt3l3" X-Original-To: linux-kernel@vger.kernel.org Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) (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 8F66118E31 for ; Wed, 3 Jan 2024 11:38:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: <52ea5dbf-2d60-7a23-e525-9dcae2809554@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1704281893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fWtlIAOzUvDm9M4JJeNbJAd3af9ZIm0GtuZrj7wr4/0=; b=G2gwt3l3L4osQhnnysqyLT3YLCLl6GHz5vJT7X83GvaVHeq2VWmghkeOJ7a24SRwe3Aw6s mIp10JeJYu9LiuVYg/FnNlRSakB0DuEqJEhmEvLFOWg71oNJyaHvYu8IjNa37RcVF6XYZh eQoxUsN8eQhmmMVZn8weTS/il/O1UrQ= Date: Wed, 3 Jan 2024 19:38:04 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH net-next] net: phy: Cleanup struct mdio_driver_common Content-Language: en-US To: "Russell King (Oracle)" 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 References: <20231228072350.1294425-1-yajun.deng@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yajun Deng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On 2024/1/3 18:51, Russell King (Oracle) wrote: > 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. Yes, that's true. But we can implement it with is_phy_driver(). I don't think we need a flag for that. > > 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. Its purpose is to clean up struct mdio_driver_common, and make the code cleaner. > Maybe Andrew has a different opinion, but I think we need a better > justification for this change. >