Article View: linux.kernel.netdev
Article #9334Re: [PATCH net v2] net: usb: lan78xx: let unregister_netdev() stop phylink
From: Andrew Lunn
Date: Sun, 01 Nov 2026 19:22
Date: Sun, 01 Nov 2026 19:22
23 lines
9240 bytes
9240 bytes
On Sun, Nov 01, 2026 at 01:26:28PM +0800, YuanZhe Liu wrote:
> Hi Andrew,
>
> Yes, I did, but it ended up at the bottom of my reply to the sashiko-bot
> review, which was not the right place for it. Here it is directly.
>
> e110bc825897 is the commit that introduced the call which warns. Before
> it, lan78xx_disconnect() did:
>
> unregister_netdev(net);
> ...
> phydev = net->phydev;
> phy_disconnect(net->phydev);
>
> and phy_stop() only existed in lan78xx_stop(), guarded by
> "if (net->phydev)". So disconnect never called phy_stop() on a PHY that
> had not been started, and the warning was not reachable from this path.
Yes, thanks. I see this patch puts things back into the same order as
before phylink was introduces, so it is correct.
Andrew
Technical Details
Message-ID:
<2af2ac6e-7993-4566-92ed-c22eb7541bf7@lunn.ch>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354314-linux-kernel-netdev=dewy.ruReferences:
<20261031165213.2738-1-25031212351@stu.xidian.edu.cn> <e71cccdf-59e5-407c-b536-9dd47a49b0a7@lunn.ch> <179351078879.2591.15287457752530436149@stu.xidian.edu.cn>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-354314-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2] net: usb: lan78xx: let unregister_netdev() stop phylink Date: Sun, 1 Nov 2026 20:22:30 +0100 Organization: Usenet Network Message-ID: <2af2ac6e-7993-4566-92ed-c22eb7541bf7@lunn.ch> References: <20261031165213.2738-1-25031212351@stu.xidian.edu.cn> <e71cccdf-59e5-407c-b536-9dd47a49b0a7@lunn.ch> <179351078879.2591.15287457752530436149@stu.xidian.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2750856"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:RpVAUPChGAyvEIZViiahT0Rmzf4= sha256:0h0JHYbXvk0m+CV4CmaYg6cGse3dc52Qg9aTGhaJl0I= sha1:epOX4KNiql7453tHcOh43wreew8= sha256:GQZ2K7KZeqmV+qwTMATtFqsQ7rQHi8BaNRgcOiAKjj4= 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 24D9211237B; Sun, 1 Nov 2026 22:29:40 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.949 X-Spam-Status: No, score=-1.949 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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 6i_1z_96Mx32; Sun, 1 Nov 2026 22:29:37 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-354314-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 8620B112378; Sun, 1 Nov 2026 22:29:28 +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 AD37929D4D; Sun, 1 Nov 2026 19:22:55 +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=1793560971; b=PTEisTcy+AY8VZVIzrs9fDC4S6rF2gKmnb0CLiz/33h1BEkYCd9m2w7uctBVLjqxPDHK 9Bs/IbliCbYu2VCgIUVy7Cc25zH+XHySfYZE48rHnme77S0HDK4QGB6yt32uLr4abm+Ba 2kCx0HrSxmyEUl2lS318pIlBhuSTnZ/lnMuzjt0eEVGJb6Ciml9Ulkbw45fTvwmzaT/rQ mHNHGLXkYkFHoRWVMD/aYYq1tfY5plgjluqCQGBIGk4IzMp6A68fNQIfxZbrBqcKO+E4M PIwLV824T46a8KQdgRWtE3ikkARjb5LUpEDjqpM617ECmtRWYUfIhp3FgOLWFdkjfZQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793560971; 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=kkgPxlepizBLlXhgw2TsN5llBrLCoHqm+pT/V03Io8Q=; b=D6a28zvV7iJYR7S1BFHMvNmgsOGJqcULypu6ZFOYGUj1zlJrH7cfCyeMv1DbHjYnfrnd V08/a+u8L1Z5UHCvqVc2adDvLLIe0pOGojW0ZayfLwoflMYL+yIyFIa2NKI7QjueeI7BM FXKe/TCKuEPV/4kjiXkee7cswTo6m+iNNvepWlXoAWPjKvHHn9GxUk9ytSwwq7QinUIKS d1AwMJ9tdSiD9Tz1mfsoM75w110+m2D25Hg/uASQZgtPE4Z9zuO8IgmpWY1hcOg7aXnm5 MCOTRwpfcHVh9J4X2kVTU56WAn4yZbHpuaDAToyR94NaX6zMaIg0u3+unqwwjzGCO/w== 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=nC6Qxexc; 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 81567606A332; Sun, 1 Nov 2026 19:22:51 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=nC6Qxexc 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=1793560965; b=cNtY0dom01XCGnifLtfQL8DT+hIz5Hq8Rg14vw1ip8CwmSXvJjou6Ox5cvXN72HCa3gV ZCEzmNNQlesMpNzM/aRiIA4+xukZ93ToEpttB9/AnEiY9T9U4N0QFr2U1XZ/ZO+uCv3HQ pTm8YUqq1R+4BROXkf7BKgu83uXco2Iwe3wpdckcSBMsy/Xv2OWQTNS5+gdv0Ieu7qcnz 6495FlWrNSe5rxNxMCrCZuCdsfHrxeaSQVcy9ziMBur9GmnOapEwXCUarQAIgmKxWaR7h zxuf2u2JtGuSCyl1VYK7JQJS8OGTPILHRnMlajxBC0NVYewUubnBnfTyLpOu23gtFAQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793560965; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=kkgPxlepizBLlXhgw2TsN5llBrLCoHqm+pT/V03Io8Q=; b=AdtuQEJncL+HrireYWiQpHXssOsBqrKJ0Kv9DCuHP3eJTT7uwIMPrmePnBwp6CLLqMlC A82B1MFprbtcewyyL2Sdi4Jcd/oISPU2FOQCp5KGRO2s/Bq7VgDcNnY7XwCvtzRYSn1aP Gi/Zhewf/0uSGIPSeqpFcRJlqSlWTym+58Fa1zpw9eVcHPLa05gq927pBCaLFJdxmtOet jOAsl0pw9TWi1xDiiyPChWWX47A3l2iFJZKR7ueTK3huS1iGJP0sZh9uylgTe0XheFVhz In/9y5wGHD/z7yDa4JfZkG0BKV6hOKMnblp4Yb5dtVmR7uLeNsqBkVAv6X18ajJoSBg== 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=nC6Qxexc; 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 EF722606A32F; Sun, 1 Nov 2026 19:22:44 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EF722606A32F 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=kkgPxlepizBLlXhgw2TsN5llBrLCoHqm+pT/V03Io8Q=; b=nC6Qxexcb1LYHfJcON7cNciq0w P7EAHWaqH7HZ2WdN82kt8onrfeZ+ihZZy7LOkPfWmC28+EQCpsOSY0WTMbuhZApllLfjH/+UM1yiN +vHeRUf1JQ2FoarU7Ne9KBUlRDlkCPcc/d9OjINGbNG3jMJcZukXoCURNWjPUMt/k4FI=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xNb8Q-00DfA5-RQ; Sun, 01 Nov 2026 20:22:30 +0100 X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, Thangaraj Samynathan <Thangaraj.S@microchip.com>, UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King <linux@armlinux.org.uk>, Oleksij Rempel <o.rempel@pengutronix.de>, stable@vger.kernel.org, Bin Yu <byu@xidian.edu.cn>, Cheng Wen <wencheng@xidian.edu.cn> 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: <179351078879.2591.15287457752530436149@stu.xidian.edu.cn>