Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp497033rdb; Thu, 1 Feb 2024 15:12:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxQNljTCshBFAK1jodM7wi8qC8neeOYVwRwDT4XG/jAM7ITe7008jdypAoOibNUo2Ibgfx X-Received: by 2002:a05:690c:a9d:b0:603:e86b:cd81 with SMTP id ci29-20020a05690c0a9d00b00603e86bcd81mr839604ywb.31.1706829153307; Thu, 01 Feb 2024 15:12:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706829153; cv=pass; d=google.com; s=arc-20160816; b=fEFGXXlm3B0Dgs6/nw0pSsM8Ywc0Yyoui3VOIC08j46KY2YwmlDqrPbBsz0XLXKEzc wkj+8K3rdTHXv03g/8cnfE3eqzFV/LGQJsMsnOQvm4EQXqYgkBVHMoHYi2NMHSM0hW7K ISuQKCDMtlZs5xnTrLlGhQcmG1Y1si8gb4qZQXUbiMsqkdsvnQ0bCGIw2tMSGmfWwFUK mvo/acJKSwkQl04Ri5bEaWEntFA5oLD8eHgMNeY2Cd9gdEBGsk7/ePSo7jFqssCbKu50 CknRSJWx3BIaUjN9caFMl/H4Q58MzvSZ2HTaoHwln4VCCQ9NjkFKH9np2AFdX4KD270q GPvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=+PN1aVVdJv7dQ6u3SE9gXNMJ5i8PkALkHFjLI1LOmKY=; fh=sPoxK7W5ErPO7AdtiUk2pH8SP2zAC+YYZjfeCXiKIdQ=; b=oeusDHMVHidMAmfqYwkMf1/KVjUZyyPQ52z7XKzLhSwuZVHiU9vtBYowOAWNnXochm kTt5jo4WWeYH7E9pF9WwqVOmb27ktT7gGrskDkYApKHIxzpOzGp+iGiNBkWdMEilZit2 gu6LzmqW6FURdbqFBo6tjLbrqfwHCGvrMfOoppjzS3KKwStJ+kwFLD8eJC4irHlXYVzU Cu6K0r1Iu93zw/MKQaXMC7qWxyRhPLLIdxrizrXFA0DtT08hf3Qy/Qu8esS2dGwkBeB5 7YZCl1CdMhcteCO+QWhnKzp9Z7teNQwz/HyJKZwRRvAH+7TT7oYYjtmqINtlK+HrY4sj yQMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BCdyF+GC; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-48980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCU2IlI3Y0Pzbjw0SET4c8r5fSwVB6QIEPd142JdOwij9pt6TbUvP8wIs6M+KMDOCFekzJLbI/djoBpN/iZJz/l9IMKxKb8kp0m8QLGSqQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d9-20020a05620a240900b00783e08c89f7si732105qkn.749.2024.02.01.15.12.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 15:12:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48980-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=@gmail.com header.s=20230601 header.b=BCdyF+GC; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-48980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 0E6FC1C23A75 for ; Thu, 1 Feb 2024 23:12:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26B0D47F59; Thu, 1 Feb 2024 23:12:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BCdyF+GC" Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CFA933FB37; Thu, 1 Feb 2024 23:12:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706829139; cv=none; b=V85TlwWY20g6OjCWN0nNIeLpd6St9lzYPKHtkEIIhn3PjfN2fyQqdmiQeRNghGQdisRei0JkoiSxfTmnlAiYDTO3gtiyu90pxRCXyzx2TEQBMXABiArobW3OJPqCDnDNfWCYUoO8klkPbW0QoTdI4TXZ4KanitQ7D156wESLvXM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706829139; c=relaxed/simple; bh=+PN1aVVdJv7dQ6u3SE9gXNMJ5i8PkALkHFjLI1LOmKY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=b2XNJAK5f1fjpgdVy3IvlapXL1+t1zM/wluKYdc121a79qd31T9Y4EiJniH5+5fKMjaxkJeuYheg+vCgdmA41B86XsN9fmjqgdSmC9CpRm/MZANJCTer2m8ziwLNo7jUhpY6oXpdaukI/wnmQXAjjr3AAOL05Xp8X1PUerHGX/s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BCdyF+GC; arc=none smtp.client-ip=209.85.128.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-60412f65124so15178117b3.3; Thu, 01 Feb 2024 15:12:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706829137; x=1707433937; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+PN1aVVdJv7dQ6u3SE9gXNMJ5i8PkALkHFjLI1LOmKY=; b=BCdyF+GCqK8XLGf5CxqL+kvzbQlcwsWAODILEHQfRrU6Z3qVUwS4xL2aVaRkZ/vY37 L/zv+0QDa7jPjNo2M8qtqk37aOQtr6xPrALOW6SrEpmEwjSi977uzkJM4gYR6rTtiHg5 QVYbMY1XxByuZhab7VZLtcDtYq5NzGQJBmYyU/CJRG55D1lie8Jn9ZlJG/lER44If11K uzjvWloMvfyVHv4n2AQMSx71ce0PENYnK3z00G/3VdcZtnlQbiFB+FegDcQMRidpgUYI W2BIGwVLXuCiFc3REWU8aAoNSDqZrdEBK7VTo14zXY8tBqm9r/gmg/COrStx8wF70NdR Ow/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706829137; x=1707433937; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+PN1aVVdJv7dQ6u3SE9gXNMJ5i8PkALkHFjLI1LOmKY=; b=RwO8r/GHMjufytvtJJ+6rX7m6ZOYatl9d2CWJxJ9IkL5HG/x5RPcp9t7R4ex8qn7L1 5snrf3WDVpNItr1qRoMYDjkuJWnBgsGZdCyxMuEEoqFWRNaONFYevHQzXPTw4vrr9y0q WcDgU2U0adw1al4JDvjyY64lgVEvsERIQMGGN+0YBfl5FIMsRP0O6gBuN+vasUqnpbCi ZBVc7fMIh0b1NrEPANyUzqDY3XwMXC/Cna8FHHVGJvzoJ6jjSLAx6ZagqxWlTOpD/V55 zoqg6N9O7oroa2cEa3ipwEYT3D2eRysYZ4sDAieLWXkTul+rhuuQLNLWH0YWNLg3Gk6T Fkaw== X-Gm-Message-State: AOJu0YyDIps9Rwlis6xqKGAeHLBB7xPpIp9mXN5j8+MGFovqm+H1TAYO kLnaYCalIsq8jUhUIRIXLE9DbloZWlCU1gPaX11zG1Tm2Ne1GJCFIXFcUVkZ2LPxkedtEZhbR5K Ed4Laa8ITp+tqdEYvmu2QHlmvNxg= X-Received: by 2002:a0d:cbc9:0:b0:5ff:81fa:16e6 with SMTP id n192-20020a0dcbc9000000b005ff81fa16e6mr622138ywd.38.1706829136716; Thu, 01 Feb 2024 15:12:16 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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> <6725eeac-45ee-4f3f-a612-0ef5725b9fd9@lunn.ch> In-Reply-To: <6725eeac-45ee-4f3f-a612-0ef5725b9fd9@lunn.ch> From: Miguel Ojeda Date: Fri, 2 Feb 2024 00:12:05 +0100 Message-ID: Subject: Re: [PATCH v2 3/3] net: phy: add Rust Rockchip PHY driver To: Andrew Lunn Cc: Greg KH , Christina Quast , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 1, 2024 at 10:30=E2=80=AFPM Andrew Lunn wrote: > > 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. Yeah, a single "Rust reference driver" is likely enough to give a good example of how things would look. I guess more than one could be justified if there are significant differences, e.g. if the maintainers want to cover more of the abstractions API for some reason. > 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. The `rustc_codegen_gcc` backend can already build the kernel without changes, so hopefully we will see some results sooner than that. If we are talking multiple years, GCC Rust likely enters the equation too. But, indeed, there is a lot of work to do until we can drop C code in gener= al. Cheers, Miguel