Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp479025yba; Mon, 1 Apr 2019 10:07:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxm8RxdHhbYd/d2dueuK+b10rhtd/W0384i306j/8tdGBCF6oneSWflr63ArvbfJ+HQFwnl X-Received: by 2002:a63:4a5a:: with SMTP id j26mr52088346pgl.361.1554138426051; Mon, 01 Apr 2019 10:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554138426; cv=none; d=google.com; s=arc-20160816; b=m5pdWKqqwfgwV2OQT6bp6J2UlN0HgtnkylNqe7R14VycA0FZ1yHyxvy2n1pUwwqeUT MFWoLiOb3fhSLq9YcxFihEca0MzXOo5qC2bReJ2FYQF5VjzOCQvVfVm0hlSwZ2P3a/yH rlLqxH94Ch1JLZTeZhK66WbyD2I0S8oJjc0gam1TV6enjMIntDX+UwkZVV1qlASx8ARE TBQqXt5259PmvIb381Bgbfp3q3ccC6tMxy3DievfHVWbsn9IKySX8NpeFEzeGX3KHMcd mP5TsR+EboxlgCynUBLvb/sRJaB+YbimaEEoM/Ud0Gd1d84JWSECOeU4f1ogO/bD3oV2 OY+A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=P5biOM3tJ0uZs/eP9kAdlTxrLSrh313BqMse0vTThrg=; b=MK4bHINILku7+ebK/O1nueOicxTFoz+bcmI59LZe5L10YthuFNAPwTXVBVk7827ww2 tF9dEVrblzX35pnuMolAgIHFUGGWx5ytvFIYjES4ChtTgDpcWQg7CqzNuSjvtjfFKn5/ s2SdtkMcy3CYyykNK1xPxR796qYsmBPDNe5jV1g4mhA/CJfxAHnJczKOtSBufxbDBSNs ta5ijuMN2yG2WWkuDQc3gDra4AzVLw0W+2HNC9vGYTzh89yy+9jWRxhnGA9UCCLLgND8 uK0P/wFf+X3dYezTg820qgtZE57DFxEp3GJoHMenUZRxkrs1n7c40+tMS5byfq4zJaIR HxPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Qq43wv6+; 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 c24si1589980plo.220.2019.04.01.10.06.50; Mon, 01 Apr 2019 10:07:06 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Qq43wv6+; 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 S1728993AbfDARFf (ORCPT + 99 others); Mon, 1 Apr 2019 13:05:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:50722 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727074AbfDARFd (ORCPT ); Mon, 1 Apr 2019 13:05:33 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6F89721929; Mon, 1 Apr 2019 17:05:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554138333; bh=KjLzLBfuQ2nPaUjm5LYO5Yja9gtR3dXnjiZFOrhbc4Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qq43wv6+bNYfAl2M9pypwrRDwo8eKJGKZbL2T4sVnCg8FEnFn+Nhsroy1DTSuTqp+ V/X1usx62i/eNDyYg0rR8W8tSdC9sLkJZnSDMowWJXPVs5v6SGgM6NJpfg0bWAjwVs eERIXGKgiafN/nCiZLCg7TOoM7j3iEXmfdUsDla4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bartosz Skrzypczak , Heiner Kallweit , "David S. Miller" Subject: [PATCH 5.0 034/146] r8169: fix cable re-plugging issue Date: Mon, 1 Apr 2019 19:00:46 +0200 Message-Id: <20190401170051.392648960@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190401170048.449559024@linuxfoundation.org> References: <20190401170048.449559024@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 5.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Heiner Kallweit [ Upstream commit 23c78343ec36990709b636a9e02bad814f4384ad ] Bartek reported that after few cable unplug/replug cycles suddenly replug isn't detected any longer. His system uses a RTL8106, I wasn't able to reproduce the issue with RTL8168g. According to his bisect the referenced commit caused the regression. As Realtek doesn't release datasheets or errata it's hard to say what's the actual root cause, but this change was reported to fix the issue. Fixes: 38caff5a445b ("r8169: handle all interrupt events in the hard irq handler") Reported-by: Bartosz Skrzypczak Suggested-by: Bartosz Skrzypczak Tested-by: Bartosz Skrzypczak Signed-off-by: Heiner Kallweit Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/realtek/r8169.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c @@ -6435,7 +6435,7 @@ static irqreturn_t rtl8169_interrupt(int set_bit(RTL_FLAG_TASK_RESET_PENDING, tp->wk.flags); } - if (status & RTL_EVENT_NAPI) { + if (status & (RTL_EVENT_NAPI | LinkChg)) { rtl_irq_disable(tp); napi_schedule_irqoff(&tp->napi); }