From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH V2 net 0/2] net: hns: fix some bugs about speed and duplex change Date: Wed, 29 Aug 2018 18:08:39 -0700 (PDT) Message-ID: <20180829.180839.1488343012807365399.davem@davemloft.net> References: <1535335170-111030-1-git-send-email-lipeng321@huawei.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, yisen.zhuang@huawei.com, salil.mehta@huawei.com To: lipeng321@huawei.com Return-path: In-Reply-To: <1535335170-111030-1-git-send-email-lipeng321@huawei.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.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.