From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from po-out-1718.google.com (po-out-1718.google.com [72.14.252.159]) by ozlabs.org (Postfix) with ESMTP id 8E571DDDE0 for ; Sat, 25 Oct 2008 17:07:08 +1100 (EST) Received: by po-out-1718.google.com with SMTP id c31so1249367poi.4 for ; Fri, 24 Oct 2008 23:07:07 -0700 (PDT) Message-ID: Date: Sat, 25 Oct 2008 00:07:06 -0600 From: "Grant Likely" To: avorontsov@ru.mvista.com Subject: Re: [PATCH] [powerpc] GPIO: Adding new Xilinx driver In-Reply-To: <20081024214159.GA15204@oksana.dev.rtsoft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <20081024195908.7D1A1142806C@mail74-wa4.bigfish.com> <20081024214159.GA15204@oksana.dev.rtsoft.ru> Cc: Kiran Sutariya , linuxppc-dev@ozlabs.org, John Linn List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Oct 24, 2008 at 3:41 PM, Anton Vorontsov wrote: > On Fri, Oct 24, 2008 at 12:59:00PM -0700, John Linn wrote: >> diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig >> index 7f2ee27..f6b0da8 100644 >> --- a/drivers/gpio/Kconfig >> +++ b/drivers/gpio/Kconfig >> @@ -65,6 +65,14 @@ config GPIO_SYSFS >> >> # put expanders in the right section, in alphabetical order >> >> +comment "Memory mapped GPIO expanders:" >> + >> +config GPIO_XILINX >> + bool "Xilinx GPIO support" >> + depends on OF > > I persume that the driver wasn't build-tested on SPARC, so I'd recommend > to change the depends to PPC_OF. Plus, the driver should also select > GENERIC_GPIO and ARCH_REQUIRE_GPIOLIB. (Later we'll switch to > ARCH_WANT_OPTIONAL_GPIOLIB for whole PPC.) ARCH_WANT_OPTIONAL_GPIOLIB seems to already be set for all of powerpc (arch/powerpc/Kconfig, line 113). But, since this is a cross-arch driver living in drivers/gpio the dependencies work the other way around. This driver cannot be selected unless GPIOLIB is turned on. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.