Article View: linux.kernel.netdev
Article #10841Re: [PATCH net-next 2/2] net: dsa: mxl-gsw1xx: reset the switch through reset-gpios
From: Daniel Golle
Date: Wed, 04 Nov 2026 07:38
Date: Wed, 04 Nov 2026 07:38
21 lines
8402 bytes
8402 bytes
On Wed, Nov 04, 2026 at 02:15:48AM -0500, Joseph Telaak via B4 Relay wrote: > From: Joseph Telaak <joseph@telaak.dev> > > The switch keeps the configuration the bootloader left in it, and the > driver never resets it. The MDIO core asserts and releases reset-gpios > only for PHY devices, so a reset line described on the switch node has > no effect either. > > On the GL.iNet GL-SFT1200 the bootloader leaves each internal PHY of > the GSW150 one MDIO address above its port. Port 0 then fails with > "failed to connect to PHY: -ENODEV", and the PHY that answers at a > port's address belongs to the neighbouring port. After a hardware reset > every PHY is back at its port's address and all ports work. > > Request the reset GPIO in the driver and pulse it before the first > register access. The timing follows the vendor driver: asserted for > 2 ms, then 100 ms before the switch is accessed. Any good reason to open-code this instead of using reset-gpio (CONFIG_RESET_GPIO)?
Technical Details
Message-ID:
<aurg9vX3_i_ewWur@makrotopia.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356256-linux-kernel-netdev=dewy.ruReferences:
<20261104-mxl-gsw1xx-reset-v1-0-53839bf5c88e@telaak.dev> <20261104-mxl-gsw1xx-reset-v1-2-53839bf5c88e@telaak.dev>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356256-linux-kernel-netdev=dewy.ru From: daniel@makrotopia.org (Daniel Golle) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 2/2] net: dsa: mxl-gsw1xx: reset the switch through reset-gpios Date: Wed, 4 Nov 2026 07:38:30 +0000 Organization: Usenet Network Message-ID: <aurg9vX3_i_ewWur@makrotopia.org> References: <20261104-mxl-gsw1xx-reset-v1-0-53839bf5c88e@telaak.dev> <20261104-mxl-gsw1xx-reset-v1-2-53839bf5c88e@telaak.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3348981"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:BKiW0MLSUPLkulPKBjAuo4iavUI= sha256:Oal6cd084qek55X5W3aSSW6oWDfddmC6IEhkD6nK/Ok= sha1:Z5h01nqMtOtLoMKSDsXqHaK9Umo= sha256:KxH04CwF+bxu0WbD8R2bdoV0Fj9xbaz+Hi4n2BAtjJk= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 49300112B21; Wed, 4 Nov 2026 10:46:10 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.851 X-Spam-Status: No, score=-1.851 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ByD3zRWgC6Xu; Wed, 4 Nov 2026 10:46:07 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-356256-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=makrotopia.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id B2D36112B1A; Wed, 4 Nov 2026 10:46:03 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id E8E1F2A11B; Wed, 4 Nov 2026 07:39:16 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793777938; b=2J6/3J7YOrG+IKLPbEvlhOTg53sXWk6Kzk/Ad5ha+K4zkGHcNwGg49vHKSMJIw9Y5ruF l+PiSydsJDyWINcWEYgD2PCd+Eb4Xk5kYv+xpveTloA4FIpWbKTRoqowvEEzdKQGEOzkw 4veD/QvEXfJIcJ1kVqIgyse3uSe2xs87M2DvHSi23J6RaIZhNwp9F6M1rCY+F95pnY7GY 1R368i3EpqjYbbYoV3EC598taKZlBxd2CrkqyfTCwC39CubMpp24BJjxL242baiTtc8y9 zLVyhpbRLOHMkeZtW6wKPnRMXgfS0i9JY+2JZ7ln+hqrdzamyrwLo3csUFl2yL79piw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793777938; h=X-Original-To:Received:DMARC-Filter:Received:Date:From:To:Cc:Subject: Message-ID:References:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=KdTcTFdrYhp+y0Fe5KO7mqbp34rJ36pFSPrrypS9TYI=; b=i83Fe6dqI/TfeyQTvc+lZPkZxnvEUOt3ol1Jqd6mw0Vov7IyCH2qBverMZzLLiS3GUgZ 7jzqFyQl/s5b2QOeYVFzDVHkNxHF5dlCpgVA4n/858raoS/UxJm9ka7Z2F34hfEv4J/wU H0eatPlvDMTGxYuBJWtQy8+UAn5RPAy6btTYwRNyW1ayuxxAOlhwmMka08KfDW5Gj//cQ 4yRsKLwFH9Bmq3uebI36y0GuwQLupRXsMjsBAb8jQ8i2NHbIN2YRKqBS+BOJfE6gkVyae O260PLph/Ki3s3XANKpr2cLvh8rGITDd2MWfQJnO8wqXEGBrG7e2l+78K4G8iY/l1xw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31EB9606D80D; Wed, 4 Nov 2026 07:38:58 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.142.180.65 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793777931; b=HU6b1h2Wxcf+Lnc9bq5ZZLsafJeoFzB76n5nNjYP7iXxU7eVD5wsvOCrp6++9czhfqqD wijg75LeFZqvaarQXKI0JEL1q8Q89cqTwc4MeSaJazDBcZCu5446fjAJdf6mAil2o+MXt l4ApDg11gmLUGE5UZwV7+aXh/tFW82Ey6JOceBWX8UDhweCe9cEz1MGQdDEN/qpP7SAM0 HWP5PYzOcgLmVu2PgRGljANsOAQbfMAO/0e9uXmkvj0FyXswe6IKxta82JmFANOqCeHAS mtMtQFPRw8BCSDUHoS8zQtIU2ThVHjQP/O7p0aSYrBfh+CQcXnC9bijk9cC0EBSbbIQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793777931; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=KdTcTFdrYhp+y0Fe5KO7mqbp34rJ36pFSPrrypS9TYI=; b=RY7NbAWT5jYw9U1hQh7LhiPWOnYeL7gwJp5tL7uIqwUTk4L/GVgfJzsDzSvXyBO91Kxk Aw3BwrGLPY/t6iTY2PxWoL3UZ+f5+l5jRY3srLMfOoen+THlMOcgosEssVvPrTKOALBCK c7m4ubRZW/2KgOI0ohmebtPQsd989mQ3PM3wYF4O0iVa5AQH/fkyELiJlDyflRGiHJnc6 3AeNCKQ+Z7kRZiFWsDwYJ+lHAl7lKIYnbluvfOb14B16y2bPidIEd1LaDTfQotDg5KC3s xDEXrbLDqlIWpqqWkJWNMIkXpui3/ZFN0Q+IxwC9mdXcVmHFLcIU3mvcJB8/SQvmiOA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.remote-ip=185.142.180.65 X-Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4EC7E606A32C; Wed, 4 Nov 2026 07:38:51 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4EC7E606A32C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org X-Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256:X25519MLKEM768) (Exim 4.100.1) (envelope-from <daniel@makrotopia.org>) id 1xOVNN-000000003uC-03qs; Wed, 04 Nov 2026 07:38:45 +0000 X-Cc: Hauke Mehrtens <hauke@hauke-m.de>, Andrew Lunn <andrew@lunn.ch>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261104-mxl-gsw1xx-reset-v1-2-53839bf5c88e@telaak.dev>