From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Cochran Subject: Re: [PATCH 1/5] ptp: Added a brand new class driver for ptp clocks. Date: Thu, 19 Aug 2010 11:22:47 +0200 Message-ID: <20100819092246.GA8484@riccoc20.at.omicron.at> References: <201008171336.29375.arnd@arndb.de> <20100818140440.GA22655@riccoc20.at.omicron.at> <201008181702.03384.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <201008181702.03384.arnd-r2nGTMty4D4@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Arnd Bergmann Cc: Rodolfo Giometti , john stultz , devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Krzysztof Halasa List-Id: devicetree@vger.kernel.org On Wed, Aug 18, 2010 at 05:02:03PM +0200, Arnd Bergmann wrote: > You might want to use callbacks for these system calls that you > can register to at module load time, like it is done for the > existing syscalls. Can you point me to a specific example? > The simpler way (e.g. for testing) is using Kconfig dependencies, like > > config PTP > bool "IEEE 1588 Precision Time Protocol" > > config PPS > tristate "Pulse per Second" > depends on PTP || !PTP > > The depends statement is a way of expressing that when PTP is enabled, > PPS cannot be a module, while it may be a module if PTP is disabled. THis did not work for me. What I got was, in effect, two independent booleans. Thanks, Richard