From: Richard Cochran Subject: Re: [PATCH 12/12] ptp: Added a clock driver for the National Semiconductor PHYTER. Date: Wed, 16 Jun 2010 12:05:39 +0200 Message-ID: <20100616100539.GA3569@riccoc20.at.omicron.at> References: <37f5015b186bdd51f8451ade042f90c8b39a5cc8.1276615626.git.richard.cochran@omicron.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Krzysztof Halasa To: Grant Likely Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:55913 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752200Ab0FPKEx (ORCPT ); Wed, 16 Jun 2010 06:04:53 -0400 Received: by fxm10 with SMTP id 10so616871fxm.19 for ; Wed, 16 Jun 2010 03:04:52 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Jun 15, 2010 at 12:49:13PM -0600, Grant Likely wrote: > Won't this break things for existing DP83640 users? Nope, the driver was only added five patches ago, and it only offers the timestamping stuff. The standard PHY functions just call the generic functions, so the PHY works fine even without this driver. > > +static struct ptp_clock *dp83640_clock; > > +DEFINE_SPINLOCK(clock_lock); /* protects the one and only dp83640_clock */ > > Why only one? Is it not possible to have 2 of these PHYs in a system? Yes, you can have multiple PHYs, but only one PTP clock. If you do use multiple PHYs, then you must wire their clocks together and adjust the PTP clock on only one of the PHYs. Thanks for your other comments, Richard