From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 1/5] ptp: Added a brand new class driver for ptp clocks. Date: Thu, 19 Aug 2010 17:48:51 +0200 Message-ID: <201008191748.51819.arnd@arndb.de> References: <201008191429.50008.arnd@arndb.de> <20100819152301.GB25193@ovro.caltech.edu> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100819152301.GB25193@ovro.caltech.edu> Sender: netdev-owner@vger.kernel.org To: "Ira W. Snyder" Cc: Richard Cochran , 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: devicetree@vger.kernel.org On Thursday 19 August 2010, Ira W. Snyder wrote: > Perhaps you were thinking of the vhost example (taken from > drivers/vhost/Kconfig): > > config VHOST_NET > tristate "Host kernel accelerator for virtio net (EXPERIMENTAL)" > depends on NET && EVENTFD && (TUN || !TUN) && (MACVTAP || !MACVTAP) && EXPERIMENTAL > > They have a similar construct with both TUN and MACVTAP there. Perhaps > the parens are a necessary part of the "X || !X" syntax? Just a random > guess. Yes, that's the one I was thinking of. My mistake was that the effect is slightly different here. VHOST and TUN are both tristate. What we guarantee here is that if TUN is "m", VHOST cannot be "y", because its dependency cannot be fulfilled for y. Arnd