Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753078Ab0H0VWc (ORCPT ); Fri, 27 Aug 2010 17:22:32 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:42537 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752655Ab0H0VWa (ORCPT ); Fri, 27 Aug 2010 17:22:30 -0400 Date: Fri, 27 Aug 2010 14:22:17 -0700 From: Stephen Hemminger To: "Moffett, Kyle D" Cc: "linux-kernel@vger.kernel.org" , Kyle Moffett , "netdev@vger.kernel.org" Subject: Re: [PATCH 2/2] sky2: Add unidirectional fiber link support Message-ID: <20100827142217.5fccc098@nehalam> In-Reply-To: <81DAD951-0909-4D3A-8451-AEE3F9B07054@boeing.com> References: <1282938138-17844-1-git-send-email-Kyle.D.Moffett@boeing.com> <12 82938138-17844-3-git-send-email-Kyle.D.Moffett@boeing.com> <20100827133825.494b8098@nehalam> <81DAD951-0909-4D3A-8451-AEE3F9B07054@boeing.com> Organization: Linux Foundation X-Mailer: Claws Mail 3.7.5 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1641 Lines: 27 On Fri, 27 Aug 2010 15:51:58 -0500 "Moffett, Kyle D" wrote: > On Aug 27, 2010, at 16:38, Stephen Hemminger wrote: > > On Fri, 27 Aug 2010 15:42:18 -0400 Kyle Moffett wrote: > >> + /* > >> + * Once interrupts are reenabled, reset the PHY again to make sure > >> + * that we didn't miss a link-up interrupt. This is especially > >> + * likely to occur if we're in fiber-txonly mode, as a link-up > >> + * interrupt is generated almost immediately after we finish > >> + * programming the PHY. > >> + */ > >> + sky2_phy_reinit(sky2); > > > > Won't this cause a renegotiation causing up to 2 second delay? > > Well, I suppose that's possible, but we've only just reset and enabled the PHY moments before, so I don't see where you could get an *extra* 2-second delay. On the other hand, I suppose it would be much nicer if there was an easy way to fake an extra interrupt there instead of reinitializing the whole PHY. I'm not all that comfortable with my understanding of the interrupt logic in the sky2 driver, so I figured I would just reuse all the necessary locking from sky2_phy_reinit(). > > Do you have any comments or criticisms of the particular "duplex" method of configuring the unidirectional link support? No that is fine, but the FIB doesn't really understand RX only links so I expect users will do stupid things. -- 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/