From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751947AbdGAPR1 (ORCPT ); Sat, 1 Jul 2017 11:17:27 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:41201 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751389AbdGAPR0 (ORCPT ); Sat, 1 Jul 2017 11:17:26 -0400 Date: Sat, 1 Jul 2017 17:17:07 +0200 From: Andrew Lunn To: linyunsheng Cc: davem , "f.fainelli" , huangdaode , "xuwei (O)" , "Liguozhu (Kenneth)" , "Zhuangyuzeng (Yisen)" , Gabriele Paoloni , John Garry , Linuxarm , Salil Mehta , "lipeng (Y)" , tremyfr , netdev , linux-kernel Subject: Re: [PATCH NET V5 2/2] net: hns: Use phy_driver to setup Phy loopback Message-ID: <20170701151707.GA5859@lunn.ch> References: <1498443039-134503-3-git-send-email-linyunsheng@huawei.com> <20170626134235.GC2623@lunn.ch> <17132762-9b94-bc32-fee8-e90a6db5762a@huawei.com> <20170627132958.GA9921@lunn.ch> <3d382bc6-f7b6-9df3-8bb0-fee55b72ac74@huawei.com> <20170628202819.GA22815@lunn.ch> <1bff07ed-d423-dfa2-61e3-3f35c4536632@huawei.com> <20170629135648.GD9244@lunn.ch> <20170630133915.GD17212@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 01, 2017 at 11:57:32AM +0000, linyunsheng wrote: > Hi, Andrew > > I am agreed wih you on this. > But self test is also a feature of our product, and our > customer way choose to diagnose a problem using > self test, even if self test does not give a clear > reason to the problem. > we don't want to remove a feature that we don't > know when our customer will be using. Far enough. So please take a close look at the code and try to fix it. The corner cases are your problem, a down'ed interface, WOL, etc. It is issues like this which can result in phy_resume() being called without there first being a phy_suspend. Andrew