All of lore.kernel.org
 help / color / mirror / Atom feed
* SPARC and OF_GPIO
@ 2012-11-05  9:22 ` Thierry Reding
  0 siblings, 0 replies; 16+ messages in thread
From: Thierry Reding @ 2012-11-05  9:22 UTC (permalink / raw)
  To: David S. Miller; +Cc: sparclinux, Linus Walleij, Grant Likely, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1037 bytes --]

Hi David,

There have been a number of reports that Linux kernel builds fail on
SPARC because it doesn't support OF_GPIO, which provides the of_node
field of the struct gpio_chip.

One of the drivers I wrote (gpio-adnp) accesses this unconditionally but
only depends on OF and not OF_GPIO, so it fails to build on SPARC. A
similar problem happens with the gpio-fan driver, which defines the OF
match table only if OF_GPIO is selected, but uses it even if only OF but
not OF_GPIO is selected.

While it is clearly the drivers which are at fault here it still raises
the question as to why SPARC still conflicts with OF_GPIO. Over two
years ago, commit 5ab5fc7 made most of the OF symbols available to all
platforms except SPARC. The commit message explicitly states that this
should probably be re-evaluated.

Are you aware of any reasons why this conflict would still be necessary?
This is not only the case for OF_GPIO but likely also for OF_SPI,
OF_I2C, OF_IRQ and OF_ADDRESS. Shouldn't those all work even on SPARC
nowadays?

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-11-30 16:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-05  9:22 SPARC and OF_GPIO Thierry Reding
2012-11-05  9:22 ` Thierry Reding
2012-11-05  9:53 ` Thierry Reding
2012-11-05  9:53   ` Thierry Reding
2012-11-06 23:40   ` David Miller
2012-11-06 23:40     ` David Miller
2012-11-07  6:52     ` Thierry Reding
2012-11-07  6:52       ` Thierry Reding
2012-11-07  7:34       ` David Miller
2012-11-07  7:34         ` David Miller
2012-11-30  9:35         ` Grant Likely
2012-11-30  9:40           ` Thierry Reding
2012-11-30  9:40             ` Thierry Reding
2012-11-30  9:58             ` Grant Likely
2012-11-30 16:46           ` David Miller
2012-11-30 16:46             ` David Miller

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.