Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp878471pxk; Thu, 17 Sep 2020 20:07:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTx801WTj5RIZlXavUSOr7bFUm83I1Uejn2hyJqG4U9kq0Jx1e4EszGvYQL/zgsgHAzqCl X-Received: by 2002:a17:906:a156:: with SMTP id bu22mr35505850ejb.177.1600398446720; Thu, 17 Sep 2020 20:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600398446; cv=none; d=google.com; s=arc-20160816; b=1EPYPnh/bzqZlq0p83cFAPd7dOBpE4KI2xD6j3IFlkX07BDnhyC0XeA3emdZHtxR1C OVkrHimkYA3TN5Rpb94FP8g6OVrOmVNjEs32K1oG3Yq5yQnMEYkQik6lqQz8rrAADO2r 9dFEo3gHRCT98t3NyPJaHJF2b3QcfO24OUnlMJhve7CZSxnWgP6d04kwGlpMUkO9Hjgx NKgB08p9oRfmynQJQft0VTa9IxoYuhhcro2dTYJTkGt4AiqPDNjgxciiuXd/T7cl1+07 d2upSoM21MHLukwLCxv+Id6RNCa3hD978LRyKRZnksbISTUdxuKsaVnVpqiF2FQ+oWgk Y3uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4ByQ23tf6rcex2H4hKkejInG7NHMokvL4CzYMHPTjHc=; b=BCSLI1/RkhQNeOmTdkfZi4J1os5nkza9SCW7H90Kax4SvVrOMS0bsMLnuOjvvd4mXs HX4fPRN+632m/pre+iDPBgZJiHWbdEaYvGzZl2E/g4Vba9cV4FZ+X5cwQeJ1yX++bNaJ J3PCVSheZrIWxdfPT+fRWkrewEApZVeTCWK01nkH+qb6NobeUunlcqrhaVNgHO8K4zwR nURfPcVqModzTV/HLPnKiDwll+zzinoryKlGpmGWETspNcHAJo4XF/MoI72fNTGKJN6a pzCsfze4c9UuWBQuk/LeUzggIRBceRdDDAhRr/rmNeLgTwtRQmcl5T55Ixicmqk/fgLV nZ+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="jBCg/h90"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f18si1141295edm.539.2020.09.17.20.07.03; Thu, 17 Sep 2020 20:07:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="jBCg/h90"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730562AbgIRDDZ (ORCPT + 99 others); Thu, 17 Sep 2020 23:03:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:53020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727432AbgIRCFD (ORCPT ); Thu, 17 Sep 2020 22:05:03 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 647C923600; Fri, 18 Sep 2020 02:05:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600394703; bh=OaIXy9pjhG6VdpJctz+9+sMtzA7P+US57dK2OhFZ3jE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jBCg/h906DTP2M2PxPXt14uEbxwMSicm6zK99WmwS5RLDvtKVJJfOgvE/grjF/9O1 VN2Z2iTdYURVhvY60a0UmSVYJQTKtJ4b7lYiTLuI106ndzYj9nb67CN+p7CZv1AJfU EaUQY5Q9Yd94st9AjfLQjQm/nql9+PFu5lndgh6Y= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Heiner Kallweit , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 189/330] r8169: improve RTL8168b FIFO overflow workaround Date: Thu, 17 Sep 2020 21:58:49 -0400 Message-Id: <20200918020110.2063155-189-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200918020110.2063155-1-sashal@kernel.org> References: <20200918020110.2063155-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Heiner Kallweit [ Upstream commit 6b02e407cbf8d421477ebb7792cd6380affcd313 ] So far only the reset bit it set, but the handler executing the reset is not scheduled. Therefore nothing will happen until some other action schedules the handler. Improve this by ensuring that the handler is scheduled. Signed-off-by: Heiner Kallweit Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/realtek/r8169_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index 6fa9852e3f97f..903212ad9bb2f 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -6256,8 +6256,7 @@ static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance) if (unlikely(status & RxFIFOOver && tp->mac_version == RTL_GIGA_MAC_VER_11)) { netif_stop_queue(tp->dev); - /* XXX - Hack alert. See rtl_task(). */ - set_bit(RTL_FLAG_TASK_RESET_PENDING, tp->wk.flags); + rtl_schedule_task(tp, RTL_FLAG_TASK_RESET_PENDING); } rtl_irq_disable(tp); -- 2.25.1