All of lore.kernel.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 6/6] ARM: ux500: select I2C for U8500
Date: Wed, 29 Feb 2012 17:03:33 +0000	[thread overview]
Message-ID: <201202291703.33907.arnd@arndb.de> (raw)
In-Reply-To: <CACRpkdaYmScZKq9rT1z1MEQ4WwJC8Ow7vyS8zBB4r5Q7o6YJTQ@mail.gmail.com>

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

  reply	other threads:[~2012-02-29 17:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201202291703.33907.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.