From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 A99F428B4FA for ; Tue, 24 Feb 2026 04:32:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771907536; cv=none; b=jAuemQsUYob9+nOWszKE4ECSMrT1g4V2hvX+1OJMCJyvYGFYwilJFiRdi2uT4ntm84phIU5h1YiysBjjcDzKuoMmIl9x8ugsq1VHNKGJrOdCnSstXQ/2+CAG5Xm3OhVuoTuyGx4gxpdxcxZGP9TD5nJFSiKmEK79UlAyKMGwDwA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771907536; c=relaxed/simple; bh=PL1uF+miaRjncn9pPofTd48PdjMggPgKMuiNmOSdqqo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NF4NrvMeOwj59WBTds2mD0zBs/fjv8tKI+e0z8QRczGhMATPE04C3QXjVa77osR1qF0p4GPAzdi2uWQASC3qMqFQnYcY2F1OJ6xww0aGPPudUo43ZFhmxwvsnzUoYVWEq6lM1PtoQPZvMnnZBIjNtLRNIjYKYz3etdHe/anbBGc= 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=EFsPvhXl; arc=none smtp.client-ip=209.85.218.44 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EFsPvhXl" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-b904e1cd038so723222666b.1 for ; Mon, 23 Feb 2026 20:32:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771907533; x=1772512333; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RWFYHX4cmQ4ANjjDRTxWDPBizHkpnwZrz9MSL1ntByw=; b=EFsPvhXlqISUkdROhUevWP5B8qFIsdytmWuvS/H5TVJQOd4zlW6ZOvmbwaygK1rpKm AwwVHlFtnMgNH2CP1ILv6L42SdmT8Tx6cyIK70Xq3m5p3wfdpz8vuWbLIa8H78WdiQpr jOQ5wdnuRj6hWHwrl9mgxI/XGsHeFmdxe4Ofpg7Ec5o9xur1M6lP8zv/eW53b23bUGP6 9MAWtMLVzFKewQA/LQrsVtSB0nk5nQzd5g9nTntyY8Rmye0CnEgzWnlbQQufadOv063u 3frX8RxuED/eQc0cnanQVHFOShzY1xfzIOsoXZSo3tcvRxHbVKcenY32thLHxf2DzlS5 e9VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771907533; x=1772512333; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=RWFYHX4cmQ4ANjjDRTxWDPBizHkpnwZrz9MSL1ntByw=; b=DYtC1zeulyCM3nMPi5OxAg12A13k5p/gVwx7CPuUBUzHFgaNovChQUTJVPTd3D8De5 mHzdF8DSJ+ggcJEzl/Xuu/a7EHQ4EqJgKNYNsNejunYR9PDEVE8iqEcgfmV5mO/BvGtw 3CeBH4FEux81iIdRELU3Uf67awTg4adzvqwFND65INgOAQy1T3UnhD6ItHTh5rBOk5cn nweJ9iMwZHzmC330OU1JCM35bREn318Fdxfdh/5CyUKyqnJIZu9ACBUCehE4K4hB1+9/ +M+c8zmOqpW+m8pk0qb6n+HANRhG6t/YgUdyBqFj/KEcXK3x3SRvckgywvhvXseJnbz0 82Qw== X-Forwarded-Encrypted: i=1; AJvYcCVnWbczuM4lGLcYkEM15lBab7cJF91SsG/rpTRRn1A+bySVvVfMME1BaZkGFTFjAPVvMlaeOdVt1i+7oxM=@vger.kernel.org X-Gm-Message-State: AOJu0YyRE+efcZnLu3rjbg0DqA6jlXTzGAaxwP+K8m/v2zAJtc4zwTOj o0SCT76Y0fbUBvM2f1sPVKhcZ2gzSEceWaxjw7yZL8xYTkZJUyf3oeb9 X-Gm-Gg: AZuq6aKQNF/CA/p1STMUWqs2RqAoTOwOqmUP25MqhRnN3U13oq4Xf1H85rY5p1yITPf yvNUm2FYkE1aWNTrHXZ+s65XjdxSHvHWgfSQLFQLW9AVQ3yCCd39m7HD/Lm9mPULljLNztpJbn3 oPGvAjvTyYAuT9ysHafb7Kno228snTnFU5dW4cIjpBU5hOwEGJp+99TyfATKtpKW6zBngHvs+yz 5/xpkNMv4BmzbpX+06+CdpImWWwUy01UQIAXPgKFQoGij9XtKNOxUZMnzrMjLS544suZyv0MAG6 9xHCE6YcBSjnD+XuVY0vBoiGzQUjLeW6qHZ+KtuHoYD95x5jJNNR3Nv2u2VqlIzRWtAcJWEFL/c elqLzkPaaKnOI3jO67mbxiKiEBQIXWO89EdrgH6nZqtonKp00W0FNG2gZOcahuebDbPD0RzXB1S l3PH43G5WgkretgIrpH1YnV2+NtLJThXUlM0hiqU7UhK8LGQCdJ4kQCORItIT/kOz3qjOtLCaDV 1gmzuTBmK3uhQMUv/cj2OYCwpFmtyhiTXUKoghvgAODxB3Gvf4HYrRWKpblalFx4RGCjtE6Fg== X-Received: by 2002:a17:907:1c22:b0:b8f:de1b:78a with SMTP id a640c23a62f3a-b9081a2ce44mr719504166b.21.1771907532815; Mon, 23 Feb 2026 20:32:12 -0800 (PST) Received: from cs-874966990260-default.europe-west4-b.c.i2f7e30109524dc12-tp.internal (206.242.32.34.bc.googleusercontent.com. [34.32.242.206]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b9088c8fc30sm371284466b.63.2026.02.23.20.32.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Feb 2026 20:32:12 -0800 (PST) From: Artem Lytkin To: FUJITA Tomonori , Andrew Lunn , Heiner Kallweit Cc: Trevor Gross , Russell King , Miguel Ojeda , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet , netdev@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Artem Lytkin Subject: [PATCH net-next v2 0/3] net: phy: add Rust reference driver for ET1011C Date: Tue, 24 Feb 2026 04:32:08 +0000 Message-ID: <20260224043211.1747-1-iprintercanon@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260223220504.2102-1-iprintercanon@gmail.com> References: <20260223220504.2102-1-iprintercanon@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series adds a Rust reference driver for the LSI ET1011C PHY, following the pattern established by the existing Rust Asix PHY driver (ax88796b_rust.rs). Patch 1 adds a speed() getter to phy::Device, needed to detect speed changes in read_status. Patch 2 exposes genphy_config_aneg() in the Rust PHY abstraction, needed by PHY drivers that perform custom BMCR configuration before calling the generic auto-negotiation setup. Patch 3 adds the Rust ET1011C driver itself, implementing config_aneg and read_status callbacks. It is a feature-equivalent port of the C driver at drivers/net/phy/et1011c.c. Changes since v1: - Added speed() getter to properly detect speed changes (Andrew Lunn) - read_status now only reconfigures registers when speed changes, matching the C driver behavior (Andrew Lunn) - Removed unrelated dim2 staging patches from the series Artem Lytkin (3): rust: net: phy: add speed() getter to Device rust: net: phy: expose genphy_config_aneg() net: phy: add Rust reference driver for ET1011C drivers/net/phy/Kconfig | 9 ++++ drivers/net/phy/Makefile | 6 ++- drivers/net/phy/et1011c_rust.rs | 75 +++++++++++++++++++++++++++++++++ rust/kernel/net/phy.rs | 17 ++++++++ 4 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 drivers/net/phy/et1011c_rust.rs -- 2.43.0