Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp192829imm; Wed, 29 Aug 2018 18:10:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZjSvnTzjW4oBnlZ//2R9AGj/FumTZ+cJPIBeTCGRDEQjc5VA3dKUZ44Y38A2Wm7Xax8LGB X-Received: by 2002:a62:9541:: with SMTP id p62-v6mr8332544pfd.194.1535591399928; Wed, 29 Aug 2018 18:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535591399; cv=none; d=google.com; s=arc-20160816; b=KeDKK+RwUMQATxV8cvnYgOZDAOYF5AcVZP3XMM0WGvat8O9rkOYgIaaVlTPdFxr0wa 9v/4oaqqpTAzz0FdFg3isnlvPEX9+GfJuhH8kkKEm7ULDm2pyxv+1dfV02MYJeACNB3E b6zGUyej6fPORydusixYsEVMAbwwKFih9rp/XUfszXt0icNFbmY+CL5OZ0lBP4VJrwUn 9Oh/9wTQq2NF0tGSovQQzrjMAFcMPRRjDyvvewiFyZUFOF7bz10rkjHo1hZuPzCIDEmH BfBD7SS4qMUu8wxCtu08nCuM8gYZvZBqVyPOBIQLA0wDApjNo/CcwjFrnVSROo2ammcV R5hA== 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:from:subject:cc:to:message-id:date :arc-authentication-results; bh=bqwzUO/64RWIF0L79FLTXOCQy+4Th7S+2dAXnGLNev0=; b=oFpzwf27QkIrCF6MJ44Pcwrr5Dk8JFjGg4tx1P+C3man81WxMyRwfkzJSgWLKDdu1a xvWHVQhnzUlN0/JdtL49MLMUYZf7TcLaFBAlFJ3T8ahodBGK1DIPjzIghv9UeMw/4PS6 YLiKnhODDUoIMK5sgpdmwoJROJYVNeRbJVk6f4W3qaKiWOHY+h3kkycLH3XZ7cz6hwO2 G2wl7AlkYe6wfLGTBdiGa7qSq6POAByKFsA7xHW3AROD7vKA3pTMvLcr3sEgyyBpZ8Yw GNE9L3c9LtzVTuTNeP5l2jDFiBY9obzOJFHx/8QTKsWI0PeDqh7n42so/T25n3p1XnzR wknA== 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 a65-v6si5120412pge.694.2018.08.29.18.09.45; Wed, 29 Aug 2018 18:09:59 -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 S1727251AbeH3FIN (ORCPT + 99 others); Thu, 30 Aug 2018 01:08:13 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:39256 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbeH3FIN (ORCPT ); Thu, 30 Aug 2018 01:08:13 -0400 Received: from localhost (74-93-104-98-Washington.hfc.comcastbusiness.net [74.93.104.98]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 010F7108F4390; Wed, 29 Aug 2018 18:08:39 -0700 (PDT) Date: Wed, 29 Aug 2018 18:08:39 -0700 (PDT) Message-Id: <20180829.180839.1488343012807365399.davem@davemloft.net> To: lipeng321@huawei.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, yisen.zhuang@huawei.com, salil.mehta@huawei.com Subject: Re: [PATCH V2 net 0/2] net: hns: fix some bugs about speed and duplex change From: David Miller In-Reply-To: <1535335170-111030-1-git-send-email-lipeng321@huawei.com> References: <1535335170-111030-1-git-send-email-lipeng321@huawei.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 29 Aug 2018 18:08:40 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Li Date: Mon, 27 Aug 2018 09:59:28 +0800 > If there are packets in hardware when changing the spped > or duplex, it may cause hardware hang up. > > This patchset adds the code for waiting chip to clean the all > pkts(TX & RX) in chip when the driver uses the function named > "adjust link". > > This patchset cleans the pkts as follows: > 1) close rx of chip, close tx of protocol stack. > 2) wait rcb, ppe, mac to clean. > 3) adjust link > 4) open rx of chip, open tx of protocol stack. Series applied, thank you.