From mboxrd@z Thu Jan 1 00:00:00 1970 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 59F902848A0; Mon, 23 Mar 2026 02:54:37 +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=1774234479; cv=none; b=qd4ZtZuohDHHDNraebsWEUppe8IFbVg+LMRVvBf+YWmuwEPTiU1PmNp41h2NJlDxkhWdeRdmdFJcguR1eMnTIbEXg5Um8rrnY9GKdCBUE6xEqfh1psI9OJEcekGw34nFPdUdwCBw23L+Iow6ancDtcRTDuo4ZYhXFHbmx/H9nrU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774234479; c=relaxed/simple; bh=CLzijxGasCSCzNMXIMaBjuNazZTaO76BSQ4GiqnUlxM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ln1/N4nLdvwodz/LtyL9G6x1kkY64UCHzDc+BlQv1Mkt+L5Ec/qwnTRuYgzuQ1UbCOcDWQuA/xHwaxEAyeU20bdMnqpcYO56/pxAtNpzB5lwy1IjdxoCYSUqc3TsDwU8V4TExEf+ZS0oAw3YUyGPaK9eZp6puv1qYcmN+/Hplno= 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=PBcvKGbx; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="PBcvKGbx" 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=5H0wG6G2TDc7DZdHVhBszZSv3y4O1otC0zj5Qi356rA=; b=PBcvKGbxxlhGQfhExY9fa0R735 293cm/IGwLt1ZHNKcDXqEMOl3uPHMxHdnrWWvpKvz4OMYIHD2DJ3/1WD8AZ8UJsIGVagDamFbszo6 /DuApjYChA++uGmVmMBZ4eqPiMZwaxbB0J18otGF7KUvGW6SaCL1PavsQjpkAueJDyRg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1w4VQf-00Cs50-Vb; Mon, 23 Mar 2026 03:54:09 +0100 Date: Mon, 23 Mar 2026 03:54:09 +0100 From: Andrew Lunn To: Dmitry Torokhov Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vinod Koul , Neil Armstrong , Mark Brown , Liam Girdwood , Lee Jones , Pavel Machek , Peter Rosin , Heiner Kallweit , Russell King , Moritz Fischer , Xu Yilun , Tom Rix , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-spi@vger.kernel.org, linux-leds@vger.kernel.org, linux-fpga@vger.kernel.org, driver-core@lists.linux.dev Subject: Re: [PATCH net-next 07/10] net: phy: switch to using class_find_device_by_fwnode() Message-ID: <32679fc0-c388-4cd7-a030-5f5ed5abab78@lunn.ch> References: <20260322-remove-device-find-by-of-node-v1-0-b72eb22a1215@gmail.com> <20260322-remove-device-find-by-of-node-v1-7-b72eb22a1215@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: <20260322-remove-device-find-by-of-node-v1-7-b72eb22a1215@gmail.com> > - d = class_find_device_by_of_node(&mdio_bus_class, mdio_bus_np); > + d = class_find_device_by_fwnode(&mdio_bus_class, > + of_fwnode_handle(mdio_bus_np)); When you look at this, why is it better? Andew