Article View: linux.kernel.netdev
Article #22215Re: [PATCH net-next v2 4/7] net: lan743x: keep the fixed link across reopen
From: Andrew Lunn
Date: Wed, 25 Nov 2026 00:32
Date: Wed, 25 Nov 2026 00:32
21 lines
9102 bytes
9102 bytes
On Tue, Nov 24, 2026 at 09:33:19AM -0500, Chris Babroski wrote:
> On LAN7431 and PCI11x1x boards with no DT node and no PHY on the MDIO
> bus, lan743x_phylink_connect() falls back to a fixed link with
> phylink_set_fixed_link(). That switches phylink to fixed-link mode,
> which neither phylink_stop() nor phylink_disconnect_phy() undoes.
I can understand your fix, but architecturally, it is wrong.
Anything which open() does, close() should undo.
Anything which lan743x_phylink_connect() does,
lan743x_phylink_disconnect() should undo.
So this might need you to add a phylink_unset_fixed_link() do undo
what phylink_set_fixed_link() did.
Andrew
---
pw-bot: cr
Technical Details
Message-ID:
<e6e313c6-aff0-4110-a12d-bd26b012b6e9@lunn.ch>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370927-linux-kernel-netdev=dewy.ruReferences:
<cover.1795027003.git.cbabroski@nvidia.com> <ef118120626788ecb28b9d38283ca0130625f921.1795027003.git.cbabroski@nvidia.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370927-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 4/7] net: lan743x: keep the fixed link across reopen Date: Wed, 25 Nov 2026 01:32:22 +0100 Organization: Usenet Network Message-ID: <e6e313c6-aff0-4110-a12d-bd26b012b6e9@lunn.ch> References: <cover.1795027003.git.cbabroski@nvidia.com> <ef118120626788ecb28b9d38283ca0130625f921.1795027003.git.cbabroski@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="73450"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:3503iKi7XLOzPe1TLou3JjyC/mM= sha256:sB41+6ynYBEYoPsQS9XUY6biC91e+YSZk0fvItYSIZ4= sha1:mqfFc/yuLMZVx+BXBpNPsSC6MWE= sha256:fSBCwrJBWJwuoqyhezqbdDzf+zh7BfNW74K4ZBLK25E= 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 7A4F3125E38; Wed, 25 Nov 2026 03:32:44 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch 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 inDu0Ei-877A; Wed, 25 Nov 2026 03:32:41 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370927-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 71036125E2F; Wed, 25 Nov 2026 03:32:32 +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 35A62305F9; Wed, 25 Nov 2026 00:32:30 +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=1795566749; b=WrT910T+XSvlaSzP1h0Ja7bi2V4ZscbT5py7ctAQO3JIw9bbS+LeIP70Va94V3rKL3p8 kwEhZlzma0lncpwEBo2+d3/G292fvpHw4IIj568414h/nE/9Wl7YQuh4tAuCI+SzHyGwF F3ehgEpEmFnXURgDyu/B75tl3dVfhQjYE2sj65UUeSqMxaFl4TqQKYT3jE4KCiUZt9HtT aUYM7n6kVvnKL5D+yW2PDQkMCTdNfnYKgsEjd4wNXl5ErbM/m/R9MIw4pLRZf8fIg8ZPD ZMv9YNhvfe+IgiuK7uNUbxHQqTcHIhkAm1OpiZtcvp3XoFaw2C396pgD+r/Hw/rCfmQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795566749; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature: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=jcayB5wbddvbJv+RlR0Gq8xz5JzClNUc+dvRG47re24=; b=od2tmUtFUkRlLIDncLWDLd2iQidm/NWaGszCXvrxHzRcbtzIED2abaaSABcGCMem+mbO wZnn3VSq26fzB0EzXR2sbVPoBtOYyVUYIVq5t4LSMUVz7ejG0OR7IDm3LF9GTxNn2sWYV k3g5WWpBQABzHB8Vs5kruJ74VmdM4Bm6yDOuSx3UAlWUxmJjjoO7JKUx7AJBfqQvAag5h yTmzvDObXydCu9B6APpYpdTTiqJEQ5yl+iGambX/5lghHyFKlrPn1PnAYNDORzV6bcaic 7iiE3Q37SRB1B7GQ69urFD9lwTy3JtIv6MbEyEleH71S24lrcB45lZyjqxE3ozCkiuQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=HK8UfW9N; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; 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 A653B606A329; Wed, 25 Nov 2026 00:32:29 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=HK8UfW9N X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795566748; b=RR4oyPGFmf+jVjOqnrfllYo1d4PSXlvzyStMyHO0gMzaKWpHSlWaBhUXqw0BC4k7p7Lu VtVYyrxynAjjw99eLOsJJhscrqMwmS+D9vzAqVCXR6BAJ5AOAExUXCYjvLkl1ADtIhYHR Hd+wK6aTVK/y+vxZxidHES/3VixSFe9qjdxoL3NLGmrCpwaKE6gomKTnezo2zuw1i/9RI 5wrKgZcSTT7T+Qg2ghkv6EXx+5Mzjz9nHQR/UvtxWAk1FcXnz4UWLVmYwhtlcqH/yC/2B pCpArIbG9Kf0oBnrb9VaoJy1lEbKzgSxzD/gIFLKRHDIrVubph1MZIKnt9maxRIbBOg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795566748; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=jcayB5wbddvbJv+RlR0Gq8xz5JzClNUc+dvRG47re24=; b=VJu2Ym0R6Xv2TRz3rSnxpsPyiXPzg7BRS8xSoSonTsxEhjjNvqLHhd2Wh+xm3uWqgnZW 5ST8TMVGDe6YqAJlAyYh80f96j7CoBsLL7VontIHeNIkdQ4hYDK9/dU3K3LlSjs2m0awH RNhnGgdQ6TYNVJylfdO2ND3NfIvQh7kranq0zUq/WusRJ72FSNlCZoPXvgs1g9C3A/zIJ dI/O0w3yPsvnYost2ljM5gSHYf50Ws8BeaHalmnyhq4K21ovHlvJN7Ms/+MHGOYCLKcOG P3xpAmpwmLzDKK7U/nypS4QRMPkbVO+rp/wXMVsgmLd53UxqTDYwBWCGlgbPjOOc5ig== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=HK8UfW9N; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65B49606A31E; Wed, 25 Nov 2026 00:32:28 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 65B49606A31E X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=jcayB5wbddvbJv+RlR0Gq8xz5JzClNUc+dvRG47re24=; b=HK8UfW9N/Ll4P255xwebaLZL+A upenHWed5xaZmy91K8XtHXS13Hfir36MApHVg6DZJfI6UnrTCrvi7hBG92/J1eQodY5nfeZtnLKdH 2JuCyFn5i8GkRGUu5PwNJAAAqk6wxD16dy+eY2qfZ5MMrk+qbDlxJOIQNdud0eeIBCwE=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xW0vu-001Cc2-QP; Wed, 25 Nov 2026 01:32:22 +0100 X-Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.whitehead@microchip.com, UNGLinuxDriver@microchip.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, linux@armlinux.org.uk, Raju.Lakkaraju@microchip.com, maxime.chevallier@bootlin.com, yuiko.oshino@microchip.com, nb@tipi-net.de, woojung.huh@microchip.com 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: <ef118120626788ecb28b9d38283ca0130625f921.1795027003.git.cbabroski@nvidia.com>