Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7464896rdb; Wed, 3 Jan 2024 18:02:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/4Bjp6Rte1jnruq5e5sAGuGM252o+A/nD/FLGk5x/YAj++oka/j0urWRVRp79uYoCsajd X-Received: by 2002:a05:600c:21da:b0:40d:2876:396f with SMTP id x26-20020a05600c21da00b0040d2876396fmr10369205wmj.78.1704333763592; Wed, 03 Jan 2024 18:02:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704333763; cv=none; d=google.com; s=arc-20160816; b=Bc2H+B+NPiPfQuMX7kIz6yRresFudAErYX30fmk4XKNkw6vb0PH5S01tuOngNSilgk RQjhiL5J4Jsi/MyugQGXALSP9Dopplypa9pZhJcoCZbzANpWr4vJlAdMo/BIcuXHmuYT M3gS7e75LtXWQ+SQcETw9ZTqMnQsN1mo1JTkAWKIgYGHEurc4iGu9QbRi1nTU/uJIxwI 7nxsItAStAgfhHi9yD+je86gE/4XmqByszJFdcrRpqcO1uVdPzbfkQuXa9g2uL5EqHtd bD4XAopTwtCFO6msFgtqQ2ZwMAGbp95+BZ+wzN7wVy3Mfx+CXf72RpvzLGSQuwro6Ujo bxbQ== 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=c8kduCbYQOl6J/3e1ntHCE7CtU7jNW9QWg2FRYJCYxg=; fh=+Ed2NsCY1s/op1equJHdEVgyO7lf9IprIjxLZGrm/9k=; b=akBM9yCcMQVzrTY62rC5+qwPOcvKJ0U2A9Q795VXRM626OdFXFA23FozqgFIbU9uvT nStiGUlxP3f6nI7n8hrhVYfDTjK6ddrKENfdOPsOu7Zciw184LlgDpwRiK9JS2auIIAs zXcIlfc6zLEZisTU/jVwdYhN9cAcaD3gdXzrI53DgTaF1QgpA0qncx6Obkf3jIZpkVjl cYgr5HsF970KUBnr9ie2mwoJ44BjC2W62cajVpttA0T/VkypiY6wVuobJ33rnKDRltWr etEDB8lPcciDI0949JVIrJdU/V9w9DE4yAvUcirgij76ZYDUS2+k2ktw9N1iIIgWpHaI lb0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="Ow/UutQ2"; spf=pass (google.com: domain of linux-kernel+bounces-16194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id wj6-20020a170907050600b00a2695ca850dsi11920274ejb.252.2024.01.03.18.02.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 18:02:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16194-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=@linux.dev header.s=key1 header.b="Ow/UutQ2"; spf=pass (google.com: domain of linux-kernel+bounces-16194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16194-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 41D0D1F26300 for ; Thu, 4 Jan 2024 02:02:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B131C1FBB; Thu, 4 Jan 2024 02:02:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Ow/UutQ2" X-Original-To: linux-kernel@vger.kernel.org Received: from out-187.mta0.migadu.com (out-187.mta0.migadu.com [91.218.175.187]) (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 30713523B for ; Thu, 4 Jan 2024 02:02:16 +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: <820aeca6-1605-4413-2d97-0554443b3297@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1704333735; 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=c8kduCbYQOl6J/3e1ntHCE7CtU7jNW9QWg2FRYJCYxg=; b=Ow/UutQ2S6Ez5cXEHt93hzSLA7XLoFlhQFdNTP9UX8HDLr45RQEVOwstQr36PG+n4IRoRp JwK7ftQrr3gtQnRlEir3rIFopzGaa2mRBetmiBOawUwBAocjXsivyR5QCNGBxBdBElQ4Iq eve4n+eevjFiVvFL9bW9V7zqcPYmc+I= Date: Thu, 4 Jan 2024 10:02:01 +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 v2 0/2] net: phy: Use is_phy_driver() and is_phy_device() 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, przemyslaw.kitszel@intel.com, kabel@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org References: <20240103025334.541682-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: 7bit X-Migadu-Flow: FLOW_OUT On 2024/1/3 22:00, Russell King (Oracle) wrote: > On Wed, Jan 03, 2024 at 10:53:32AM +0800, Yajun Deng wrote: >> There is only one flag that can be set in struct mdio_driver_common and >> mdio_device. We can compare the probe of the driver or the type of the >> device to implement it. Hence, these flags in struct mdio_driver_common >> and mdio_device can be removed. >> >> Introduce is_phy_driver() and is_phy_device(). Use them test the driver >> or device. > It is not a good idea to post a new series while discussion of the first > is still on-going, even if it has been 24 hours since you last posted a > patch. If discussion is still going on, then we don't need the > distraction of yet another series to duplicate the comments to. > > I remain completely unconvinced of the merit of these changes. IMHO, > it is pure churn for churn's sake - there is no _real_ benefit. It > doesn't fix a bug. It doesn't make the code easier to read. It only > satisfies some ideological idea that all drivers should look the same. > > Unless a very good justification can be found, I am not in favour of > changing these drivers. > > There _may_ be good merit in is_phy_driver() and is_phy_device(), and > as Andrew says, that should be done _first_. > Ok, I got it, thanks!