Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752669Ab0AJM2G (ORCPT ); Sun, 10 Jan 2010 07:28:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752324Ab0AJM2F (ORCPT ); Sun, 10 Jan 2010 07:28:05 -0500 Received: from buzzloop.caiaq.de ([212.112.241.133]:52883 "EHLO buzzloop.caiaq.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751912Ab0AJM2E (ORCPT ); Sun, 10 Jan 2010 07:28:04 -0500 Date: Sun, 10 Jan 2010 13:27:54 +0100 From: Daniel Mack To: Arnd Hannemann Cc: Richard Purdie , Arnd Hannemann , LKML , "linux-geode@lists.infradead.org" Subject: Re: 2.6.33-rc3 regression: leds_alix2: can't allocate I/O for GPIO Message-ID: <20100110122754.GC8970@buzzloop.caiaq.de> References: <4B45B6DD.4060903@nets.rwth-aachen.de> <1262861484.8493.14.camel@dax.rpnet.com> <4B45CC4C.4030603@nets.rwth-aachen.de> <4B45CF73.9090304@nets.rwth-aachen.de> <20100107124630.GU28375@buzzloop.caiaq.de> <4B45E905.7040401@nets.rwth-aachen.de> <1262885241.27762.1.camel@dax.rpnet.com> <20100108030837.GY28375@buzzloop.caiaq.de> <4B46EDA1.4030902@nets.rwth-aachen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B46EDA1.4030902@nets.rwth-aachen.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 Content-Length: 3252 Lines: 88 On Fri, Jan 08, 2010 at 09:32:33AM +0100, Arnd Hannemann wrote: > Daniel Mack schrieb: [...] > > From ebb89d7d1908e85587f3e64bcea0dd77a92cc744 Mon Sep 17 00:00:00 2001 > > From: Daniel Mack > > Date: Fri, 8 Jan 2010 02:22:10 +0800 > > Subject: [PATCH] LEDS: ALIX2: Add dependency to !GPIO_CS5335 > > > > The ALIX2 LED driver and the CS5535 GPIO driver share the same I/O > > range which causes a conflict if they're both enabled. Fix this for now > > by adding a Kconfig dependency. While at it, also drop the EXPERIMENTAL > > flag, as the code has been around for awhile already. > > > > Note that this is a hack. At some point, a real platform support for > > this board should be added which handles the LEDs via the leds-gpio > > driver. > > > > Signed-off-by: Daniel Mack > > Cc: Richard Purdie > > Cc: Arnd Hannemann > > --- > > drivers/leds/Kconfig | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig > > index 8a0e1ec..7f292ae 100644 > > --- a/drivers/leds/Kconfig > > +++ b/drivers/leds/Kconfig > > @@ -72,7 +72,7 @@ config LEDS_WRAP > > > > config LEDS_ALIX2 > > tristate "LED Support for ALIX.2 and ALIX.3 series" > > - depends on LEDS_CLASS && X86 && EXPERIMENTAL > > + depends on LEDS_CLASS && X86 && !GPIO_CS5535 > > You should add && !CS5535_GPIO, too. In fact CS5535_GPIO > was the one that I had issues with. Though, I wonder why > there are multiple drivers... Buts thats another issue. Ah, right, thanks for noticing. New patch below. Daniel >From 0ce35578c6705dd1c44d076529df6dba889b7b76 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Fri, 8 Jan 2010 02:22:10 +0800 Subject: [PATCH] LEDS: ALIX2: Add dependency to !GPIO_CS5335 The ALIX2 LED driver and the CS5535 GPIO drivers share the same I/O range which causes a conflict if they're both enabled. Fix this for now by adding Kconfig dependencies. While at it, also drop the EXPERIMENTAL flag, as the code has been around for awhile already. Note that this is a hack. At some point, a real platform support for this board should be added which handles the LEDs via the leds-gpio driver. Signed-off-by: Daniel Mack Cc: Richard Purdie Cc: Arnd Hannemann --- drivers/leds/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 8a0e1ec..fef1cf4 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -72,7 +72,7 @@ config LEDS_WRAP config LEDS_ALIX2 tristate "LED Support for ALIX.2 and ALIX.3 series" - depends on LEDS_CLASS && X86 && EXPERIMENTAL + depends on LEDS_CLASS && X86 && !GPIO_CS5535 && !CS5535_GPIO help This option enables support for the PCEngines ALIX.2 and ALIX.3 LEDs. You have to set leds-alix2.force=1 for boards with Award BIOS. -- 1.6.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/