From mboxrd@z Thu Jan 1 00:00:00 1970 From: delicious quinoa Subject: Re: [PATCH v12] gpio: add a driver for the Synopsys DesignWare APB GPIO block Date: Thu, 6 Mar 2014 09:58:28 -0600 Message-ID: References: <1393369261-17469-1-git-send-email-delicious.quinoa@gmail.com> <20140306135019.GF18529@joshc.qualcomm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mail-qa0-f45.google.com ([209.85.216.45]:32971 "EHLO mail-qa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751013AbaCFP6q (ORCPT ); Thu, 6 Mar 2014 10:58:46 -0500 In-Reply-To: <20140306135019.GF18529@joshc.qualcomm.com> Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: Josh Cartwright Cc: Linus Walleij , linux-kernel , "linux-gpio@vger.kernel.org" , "linux-doc@vger.kernel.org" , Jamie Iles , "devicetree@vger.kernel.org" , Rob Herring , Grant Likely , Mark Rutland , Steffen Trumtrar , Sebastian Hesselbarth , Heiko Stuebner , Alan Tull , Dinh Nguyen , Yves Vandervennet On Thu, Mar 6, 2014 at 7:50 AM, Josh Cartwright wrote: > On Tue, Feb 25, 2014 at 05:01:01PM -0600, Alan Tull wrote: >> From: Jamie Iles >> >> The Synopsys DesignWare block is used in some ARM devices (picoxcell) >> and can be configured to provide multiple banks of GPIO pins. >> >> Signed-off-by: Jamie Iles >> Signed-off-by: Alan Tull >> Reviewed-by: Sebastian Hesselbarth > [..] >> --- a/drivers/gpio/Kconfig >> +++ b/drivers/gpio/Kconfig >> @@ -128,6 +128,15 @@ config GPIO_GENERIC_PLATFORM >> help >> Say yes here to support basic platform_device memory-mapped GPIO controllers. >> >> +config GPIO_DWAPB >> + tristate "Synopsys DesignWare APB GPIO driver" >> + select GPIO_GENERIC >> + select GENERIC_IRQ_CHIP >> + depends on OF_GPIO && IRQ_DOMAIN >> + help >> + Say Y or M here to build support for the Synopsys DesignWare APB >> + GPIO block. >> + > > Looks like this hit next-20140306, when just doing a simple 'make defconfig', I get: > > kernel/irq/Kconfig:41:error: recursive dependency detected! > kernel/irq/Kconfig:41: symbol GENERIC_IRQ_CHIP is selected by GPIO_DWAPB > drivers/gpio/Kconfig:131: symbol GPIO_DWAPB depends on IRQ_DOMAIN > kernel/irq/Kconfig:46: symbol IRQ_DOMAIN is selected by GENERIC_IRQ_CHIP > > Not sure the best course of action here.. > > -- > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, > hosted by The Linux Foundation The fix is: diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 9979017..0e524d7 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -132,7 +132,7 @@ config GPIO_DWAPB tristate "Synopsys DesignWare APB GPIO driver" select GPIO_GENERIC select GENERIC_IRQ_CHIP - depends on OF_GPIO && IRQ_DOMAIN + depends on OF_GPIO help Say Y or M here to build support for the Synopsys DesignWare APB GPIO block. Apologies for missing this. Alan Tull aka delicious quinoa