Article View: linux.kernel.netdev
Article #9812Re: [PATCH net] net: usb: lan78xx: only stop phylink if the network device is running
From: Yuanzhe Liu
Date: Mon, 02 Nov 2026 16:42
Date: Mon, 02 Nov 2026 16:42
35 lines
10756 bytes
10756 bytes
Oleksij, Thanks for the testing, and for both tags. One thing to sort out first: they arrived on the v1 posting, and the patch changed shape in v2, which I posted separately on 2026-10-31: https://lore.kernel.org/netdev/20261031165213.2738-1-25031212351@stu.xidian.edu.cn/ v2 drops the explicit phylink_stop() and moves unregister_netdev() ahead of the phylink teardown instead, so that closing the netdev goes through the normal lan78xx_stop() path. That removes the netif_running() test; and the three cases you reproduced -- never opened, after ifdown, and ifup/ifdown during removal -- are all cases where the interface is not running at that point, so v2 does not call phylink_stop() there either, same as v1. The path that does differ is a removal with the interface up: v1 stopped phylink directly from lan78xx_disconnect(), v2 gets it from lan78xx_stop() via unregister_netdev(). Your "interface open, sending, link up, link down, link flapping" runs cover that path in its v1 form only. If you want to re-run them against v2 before the tags stand on it, that would be welcome; otherwise I will take your Tested-by and Reviewed-by as applying to v2 as posted -- tell me which you prefer. It is also the approach 312c816c6bc3 took for the NAPI teardown, so the shape is not new to this driver. Thanks for checking the pre-phylink kernels too -- that is the direct confirmation of the Fixes: tag Andrew asked about, so I think that question is settled. Thanks, YuanZhe
Technical Details
Message-ID:
<179363774572.24580.9072793556383429188@stu.xidian.edu.cn>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354951-linux-kernel-netdev=dewy.ruReferences:
<20261029160204.2567-1-25031212351@stu.xidian.edu.cn> <auiu2voApMN42KV4@pengutronix.de>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-354951-linux-kernel-netdev=dewy.ru From: 25031212351@stu.xidian.edu.cn (Yuanzhe Liu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: usb: lan78xx: only stop phylink if the network device is running Date: Mon, 02 Nov 2026 16:42:25 -0000 Organization: Usenet Network Message-ID: <179363774572.24580.9072793556383429188@stu.xidian.edu.cn> References: <20261029160204.2567-1-25031212351@stu.xidian.edu.cn> <auiu2voApMN42KV4@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="2985241"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Dqbyueal5EhCoqVxw+T1wm5hrzk= sha256:+A5h5jlSHyX3yYIk2G7ymLRKTmg4l2G+g4wkKhGZTps= sha1:TUSkFYMM1aQ7XPRcDLiTpHry8NM= sha256:snZ6YO6AUPIDn+TT7oVGqrEGYSteMalpKHaoQZHYL7M= 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 8469C1125D3; Mon, 2 Nov 2026 20:39:59 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.518 X-Spam-Status: No, score=-2.518 tagged_above=-9999 required=6.31 tests=[DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FROM_LOCAL_DIGITS=0.001, FROM_LOCAL_HEX=0.331, 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=neutral reason="invalid (public key: not available)" header.d=stu.xidian.edu.cn 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 DsEAtjQpAlyZ; Mon, 2 Nov 2026 20:39:55 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-354951-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=stu.xidian.edu.cn X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 9E59C112393; Mon, 2 Nov 2026 20:39:46 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 2BD5061AD70; Mon, 2 Nov 2026 17:20:21 +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=1793637780; b=bJNZaVU/+MZ/9IdbDAJYqvUAUZcclsg/TZVaudwJni9WpD2m8wK6JirUqW88ccApbP/w NcYYq5uR900XRb+CPjN/kuekarRiM4WkFssIRXCwNMzx06Du/nOUz5ABA4EDHQyYzYyKb b8f2Ee0hMp6+qNKeWOUTIxFOHbM0iHrLfobEOzTSNSJRmLFQgliOw3qfZL5MbtHiq1eXK aHSdkBEmAdXTSOb1f4/9KEzQlpjLGrTMuIJjVqYUFJHKiAZk79UDJiuKBboG6rJR8gjhd 7rKSQYd1KYBx66ouALZMZQzhx07NDlFIFCB/IBGzKW6AjngitIRmabuR8p0oiK3G5mg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793637780; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To: Cc:Subject:Date:Message-ID:In-Reply-To:References:X-Mailing-List: List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe: List-Owner:Precedence:MIME-Version:Content-Type: Content-Transfer-Encoding:X-CM-TRANSID:X-Coremail-Antispam: X-CM-SenderInfo; bh=G+L/X+01awRD9Zn2yY6uBHk6IdsLy18VMtH+UzQPMt8=; b=PKRGV6t46Kbh29lnlxcrY1GHEXXIYwXMzoiaMnkr7fjWAAspqHVI1SfLO5e9jRD6TiRf nmhIYdtDQgQH+EEEzjLkbaLKPCWEByjvGXsT7VGnDXZGjFnJbwzlPMo/tZvGM6m1fWIDT soxx2IUDc/Aj7fTkMU0o1Uzp3vqo3f+tVTHlSExacRVM/uMcC+JJfpA9aWK8x6ddDy02e E6jYoIXwz5WO82axx2zeZNVBtsTktrYdx4gjBhuVCwXkmkVinpHcIAcLSH9X1bi5oMGBi 8Piy+vemrNrkvnF6miRzPWwra3Gnnr1JOW0WEFcumXY+ee3S3e7hWgTuxWQHFD8GCrA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=stu.xidian.edu.cn; spf=pass smtp.mailfrom=stu.xidian.edu.cn; 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 AE33A60A44DB; Mon, 2 Nov 2026 16:43:00 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=162.243.164.118 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793637769; b=uS+lAem8/TCBexoDosqVRpsci8Lxx7J4JsRNTLcgI89DJzPvEJ3ETccf8dcs4G+i063t xhyfmcmcS7cWqdp7B3vWRlpW26Yfm1jTjlRRfcAw3KUd1pxkQXhNZVVPrUa3hyXptGBFN 7XejcnJnkee8e0FhwZBSwIpyto2XbPMGugYg+hHeBSFPKGJj86wQPj9ftjgYd45V4NW1B o+CN7AWzH3x4Tnj8zspQ3AQrbQ6XNUgAbBXoONGwC1KVRf7SNsD+vKqWxikybxNMWRUHC o/2xx9J6mRsN1koMbx+POuJC3jYY2Fu69vDLIzufTq2Smxh8hiEPh5u7ACrn5HSkT8w== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793637769; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding:X-CM-TRANSID:X-Coremail-Antispam: X-CM-SenderInfo; bh=G+L/X+01awRD9Zn2yY6uBHk6IdsLy18VMtH+UzQPMt8=; b=erIHwea8FzywElguWYZu8bP1n5iZYtktJ/G6y+naa+LEAkEx2HvpUAHCEmDijMXo2yD0 rpuIWUYDGJk1PiPQuicQR+LNkdpSJgSrxFTs6tSK0yuXcL/qTQJ3+jaJghaOEzsmoXnjp FFgrBPWng6cMpGkiqr3qjrH919shbjTre+QfqyXaQxlC0t5/ztTz/xdomdWmKU9zdbPUZ gW5PIU8CudP/Pq0hL7Va+YrkQIkxU5lR08mmXfpl+B1RLE6pTuD9dMwZvCMMg/AXDVV6t 0u14LnyEGpRV6q6RLFG1sI3RAYooNQFDqD8N0l1xtsJul40OdH8PvIw14Fcqyp3qFFQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=stu.xidian.edu.cn; spf=pass smtp.mailfrom=stu.xidian.edu.cn; arc=none smtp.remote-ip=162.243.164.118 X-Received: from zg8tmtyylji0my4xnjqumte4.icoremail.net (zg8tmtyylji0my4xnjqumte4.icoremail.net [162.243.164.118]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C01D2606CEC1; Mon, 2 Nov 2026 16:42:45 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C01D2606CEC1 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=stu.xidian.edu.cn X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=stu.xidian.edu.cn X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stu.xidian.edu.cn; s=dkim; h=Received:From:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=G+L/X+01awRD9Zn2yY6uBHk6IdsLy18VMt H+UzQPMt8=; b=FvP3G3nM/YWyb0CUQXAe97VL/z9A23ipl1JBs6K5+zZN5CeHCF PtmlTckYMOhzONXNQMgsW8Cks+BBZs0KyikuQnH4QYIcUA7hmJuugmv8mtpVCxt5 FGaE3naehzaYJrM8H0isweH23zus7NLMRwOdjbWYXmN+qlOmdIfQXRFP0= X-Received: from [169.254.33.71] (unknown [223.160.172.231]) by hzbj-edu-front-2.icoremail.net (Coremail) with UTF8SMTPA id BLQMCkDmKwFwvehqzpoaAQ--.55852S2; Tue, 03 Nov 2026 00:42:27 +0800 (CST) X-Cc: Thangaraj Samynathan <Thangaraj.S@microchip.com>, UNGLinuxDriver@microchip.com, Andrew Lunn <andrew+netdev@lunn.ch>, David S. Miller <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <auiu2voApMN42KV4@pengutronix.de> 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-CM-TRANSID: BLQMCkDmKwFwvehqzpoaAQ--.55852S2 X-Coremail-Antispam: 1UD129KBjvJXoW7Zr1fGrWDZF43ZryrAF18Krg_yoW8XF1Upa y3KFsrGF4kJry2v34xZw47ua48Wrs3Jay3ur15G3yrZws09Fy7ZrW8KrWUZFnrCrsavF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