Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753609AbbGaO1K (ORCPT ); Fri, 31 Jul 2015 10:27:10 -0400 Received: from skprod2.natinst.com ([130.164.80.23]:59028 "EHLO ni.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751235AbbGaO1I (ORCPT ); Fri, 31 Jul 2015 10:27:08 -0400 Date: Fri, 31 Jul 2015 09:27:06 -0500 From: Nathan Sullivan To: David Miller Cc: f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net/phy: micrel: Reenable interrupts during resume Message-ID: <20150731142706.GA11442@nathan3500-linux-VM> References: <1438269348-8725-1-git-send-email-nathan.sullivan@ni.com> <20150730.100034.1983500409184401997.davem@davemloft.net> <20150730230905.GA9355@nathan3500-linux-VM> <20150731.002204.2044640569422262574.davem@davemloft.net> MIME-Version: 1.0 In-Reply-To: <20150731.002204.2044640569422262574.davem@davemloft.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-MIMETrack: Itemize by SMTP Server on US-AUS-MGWOut1/AUS/H/NIC(Release 8.5.3FP6 HF1218|December 12, 2014) at 07/31/2015 09:27:06 AM, Serialize by Router on US-AUS-MGWOut1/AUS/H/NIC(Release 8.5.3FP6 HF1218|December 12, 2014) at 07/31/2015 09:27:06 AM, Serialize complete at 07/31/2015 09:27:06 AM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-07-31_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1757 Lines: 37 On Fri, Jul 31, 2015 at 12:22:04AM -0700, David Miller wrote: > From: Nathan Sullivan > Date: Thu, 30 Jul 2015 18:09:05 -0500 > > > On Thu, Jul 30, 2015 at 10:00:34AM -0700, David Miller wrote: > >> From: Nathan Sullivan > >> Date: Thu, 30 Jul 2015 10:15:48 -0500 > >> > >> > Changes for V2: Actually make sure it compiles this time. > >> > >> If V1 didn't compile, even for you, then I have a big problem. > >> > >> And that problem is that you didn't test this change at all. > > > > Sorry about that, I have tested it against 3.14, which is why I had > > the older interrupt function in v1. On HEAD, the phy no longer > > suspends when ethernet goes down on our hardware - I'm still working > > on figuring out why. I'm also surprised no one noticed this behavior > > before I did, but if the phy never goes into suspend you wouldn't. > > I think you should sort out the PHY suspending issue before we move > forward with this patch. I believe I found the issue, we are using this PHY with cadence macb as the MAC. The driver currently turns off the management port in macb_reset_hw, which we have stopped with a local change since our hardware typically has multiple phys on one mdio bus. That also prevents phy suspend from working correctly, since the bus goes down before the phy state machine can stop the phy. In our local patch, we have macb_reset_hw keep the mdio bus on if it's on already. Does that sound like an acceptable fix to you? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/