Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3877436ybl; Mon, 26 Aug 2019 01:52:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQnU9lPuLzd56hsAMSOVFsuFkpkZ1V9YRkq3HT9dXzE54FwtaLJbYtnDj38JFp5cRthJr7 X-Received: by 2002:a17:90a:b30f:: with SMTP id d15mr18528943pjr.19.1566809567159; Mon, 26 Aug 2019 01:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566809567; cv=none; d=google.com; s=arc-20160816; b=MPVTqSuTuAhe7Pfh/QhB7ff5DVs9fn1ay/xbbPcB0imbIZhs5PeHl9reLRJ5D6Lxfb Gu2ClUIy/FwDVlQFvF830BcRfSOEZXqcVNm6y5Zfw5KndiLMiZTSPr6ij6+HJ2UY9uuU 4cogJhTB5CPII6tGac36UV8FciH3BbZ5JzmS8AQTsAGvgWOh0ZhKVIn7tCLWGZRln/NH 47PzXDn6HdBqfNRCrDWfdQXAx9mrTI30NDq5jSqCoC4InIModAemIFpes9iTZVRxFxXj BnGMi/j1AwH5cIJuV4qr+vHhmlZzRifx8t3SE2r3RZmZ4YJVcIAHPV9IQk+4Nvu/rI4W 1c5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :authenticated-by; bh=KIzGy8xS13+LaMivsF3ieee2IS/HrhfrCbjOpILHFDU=; b=Dz3t2AVONxgzJshlG9NRkZtXQZGd2qmg/MbA5/AmLAAhzZi7VuCtiPoWsljLgIk27I Xw1pNdlunLNKS5VEIZ6UYeyLcXHjHt0zXaITBENhS3496+vbSb9AhY4tpY/Wiv0Lgedn 7Py7OvN6Y/GYbagu/DjckORZ4gGMwLDGq/cKXtPtkWli4f6Ek/q0oxSbgRkcUWkI/0gU NubCkZgqjdhYJs9BV2PS7dud1TjLXerM1AZhGnCE5vAIC5UM8nTaeW5FVqO3A5kfyppL p/0F/uBvJR4/+PAWmLsXCL1aVvW5VgnibpYMzPTy1pymQ9AHKpGXFx3z1lS0wkEDt1/X 2bVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 185si8401901pgc.522.2019.08.26.01.52.32; Mon, 26 Aug 2019 01:52:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730415AbfHZIlw (ORCPT + 99 others); Mon, 26 Aug 2019 04:41:52 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:37397 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729294AbfHZIlw (ORCPT ); Mon, 26 Aug 2019 04:41:52 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x7Q8fk2j000319, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCASV01.realtek.com.tw[172.21.6.18]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x7Q8fk2j000319 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Aug 2019 16:41:46 +0800 Received: from fc30.localdomain (172.21.177.138) by RTITCASV01.realtek.com.tw (172.21.6.18) with Microsoft SMTP Server id 14.3.468.0; Mon, 26 Aug 2019 16:41:44 +0800 From: Hayes Wang To: CC: , , , Hayes Wang Subject: [PATCH net v2 1/2] Revert "r8152: napi hangup fix after disconnect" Date: Mon, 26 Aug 2019 16:41:15 +0800 Message-ID: <1394712342-15778-318-Taiwan-albertk@realtek.com> X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <1394712342-15778-317-Taiwan-albertk@realtek.com> References: <1394712342-15778-317-Taiwan-albertk@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.177.138] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 0ee1f4734967af8321ecebaf9c74221ace34f2d5. This conflicts with commit ffa9fec30ca0 ("r8152: set RTL8152_UNPLUG only for real disconnection"). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index eee0f5007ee3..ad3abe26b51b 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -4021,8 +4021,7 @@ static int rtl8152_close(struct net_device *netdev) #ifdef CONFIG_PM_SLEEP unregister_pm_notifier(&tp->pm_notifier); #endif - if (!test_bit(RTL8152_UNPLUG, &tp->flags)) - napi_disable(&tp->napi); + napi_disable(&tp->napi); clear_bit(WORK_ENABLE, &tp->flags); usb_kill_urb(tp->intr_urb); cancel_delayed_work_sync(&tp->schedule); -- 2.21.0