From patchwork Mon Jul 24 13:52:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 1811831 X-Patchwork-Delegate: rfried.dev@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=tJetBroT; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R8hcZ110Vz1yYC for ; Mon, 24 Jul 2023 23:59:58 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2E17B86896; Mon, 24 Jul 2023 15:59:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="tJetBroT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9E2278675F; Mon, 24 Jul 2023 15:59:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 141E886821 for ; Mon, 24 Jul 2023 15:58:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mripard@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 833DE61207; Mon, 24 Jul 2023 13:53:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92BADC433C8; Mon, 24 Jul 2023 13:53:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690206786; bh=YZSUp5oLi/Heaxra00D/1dyDu+BhX/MwhgaM66KZRWg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=tJetBroT1zz9szba8GZqImtsQqeGgALRkcvX+zXjw0LmH+XXv1Aot61BZptOr6y96 kTQqY/quMyU65k/8mS81mo8mMlybVsE4jDvFGPDQrwIMkYZfyaitG+LgxIKUgcq208 07fZqCWtbHGr8wZhs7uv9CU0Asb4GkFH+GwPk8CSGGPIsvml8K1zP2AAb59djM+5Pp MX6hHkiSBcdlwGMw1BDUnh62Ql9lof2ib9ypREg4e5lJARAABfFjLv5cr8+ZlLr+oM UnCiNpdTTimsfI6aKnxbYPYww8ud8yPYIvc61CeO0Em0djoBnT8RV8XXKUfUoxkmQG IL19QBCuFoC9Q== From: Maxime Ripard Date: Mon, 24 Jul 2023 15:52:54 +0200 Subject: [PATCH v3 3/3] fixup! net: ti: am65-cpsw-nuss: Enforce pinctrl state on the MDIO child node MIME-Version: 1.0 Message-Id: <20230724-ti-mdio-pinmux-v3-3-fc8359b0014b@kernel.org> References: <20230724-ti-mdio-pinmux-v3-0-fc8359b0014b@kernel.org> In-Reply-To: <20230724-ti-mdio-pinmux-v3-0-fc8359b0014b@kernel.org> To: Joe Hershberger , Nishanth Menon , Ramon Fried , Ravi Gunasekaran , Roger Quadros , Simon Glass Cc: Javier Martinez Canillas , Peter Robinson , u-boot@lists.denx.de, Maxime Ripard X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1263; i=mripard@kernel.org; h=from:subject:message-id; bh=YZSUp5oLi/Heaxra00D/1dyDu+BhX/MwhgaM66KZRWg=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDCn7msxmyFtX80rn/Dy9vbH16/5GzQj7J9/dgj5s+7A0L 377xOuzO0pZGMS4GGTFFFlihM2XxJ2a9bqTjW8ezBxWJpAhDFycAjCR82mMDDsDy5Orsu6EPwr1 7X26Y5Oo8E+jqXZ1ysoSJ04+8GATM2b4K7E8+57nWffZ7HIZt8Ldg+8mhcxaOTcx5bqVT2F4bHA 0HwA= X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --- drivers/net/ti/am65-cpsw-nuss.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/net/ti/am65-cpsw-nuss.c b/drivers/net/ti/am65-cpsw-nuss.c index 29a4284a9b70..51a8167d14a9 100644 --- a/drivers/net/ti/am65-cpsw-nuss.c +++ b/drivers/net/ti/am65-cpsw-nuss.c @@ -627,21 +627,14 @@ static int am65_cpsw_mdio_setup(struct udevice *dev) mdio = am65_cpsw_find_mdio(dev_ofnode(cpsw_common->dev)); if (!ofnode_valid(mdio)) - return -ENODEV; + return 0; /* * The MDIO controller is represented in the DT binding by a * subnode of the MAC controller. * - * Our driver largely ignores that and supports MDIO by - * hardcoding the register offsets. - * - * However, some resources (clocks, pinctrl) might be tied to - * the MDIO node, and thus ignored. - * - * Clocks are not a concern at the moment since it's shared - * between the MAC and MDIO, so the driver handles both at the - * same time. + * We don't have a DM driver for the MDIO device yet, and thus any + * pinctrl setting on its node will be ignored. * * However, we do need to make sure the pins states tied to the * MDIO node are configured properly. Fortunately, the core DM