From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9A719376BC3; Thu, 20 Nov 2025 16:26:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763655984; cv=none; b=dHSmeB2aES6Nh441B/pS+Ei/Q0VQb6DpJlQJUkwl7tfyf+OHKM2chRfDhe7unKkbhOO5JSoJ6w9evJHDKg234U5JTSJG7jG21KxWyR0k/vc3nyNExk9BUKFo0LcBXBW0lKuav9wAoQ4cdsr5UtUoaeDbzPP9dK7PCgTux3TTB0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763655984; c=relaxed/simple; bh=VFdInjZuW8OVQiLkoQCYxSWVELFFX1f2xoZR+vgdiIw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JTm2vWiv+ePbkrYi1E+0bRlKY1BEPq/qLd2cFDVn/nn84aI6H/6GRHUYrn51ab50wnEvKBmn06Qfm9dllgjWvzvqG4zbjq73MfmlauyuygLunhbwHhYcgqFtr3wrdDmP+yypoxDf43Dy6gK/KDU1AUBsqplWKWitRcRtpTPCXFo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tf2LQc7t; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tf2LQc7t" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BC7DC4CEF1; Thu, 20 Nov 2025 16:26:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763655984; bh=VFdInjZuW8OVQiLkoQCYxSWVELFFX1f2xoZR+vgdiIw=; h=From:To:Cc:Subject:Date:From; b=tf2LQc7tA04gQGgvkm/rquhCfdao5lWhMFfhT/OVF9qZfqyKal2H4XrPvPY7cBvGU 2/Gg3sUIVgcm3onQBVwS2QtV2D2YJPNHIag3498gJx/laWYwDQhslLOGzl0MNLqfEf /QrTcUlQiCM4So6LkPvFQ+w4eDAjCQdTzwItxNI/jQsJzED0JnbnlBFNtiGs2JMZr5 Pw8N1t5eCjn7vBOVoLDMQkAq0/4QWFgNIAfQEuIdDaTxVg+ciVA8QwmSdtstFAhTAC Z5xs7WhcnIrtlkAkLBHXK4Cs80FRlyXHmSAWCwinfPY70SLAHK/ED5rC8xU0/Oegf6 WvuPtG1XF+xpA== From: Conor Dooley To: netdev@vger.kernel.org Cc: conor@kernel.org, Conor Dooley , Valentina.FernandezAlanis@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daire McNamara , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Nicolas Ferre , Claudiu Beznea , Richard Cochran , Samuel Holland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Neil Armstrong , Dave Stevenson , Sean Anderson , Vineeth Karumanchi , Abin Joseph Subject: [RFC net-next v1 0/7] highly rfc macb usrio/tsu patches Date: Thu, 20 Nov 2025 16:26:02 +0000 Message-ID: <20251120-jubilant-purposely-67ec45ce4e2f@spud> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3020; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=5P1WlSNu7vavYPtiBZgecbAqHDhNnltvncSBgQUxKPc=; b=owGbwMvMwCVWscWwfUFT0iXG02pJDJnyjlKRNizRgupP0tfyCTdsPvN6QY+JWPthE9EzN/YVL KkUZb/ZUcrCIMbFICumyJJ4u69Fav0flx3OPW9h5rAygQxh4OIUgInc2cjwz/yx4r1V/3bs//wq LGyTmNBKTx2d+E+H7mX+Sbf7wS+bkMjIcKhVi+Hsq5/H5pumdj1Y5bt32b7V69vNja7lnxe3XmF 5gQcA X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C Content-Transfer-Encoding: 8bit From: Conor Dooley Hey folks, After doing some debugging of broken tsu/ptp support on mpfs, I've come up with some very rfc patches that I'd like opinions on - particularly because they impact a bunch of platforms that I have no access to at all and have no idea how they work. The at91 platforms I can just ask Nicolas about (and he already provided some info directly, so I'm not super worried at least about the usrio portion there) but the others my gut says are likely incorrect in the driver at the moment. These patches *are* fairly opinionated and not necessarily technically correct or w/e. The only thing I am confident in saying that they are is more deliberate than what's being done at the moment. At the very least, it'd be good of the soc vendor folks could check their platforms and see if their usrio stuff actually lines up with what the driver currently calls "macb_default_usrio". Ours didn't and it was a nasty surprise. Cheers, Conor. CC: Valentina.FernandezAlanis@microchip.com CC: Andrew Lunn CC: David S. Miller CC: Eric Dumazet CC: Jakub Kicinski CC: Paolo Abeni CC: Rob Herring CC: Krzysztof Kozlowski CC: Conor Dooley CC: Daire McNamara CC: Paul Walmsley CC: Palmer Dabbelt CC: Albert Ou CC: Alexandre Ghiti CC: Nicolas Ferre CC: Claudiu Beznea CC: Richard Cochran CC: Samuel Holland CC: netdev@vger.kernel.org CC: devicetree@vger.kernel.org CC: linux-kernel@vger.kernel.org CC: linux-riscv@lists.infradead.org CC: Neil Armstrong CC: Dave Stevenson CC: Sean Anderson CC: Vineeth Karumanchi CC: Abin Joseph Conor Dooley (7): riscv: dts: microchip: add tsu clock to macb on mpfs net: macb: warn on pclk use as a tsu_clk fallback net: macb: rename macb_default_usrio to at91_default_usrio as not all platforms have mii mode control in usrio net: macb: np4 doesn't need a usrio pointer dt-bindings: net: macb: add property indicating timer adjust mode net: macb: afaict, the driver doesn't support tsu timer adjust mode net: macb: add mpfs specific usrio configuration .../devicetree/bindings/net/cdns,macb.yaml | 15 +++ arch/riscv/boot/dts/microchip/Makefile.orig | 26 ++++ arch/riscv/boot/dts/microchip/mpfs.dtsi | 8 +- drivers/net/ethernet/cadence/macb.h | 3 + drivers/net/ethernet/cadence/macb_main.c | 123 +++++++++++------- 5 files changed, 125 insertions(+), 50 deletions(-) create mode 100644 arch/riscv/boot/dts/microchip/Makefile.orig -- 2.51.0