From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752103Ab0HSJWc (ORCPT ); Thu, 19 Aug 2010 05:22:32 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:45432 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750883Ab0HSJW3 (ORCPT ); Thu, 19 Aug 2010 05:22:29 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=FKU8KA0QDL9WufuThhBSnZ7aJwhPbBx/e8z8GJCy3eJ9si0YwHX3PRA7bkNpQgFjiQ 64e2NtsStTZHV0/teK+P4fl8DjAacjcq7j3j79XXHLStSIsQduyg/zwaL4EBMNmMDU6V 88pW7/X1Gk+0pvTyXfh7rHtaVJQJBiNS9GekI= Date: Thu, 19 Aug 2010 11:22:47 +0200 From: Richard Cochran To: Arnd Bergmann Cc: john stultz , linuxppc-dev@lists.ozlabs.org, Rodolfo Giometti , netdev@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Krzysztof Halasa Subject: Re: [PATCH 1/5] ptp: Added a brand new class driver for ptp clocks. 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-Disposition: inline In-Reply-To: <201008181702.03384.arnd@arndb.de> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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 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 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 To: Arnd Bergmann 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 List-Id: netdev.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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 19 Aug 2010 11:22:47 +0200 From: Richard Cochran To: Arnd Bergmann Subject: Re: [PATCH 1/5] ptp: Added a brand new class driver for ptp clocks. 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 In-Reply-To: <201008181702.03384.arnd@arndb.de> Cc: Rodolfo Giometti , john stultz , devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Krzysztof Halasa List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: richardcochran@gmail.com (Richard Cochran) Date: Thu, 19 Aug 2010 11:22:47 +0200 Subject: [PATCH 1/5] ptp: Added a brand new class driver for ptp clocks. In-Reply-To: <201008181702.03384.arnd@arndb.de> References: <201008171336.29375.arnd@arndb.de> <20100818140440.GA22655@riccoc20.at.omicron.at> <201008181702.03384.arnd@arndb.de> Message-ID: <20100819092246.GA8484@riccoc20.at.omicron.at> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.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