* [PATCH 6/6] ARM: ux500: select I2C for U8500
2012-02-25 19:55 [PATCH 1/6] arm: U8500 depends on MMU mathieu.poirier at linaro.org
@ 2012-02-25 19:55 ` mathieu.poirier at linaro.org
0 siblings, 0 replies; 4+ messages in thread
From: mathieu.poirier at linaro.org @ 2012-02-25 19:55 UTC (permalink / raw)
To: linux-arm-kernel
From: Arnd Bergmann <arnd@arndb.de>
The U8500 platform selects the TPS6105X, so also select the I2C
layer that this driver depends on.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
arch/arm/mach-ux500/Kconfig | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-ux500/Kconfig b/arch/arm/mach-ux500/Kconfig
index c7d1fb5..f0f6199 100644
--- a/arch/arm/mach-ux500/Kconfig
+++ b/arch/arm/mach-ux500/Kconfig
@@ -29,6 +29,7 @@ config MACH_U8500
select UX500_SOC_DB8500
select TPS6105X
select SOC_BUS
+ select I2C
help
Include support for the mop500 development platform.
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 6/6] ARM: ux500: select I2C for U8500
[not found] ` <201202291634.41686.arnd@arndb.de>
@ 2012-02-29 17:00 ` Linus Walleij
2012-02-29 17:03 ` Arnd Bergmann
0 siblings, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2012-02-29 17:00 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Feb 29, 2012 at 5:34 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Wednesday 29 February 2012, Linus Walleij wrote:
>> On Sat, Feb 25, 2012 at 8:48 PM, ?<mathieu.poirier@linaro.org> wrote:
>>
>> > From: Arnd Bergmann <arnd@arndb.de>
>> >
>> > The U8500 platform selects the TPS6105X, so also select the I2C
>> > layer that this driver depends on.
>> >
>> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>> > Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
>> > ---
>> > ?arch/arm/mach-ux500/Kconfig | ? ?1 +
>> > ?1 files changed, 1 insertions(+), 0 deletions(-)
>> >
>> > diff --git a/arch/arm/mach-ux500/Kconfig b/arch/arm/mach-ux500/Kconfig
>> > index c7d1fb5..f0f6199 100644
>> > --- a/arch/arm/mach-ux500/Kconfig
>> > +++ b/arch/arm/mach-ux500/Kconfig
>> > @@ -29,6 +29,7 @@ config MACH_U8500
>> > ? ? ? ?select UX500_SOC_DB8500
>> > ? ? ? ?select TPS6105X
>> > ? ? ? ?select SOC_BUS
>> > + ? ? ? select I2C
>>
>> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>>
>> But should it not also select I2C_NOMADIK, which is surely
>> required too.
>
> That's a different question: I2C is needed to build the kernel
> successfully, while I2C_NOMADIK is (probably) needed to actually
> run on a given hardware.
>
> We normally don't prevent people from selecting silly combinations
> of config options, but we do try to make sure that any random
> configuration actually builds.
>
> Maybe the answer is instead to remove the 'select TPS6105X'
> and make sure the platform actually builds without I2C
Oh yeah wait that's the proper solution. Instead I get to update
the defconfig to include necessary drivers.
I'll post a patch for this instead.
Thanks,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 6/6] ARM: ux500: select I2C for U8500
2012-02-29 17:00 ` [PATCH 6/6] ARM: ux500: select I2C for U8500 Linus Walleij
@ 2012-02-29 17:03 ` Arnd Bergmann
2012-02-29 17:06 ` Linus Walleij
0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2012-02-29 17:03 UTC (permalink / raw)
To: linux-arm-kernel
On Wednesday 29 February 2012, Linus Walleij wrote:
> > That's a different question: I2C is needed to build the kernel
> > successfully, while I2C_NOMADIK is (probably) needed to actually
> > run on a given hardware.
> >
> > We normally don't prevent people from selecting silly combinations
> > of config options, but we do try to make sure that any random
> > configuration actually builds.
> >
> > Maybe the answer is instead to remove the 'select TPS6105X'
> > and make sure the platform actually builds without I2C
>
> Oh yeah wait that's the proper solution. Instead I get to update
> the defconfig to include necessary drivers.
>
> I'll post a patch for this instead.
Ok, great!
I got one more build error when actually disabling CONFIG_I2C on ux500:
arnd at klappe2:~/linux-arm$ make O=obj-arm/ ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -s -j3 -k
/git/arnd/linux-arm/arch/arm/mach-ux500/board-mop500-uib.c: In function 'mop500_uib_i2c_add':
/git/arnd/linux-arm/arch/arm/mach-ux500/board-mop500-uib.c:74:2: error: implicit declaration of function 'i2c_get_adapter' [-Werror=implicit-function-declaration]
/git/arnd/linux-arm/arch/arm/mach-ux500/board-mop500-uib.c:81:3: error: implicit declaration of function 'i2c_new_device' [-Werror=implicit-function-declaration]
/git/arnd/linux-arm/arch/arm/mach-ux500/board-mop500-uib.c:121:2: error: implicit declaration of function 'i2c_smbus_xfer' [-Werror=implicit-function-declaration]
I guess those need to be fixed, too. Ideally the API could just
get stubbed out for !CONFIG_I2C, but it might be easier to
conditionally build the code using it.
Arnd
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 6/6] ARM: ux500: select I2C for U8500
2012-02-29 17:03 ` Arnd Bergmann
@ 2012-02-29 17:06 ` Linus Walleij
0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2012-02-29 17:06 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Feb 29, 2012 at 6:03 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> I got one more build error when actually disabling CONFIG_I2C on ux500:
>
> arnd at klappe2:~/linux-arm$ make O=obj-arm/ ?ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -s ?-j3 -k
> /git/arnd/linux-arm/arch/arm/mach-ux500/board-mop500-uib.c: In function 'mop500_uib_i2c_add':
> /git/arnd/linux-arm/arch/arm/mach-ux500/board-mop500-uib.c:74:2: error: implicit declaration of function 'i2c_get_adapter' [-Werror=implicit-function-declaration]
> /git/arnd/linux-arm/arch/arm/mach-ux500/board-mop500-uib.c:81:3: error: implicit declaration of function 'i2c_new_device' [-Werror=implicit-function-declaration]
> /git/arnd/linux-arm/arch/arm/mach-ux500/board-mop500-uib.c:121:2: error: implicit declaration of function 'i2c_smbus_xfer' [-Werror=implicit-function-declaration]
>
> I guess those need to be fixed, too. Ideally the API could just
> get stubbed out for !CONFIG_I2C, but it might be easier to
> conditionally build the code using it.
Hm in this case it's the code probing the board using I2C to figure out if it's
this or that variant.
So selecting this board needs to select I2C and I2C_NOMADIK to work
properly, I'll see if I can reproduce and think of something.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-29 17:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1330199334-5133-1-git-send-email-mathieu.poirier@linaro.org>
[not found] ` <1330199334-5133-6-git-send-email-mathieu.poirier@linaro.org>
[not found] ` <CACRpkdbGAhwdxE6tYdib0Aiw=9qScmV507npzDU1hkH1xXgxRQ@mail.gmail.com>
[not found] ` <201202291634.41686.arnd@arndb.de>
2012-02-29 17:00 ` [PATCH 6/6] ARM: ux500: select I2C for U8500 Linus Walleij
2012-02-29 17:03 ` Arnd Bergmann
2012-02-29 17:06 ` Linus Walleij
2012-02-25 19:55 [PATCH 1/6] arm: U8500 depends on MMU mathieu.poirier at linaro.org
2012-02-25 19:55 ` [PATCH 6/6] ARM: ux500: select I2C for U8500 mathieu.poirier at linaro.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).