Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030214AbVIIKKT (ORCPT ); Fri, 9 Sep 2005 06:10:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030215AbVIIKKT (ORCPT ); Fri, 9 Sep 2005 06:10:19 -0400 Received: from relay.uni-heidelberg.de ([129.206.100.212]:5006 "EHLO relay.uni-heidelberg.de") by vger.kernel.org with ESMTP id S1030214AbVIIKKR (ORCPT ); Fri, 9 Sep 2005 06:10:17 -0400 Date: Fri, 9 Sep 2005 12:10:04 +0200 (CEST) From: Bogdan Costescu To: Andy Fleming cc: Linux Kernel Mailing List , Netdev Subject: Re: [PATCH] 3c59x: read current link status from phy In-Reply-To: <62AA8EFA-7D65-4E87-B71F-55A07321011E@freescale.com> Message-ID: References: <200509080125.j881PcL9015847@hera.kernel.org> <431F9899.4060602@pobox.com> <1126184700.4805.32.camel@tsc-6.cph.tpack.net> <1126190554.4805.68.camel@tsc-6.cph.tpack.net> <62AA8EFA-7D65-4E87-B71F-55A07321011E@freescale.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1481 Lines: 36 On Thu, 8 Sep 2005, Andy Fleming wrote: > The new PHY Layer (drivers/net/phy/*) can provide all these features > for you without much difficulty, I suspect. As pointed to be Andrew a few days ago, this driver supports a lot of chips - for most of them the test hardware would be hard to come by and the documentation even more. Unless you'd like to do it based on "whoever is interested should cry loud"... > The layer supports handling the interrupts for you, or (if it's > shared with your controller's interrupt) Yes, there is only one interrupt that for data transmission (both Tx and Rx), statistics, errors and (for those chips that support it) link state change. > Is the cost of an extra read every minute really too high? You probably didn't look at the code. The MII registers are not exposed in the PCI space, they need to be accessed through a serial protocol, such that each MII register read is in fact about 200 (in total) of outw and inw/inl operations. -- Bogdan Costescu IWR - Interdisziplinaeres Zentrum fuer Wissenschaftliches Rechnen Universitaet Heidelberg, INF 368, D-69120 Heidelberg, GERMANY Telephone: +49 6221 54 8869, Telefax: +49 6221 54 8868 E-mail: Bogdan.Costescu@IWR.Uni-Heidelberg.De - 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/