Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1138457imm; Wed, 1 Aug 2018 10:49:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeViRc11Pjize/UC6Lymwm0TwDduPtpt2r2hOP0P9edYFw8wjX8vHb1WksJ5/NCmIGJYaZR X-Received: by 2002:a63:e0b:: with SMTP id d11-v6mr25494124pgl.134.1533145772381; Wed, 01 Aug 2018 10:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533145772; cv=none; d=google.com; s=arc-20160816; b=v/lM4+NPfA2t5SeQFI11ASs5mdSmPieuJeAX+iW75b3ii/WUySOAzHOAInhOvlhcZJ 67HfK0DhjS+GFK+IjAYc9ikrX0fTbOIXQbtNnP7HtqCYqMh2mmTc00MWMaljn3XJShk2 kH+XyBsoH2YtDMNKQuPJ3UrkTQalTTuO9K2oGJOtt//FeZE3AsZmaB65VA9hOiOXyj/4 bacTzYWL5J7wy4JwozUclfmzTXU8H5R3p77AQ12ztst06RkE9FkCiSRRMm5mpI2LyoU/ Z2aGeAMLjKCBtfAke+1EEXemTwCIceCyjemiES9q5kE+wOwdDhorHHYUEC+N+QY92DN0 bAww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=sD/AGkBbu+szJ0yJjYGJTeDNJlkPR9OGnMloxkaI80k=; b=kdNLivSXG5wWvBDarOlRAx2mLexmfFiqFPuwcxZd37gGVn5h2BGWM2i9fLI55VvUo4 YKbNPktb20F0CJJzyIqa8Bd/Y7X10IEa/vadMOsx2apjt6tMcBO9MGR/u/L+xq6GTaWB CP1giqzY+5T99s2sbSUEHzal8BVQicbiSMb+Gacd2CUO0FtI5kH13YtSlZ4FuAelUj53 24dub4gweHtfle8a5yELJdTcur7uxnh9LuxIJvC4TGOZNL5TLIyTVJB+aXKBY7DjiqBy CHzIGk20fGYYMMsFUCaHtuOhVEl3UPorr2cI/15IpGxjIWTheXk6/I66S+MtaHW6CE2X f44A== 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 j8-v6si15462093pll.493.2018.08.01.10.49.17; Wed, 01 Aug 2018 10:49:32 -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 S2406552AbeHATLI (ORCPT + 99 others); Wed, 1 Aug 2018 15:11:08 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51122 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406206AbeHATLG (ORCPT ); Wed, 1 Aug 2018 15:11:06 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 04552CC9; Wed, 1 Aug 2018 17:24:23 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Floris Bos , Stefan Wahren , "David S. Miller" Subject: [PATCH 4.14 235/246] net: lan78xx: fix rx handling before first packet is send Date: Wed, 1 Aug 2018 18:52:25 +0200 Message-Id: <20180801165022.997189827@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stefan Wahren [ Upstream commit 136f55f660192ce04af091642efc75d85e017364 ] As long the bh tasklet isn't scheduled once, no packet from the rx path will be handled. Since the tx path also schedule the same tasklet this situation only persits until the first packet transmission. So fix this issue by scheduling the tasklet after link reset. Link: https://github.com/raspberrypi/linux/issues/2617 Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet") Suggested-by: Floris Bos Signed-off-by: Stefan Wahren Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/usb/lan78xx.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -1216,6 +1216,8 @@ static int lan78xx_link_reset(struct lan mod_timer(&dev->stat_monitor, jiffies + STAT_UPDATE_TIMER); } + + tasklet_schedule(&dev->bh); } return ret;