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 EC4A73A874F; Wed, 18 Mar 2026 16:37:50 +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=1773851871; cv=none; b=YRGyTPHk83C0p0Rq4Gv6ZRfEr5zSwCmMul7EbVvSvXTezch1iwV67Io2GJMXF7lU9WS8Ch8oxgJPWMr1tBFQUuitYLJAjPOKzveXH0WkpAUN7KyRshcutQqUXMVZI0CKhvjGx4+Sk6zQpAAHH/iEXKv3PmwnUhjrkDJdS8+OekE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773851871; c=relaxed/simple; bh=iqmtwLEcnL6mFlvnn9juJ9ChTC04q0eJq3YD9qrNJTI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=EL3yNQpnCSaINA6Wv5Ods6f6ykNJdyPCF0YFk/kryvz0cr8oKrKfHFMv8H8rUqoo3b5FDfzoajbhINvx7pL+zEn0+3UUcdYx0ZXJHFi12MGmYaZD+vC0BxFTyV8ppUNCeJivscgikcSjBob1aLzFRNbLsgu0MTPkBEV07agvrZA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PcNp68uN; 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="PcNp68uN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E1C8C19421; Wed, 18 Mar 2026 16:37:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773851870; bh=iqmtwLEcnL6mFlvnn9juJ9ChTC04q0eJq3YD9qrNJTI=; h=From:To:Cc:Subject:Date:From; b=PcNp68uNOBv5fLixIjnHiniTlT7nbV1vida+HWufRivcjOEemg/cdnlQZ3S28LjPi j+Xclfj0fxIG1UpkeaBCnCo6UaO3E3amhxQ0ljAmkY0FRBeo/1eejhlIg0s6ML2FYk j176lFp0kwIqRk5ppGbJPIIIsgG3KdHbfeTYvW/jsKkGjJxT/x3Gg6QtQlRfCRZpNT XdeszBOq+uAYHkdzzUrLODEADMMj+YEJi6+GVLHejPAu4Va5m8rkI51zxutddRnfmG rZMQokXJVXxrUynwFEGUBbog4r2FnXJu/834cMVrfnTJ2zROdK96aZdce098xnwnVX yw3vTEIdZ6XrA== 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, Dave Stevenson , Sean Anderson , Vineeth Karumanchi , Abin Joseph , =?UTF-8?q?Th=C3=A9o=20Lebrun?= , Ryan.Wanner@microchip.com Subject: [PATCH net-next v4 00/13] macb usrio/tsu patches Date: Wed, 18 Mar 2026 16:37:31 +0000 Message-ID: <20260318-surpass-puzzle-f94b46aa8808@spud> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=openpgp-sha256; l=3354; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=ixRxbL+6ajZ8OQT5v+uLquAllGh8dKxfO7p3wZv97z8=; b=owGbwMvMwCVWscWwfUFT0iXG02pJDJm7rpxJPpK842A178372bLM1VvsRZhFMv/9DGrwumC4e Rv7wyChjlIWBjEuBlkxRZbE230tUuv/uOxw7nkLM4eVCWQIAxenAEzk0nNGhm+NrfcPtEx5qbjw 28GNZs4SZe8mhaqKx37at3bLIl2Oy8sY/kdIOprVt5/ulWOIfSe1o/PBh79mp+KZXq1T5+DZ/+z GdEYA X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C Content-Transfer-Encoding: 8bit From: Conor Dooley Hey folks, 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. Ryan and I figured out that the sama7g5 stuff is not actually using the same usrio bits as earlier devices, so there's now more patches in this series to split them apart. I've not tested the split or the new property due to lack of hardware, but Ryan has. Marking this stuff net-next, because although they're fixes I don't see any particular urgency, and it avoids creating some dependencies between cleanup items and the fixes. Cheers, Conor. v4: - deprecate instead of remove existing devicetree property - pick up Theo's patches v3: - reorder patches - fix smatch issue reported by Simon - add patches reworking usrio handling of clken/refclk (and remove the issue the llm reported in the process) - add a new devicetree property for refclk selection, replacing the existing one. - drop the dts patch 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: Dave Stevenson CC: Sean Anderson CC: Vineeth Karumanchi CC: Abin Joseph CC: Théo Lebrun CC: Ryan.Wanner@microchip.com Conor Dooley (10): net: macb: rename macb_default_usrio to at91_default_usrio as not all platforms have mii mode control in usrio net: macb: split USRIO_HAS_CLKEN capability in two dt-bindings: net: cdns,macb: replace cdns,refclk-ext with cdns,refclk-source net: macb: rework usrio refclk selection code net: macb: np4 doesn't need a usrio pointer net: macb: add mpfs specific usrio configuration net: macb: warn on pclk use as a tsu_clk fallback net: macb: clean up tsu clk rate acquisition dt-bindings: net: macb: add property indicating timer adjust mode net: macb: timer adjust mode is not supported Théo Lebrun (3): net: macb: runtime detect MACB_CAPS_USRIO_DISABLED net: macb: set MACB_CAPS_USRIO_DISABLED if no usrio config is provided net: macb: drop usrio pointer on EyeQ5 config .../devicetree/bindings/net/cdns,macb.yaml | 71 +++++- drivers/net/ethernet/cadence/macb.h | 8 + drivers/net/ethernet/cadence/macb_main.c | 202 ++++++++++++------ 3 files changed, 211 insertions(+), 70 deletions(-) -- 2.51.0