Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp453553rdb; Thu, 1 Feb 2024 13:30:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IEl2nrdvnLC1K3bsMbVw8lBq4RFdF2LU/QpwdmHkIVkCbKy+uMe5q3w4xv3AHpejn8ugj/D X-Received: by 2002:a05:6870:ac13:b0:218:d610:2285 with SMTP id kw19-20020a056870ac1300b00218d6102285mr4002957oab.14.1706823037686; Thu, 01 Feb 2024 13:30:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706823037; cv=pass; d=google.com; s=arc-20160816; b=CLAKyANP8YuXyDy534A+IH+aSbpKzQ7ZZFTRJQ4hnb+H1R5HO5DJJUAf7BtC1kKl5N /2CWvoEp4BdGxK+X1F10w9TOC+ox2GtseTvPxJWBK6uOO/GNVEYSYOy6XbbZBRIShVIL 765g1Cb32VyAjmRI7EHE6WkDjJFZPI66q7CkV1wSldhbMLqvJmiyLt3esHk+HOGYKOKF PEb27jO6gJdUO8PRIxVn6BAZSAjucBH6vUMv7n3Uu/8IVlDYe1T8RQODOeoz9qkC6+t7 MsqAy6RAKHj6hefEzOeAl9YcGpa7hbnx/CNr3rFMvc4BIBcys6NfNrqG39XtOd0y4tJj epYg== 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=n9vCqnQ6kLBE0f/I+0hHoajVVyErt59ig2/HWfGH0AA=; fh=om+QeBqxotTZgZA2vFUoQnxhpTNqNH56bWazWEItVTI=; b=EYLO4nhWUP0gLZm4aOaEZJDEMSOA+wyE/zXNM61JG+1ggK+BM1bqtXQmuqysZYzH04 9H6hL+JBxJSNr7K7bBBR+UDFiuqhKjddw0JoAS+tyRc7PZLKyUI4jBnijzeFqKfkGnKQ CMbDsOJaM2fqURgV9thCrabZwKvbmyDa+ydNa4tdJRtpmZ2ZNe4eBriEFAbWoxkXfnyh eT5ByMxx3SYpD4jtAl87NzTWGQ/Eh0sZL9Dn3GabfHQTaF7rs1vAfb8KCjSIZvAolzDM NNphmUuMbcXBSJTOCGRcjCkPl/RdW0nuJToxBhTAPjGzgcwLg1HVKI+KAuC9mCQHtldR QA5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=zxmqXiyX; 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-48876-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48876-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch X-Forwarded-Encrypted: i=1; AJvYcCVDyzxQlSjLbkrfgFzfAw6Aj2mCllmvhjewCFlz+xXemJKuiwoMcjfL4/1KvGUa4spzwLIuntV9U7tYRlwZG1NZr+NYtN4EGXxuKMtXkQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 18-20020ac85952000000b0042aa69e51c9si389456qtz.497.2024.02.01.13.30.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 13:30:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48876-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=@lunn.ch header.s=20171124 header.b=zxmqXiyX; 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-48876-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48876-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F25D31C225A2 for ; Thu, 1 Feb 2024 21:30:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B8F63EA67; Thu, 1 Feb 2024 21:30:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="zxmqXiyX" 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 AB77F20DF1; Thu, 1 Feb 2024 21:30:16 +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=1706823018; cv=none; b=nhPZQP/hEtTz632fQV/n8GhR3YeBllGjfNmbIMCBZ7FhFm5yVI+a90GuBXXCQlBE6ZrqBGO8GxaJ5xtNBuFuhOIs0Cw12bvj7rFhb6H92PklvPh6WabSq3/eWcBVd7CebA1YGqROnH0GPS+23dh9YLdCt/r4jpLzcbWKmfg8CLk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706823018; c=relaxed/simple; bh=WO1pSGffK2BlsotNwVmh8l81KNixmgAA6UL4gmhM/sc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iPQ8SqA9F4w3oHXx2JOrbUL8RkB5ElXJ1CwCvFgFrX1ErxX9LOibdsuKrqUFloL+j03RR/jVvCSVXUXcYGbxH3mWLg21qoUh3aJUFhTxE7gFTfgtlhGqeN6NS8Fp63P0+lF3va+iw5KyWmlQqDrs0KLutxqqTvKDgIY537Jt++Q= 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=zxmqXiyX; 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=n9vCqnQ6kLBE0f/I+0hHoajVVyErt59ig2/HWfGH0AA=; b=zxmqXiyXFy7SLUTKfKDL3w89pd oZb7jeslnq2ro4bmDEpZb9hGEa2BgVxzuEcILzPX7uMaWphgfNsfqBja0UV+QqPgO0z0esv1Zcg8A ovckSI8Sp6N5+RWLIx52C5a28/YKrK5qgGV0N3S8MTLrih4qMkWmWvpGcPy/jWy3US9w=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rVecz-006ixF-4T; Thu, 01 Feb 2024 22:29:45 +0100 Date: Thu, 1 Feb 2024 22:29:45 +0100 From: Andrew Lunn To: Greg KH Cc: Christina Quast , 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 , FUJITA Tomonori , Trevor Gross , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiko Stuebner , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH v2 3/3] net: phy: add Rust Rockchip PHY driver Message-ID: <6725eeac-45ee-4f3f-a612-0ef5725b9fd9@lunn.ch> References: <20240201-rockchip-rust-phy_depend-v2-0-c5fa4faab924@christina-quast.de> <20240201-rockchip-rust-phy_depend-v2-3-c5fa4faab924@christina-quast.de> <2024020105-bankroll-opium-a6e5@gregkh> 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: <2024020105-bankroll-opium-a6e5@gregkh> On Thu, Feb 01, 2024 at 10:23:03AM -0800, Greg KH wrote: > On Thu, Feb 01, 2024 at 07:07:00PM +0100, Christina Quast wrote: > > This is the Rust implementation of drivers/net/phy/rockchip.c. The > > features are equivalent. You can choose C or Rust version kernel > > configuration. > > > > Signed-off-by: Christina Quast > Cool, but why? Is this going to happen for all phy drivers going > forward? What's the end-game here, dropping all .c phy drivers that are > in rust? Or having duplicates for all of them? As one of the PHY Maintainers, i would say no. Now we have an example, i think we should be a lot more strict about what we actually merge. It should be a driver for hardware which does not have a C driver. We cannot drop C drivers since Rust at the moment does not support all architectures GCC/Clang does. PHY drivers are architecture independent, and in real life used on multiple architectures. When Rust eventually catches up, we could consider dropping C drivers when there is an equivalent Rust driver, but from what i hear, that is a few years away. I don't want to be supporting a C and Rust driver for the same hardware. Andrew