Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751317AbVIHL6W (ORCPT ); Thu, 8 Sep 2005 07:58:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751274AbVIHL6W (ORCPT ); Thu, 8 Sep 2005 07:58:22 -0400 Received: from relay.uni-heidelberg.de ([129.206.100.212]:56774 "EHLO relay.uni-heidelberg.de") by vger.kernel.org with ESMTP id S1751317AbVIHL6U (ORCPT ); Thu, 8 Sep 2005 07:58:20 -0400 Date: Thu, 8 Sep 2005 13:58:05 +0200 (CEST) From: Bogdan Costescu To: Jeff Garzik cc: Linux Kernel Mailing List , Andrew Morton , Netdev List Subject: Re: [PATCH] 3c59x: read current link status from phy In-Reply-To: <431F9899.4060602@pobox.com> Message-ID: References: <200509080125.j881PcL9015847@hera.kernel.org> <431F9899.4060602@pobox.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: 1013 Lines: 27 On Wed, 7 Sep 2005, Jeff Garzik wrote: >> The phy status register must be read twice in order to get the actual link >> state. Can the original poster give an explanation ? I've enjoyed a rather well functioning 3c59x driver for the past ~6 years without such double reading. Plus: - this operation is I/O expensive - it is performed inside a region protected by a spinlock - it is performed often, every 60 seconds Is there some specific hardware that exhibits a problem that is solved by this double reading ? -- 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/