Received: by 10.223.185.116 with SMTP id b49csp5495859wrg; Wed, 7 Mar 2018 12:47:50 -0800 (PST) X-Google-Smtp-Source: AG47ELtRw2mQuVuM6RBv0kYJrdCTwmxMHxdKDTz35ArLWHcWF094lsHJtal+Voz9m542ipLD0LMh X-Received: by 10.98.72.204 with SMTP id q73mr23977403pfi.48.1520455670312; Wed, 07 Mar 2018 12:47:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520455670; cv=none; d=google.com; s=arc-20160816; b=jZVXEIh9tETm8Ub6DxaqsCfRqLWcH2tKq/TzoUjmEoJI8lxT6Px8bM36ieG2pE5401 SIONHYvuN5bmZhCXeFa4EziiYE0dtSembKKVk/t6TQlgxMiyGl7xogSHa6QwZQbwTnb7 n3TiyRvzTh1jpSp/R58zDOAqQ3HgxrVNdPhonrBs8MR9ureqYvNrNkN7+PK21DcNuK+c m7skwe9GeofTVwlV5QHSYfJPq5RCx/GmbrCmyCFJBBodBojMPllgb7yT09rLqL5OM58S Hh2RNdFCXu39i5+EeAY29RNitUW+PqJ53m5OQ246FPETHQxxd/22rD/ENbiGVUTHYbcp DnCw== 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=UJ5ikArwJVOLExTQxUehTTc34gCe2y4hh4YPZnH4zyA=; b=XHXdVAXbXJiuUCyuQIjc+uE8bGIecFGhMZsA6C83TjaZIZpF+KvKYOYb7MdZcmM0Dr h/pMsv+VfcMoLIMm/jXyW7bPBTvRPOCKUlEUUpD8AscOu95PPV1D42XuOflz4uVvtfqS T8mqljYL9lAduJ4HbKea5qjh0adZonp54NCOgw552JEpYCIUxSRzQkmtuuP78otvr7i+ OsgZvhY5rzJNGiTUV9k0eA2Ejm/eBa/SqUggFRKxJ3lfMQsJLIr9ooICmXLq5dknmWB9 pDu6pMrS5aMLQ+Esp9LnfGw5H5Bis2tD0bVFbR0MqIgDmvkVCVEwba+YPGRifLSb9jYs xllg== 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 u83si1471801pfj.360.2018.03.07.12.47.36; Wed, 07 Mar 2018 12:47:50 -0800 (PST) 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 S934534AbeCGTlA (ORCPT + 99 others); Wed, 7 Mar 2018 14:41:00 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:40826 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754688AbeCGTk4 (ORCPT ); Wed, 7 Mar 2018 14:40:56 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 11587FBD; Wed, 7 Mar 2018 19:40:55 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Denis Du , "David S. Miller" Subject: [PATCH 4.15 041/122] hdlc_ppp: carrier detect ok, dont turn off negotiation Date: Wed, 7 Mar 2018 11:37:33 -0800 Message-Id: <20180307191734.965892097@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180307191729.190879024@linuxfoundation.org> References: <20180307191729.190879024@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.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Denis Du [ Upstream commit b6c3bad1ba83af1062a7ff6986d9edc4f3d7fc8e ] Sometimes when physical lines have a just good noise to make the protocol handshaking fail, but the carrier detect still good. Then after remove of the noise, nobody will trigger this protocol to be start again to cause the link to never come back. The fix is when the carrier is still on, not terminate the protocol handshaking. Signed-off-by: Denis Du Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/wan/hdlc_ppp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/drivers/net/wan/hdlc_ppp.c +++ b/drivers/net/wan/hdlc_ppp.c @@ -574,7 +574,10 @@ static void ppp_timer(struct timer_list ppp_cp_event(proto->dev, proto->pid, TO_GOOD, 0, 0, 0, NULL); proto->restart_counter--; - } else + } else if (netif_carrier_ok(proto->dev)) + ppp_cp_event(proto->dev, proto->pid, TO_GOOD, 0, 0, + 0, NULL); + else ppp_cp_event(proto->dev, proto->pid, TO_BAD, 0, 0, 0, NULL); break;