Re: [PATCH] Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver
- From: Russell King - ARM Linux <linux@xxxxxxxxxxxxxxxx>
- Date: Mon, 14 Apr 2008 10:37:14 +0100
On Mon, Apr 14, 2008 at 09:48:58AM +0200, Uwe Kleine-König wrote:
Hello,
Maybe adding a dummy implementation that is compiled for machines thatBut what about this:Yes I have, but nothing special. This is part of a generic API defined
ERROR: "clk_get" [drivers/uio/uio_pdrv.ko] undefined!
ERROR: "clk_enable" [drivers/uio/uio_pdrv.ko] undefined!
ERROR: "clk_disable" [drivers/uio/uio_pdrv.ko] undefined!
ERROR: "clk_put" [drivers/uio/uio_pdrv.ko] undefined!
Do you have any extra patches applied?
in include/linux/clk.h. One of it's use it to abstract away some
platform dependencies. There are several architectures that define
it[1].
I know. Unfortunately, I tested on x86_64, and it doesn't compile.
If it's depending on something, then this dependency should be added in
Kconfig. If it can be selected in the configuration, I expect it to
compile (and work).
don't provide a native one. Currently there is no cpp symbol that tells
if an machine supports the API.
@Russell: Do you have an opinion regarding this!?
Only that the kernels Kconfig is turning into a real complicated mess
of dependencies IMHO.
We could add a HAVE_CLK and add that to the dependency of all the drivers
which use linux/clk.h. The problem will be finding all those drivers and
their corresponding Kconfig entries.
My feeling is that we're just going to end up creating another Kconfig
symbol which folk half-heartedly use.
I don't like that either. What do you think about the patch below?
It doesn't introduce a new symbol that needs much care and attention.
This way the clk API is available on all configurations provided that
CONFIG_DUMMY_CLK is set correctly. If CONFIG_DUMMY_CLK is set wrong it
should result in a compile error. Either because there are two
implementations of clk_get or none.
Hang on. I'm lost. What are we talking about here? I thought the
thread was about the one liner patch for UIO to arch/arm/Kconfi
(which still hasn't hit the patch system so is still on target for
being missed...)
What's this drivers/uio/uio_pdrv.ko module, and why doesn't it appear
in the LKML archive of this thread?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver
- From: Uwe Kleine-König
- Re: [PATCH] Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver
- References:
- [PATCH 4/4] [RFC] UIO: generic platform driver
- From: Uwe Kleine-König
- Re: [PATCH 4/4] [RFC] UIO: generic platform driver
- From: Hans J. Koch
- Re: [PATCH 4/4] [RFC] UIO: generic platform driver
- From: Uwe Kleine-König
- [PATCH 4/4 v2] [RFC] UIO: generic platform driver
- From: Uwe Kleine-König
- Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver
- From: Hans J. Koch
- Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver
- From: Uwe Kleine-König
- Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver
- From: Hans J. Koch
- Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver
- From: Uwe Kleine-König
- Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver
- From: Russell King - ARM Linux
- [PATCH] Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver
- From: Uwe Kleine-König
- [PATCH 4/4] [RFC] UIO: generic platform driver
- Prev by Date: Re: linux-next: Tree for April 10 (arch/x86)
- Next by Date: Re: [PATCH 0/7] OMFS filesystem version 3
- Previous by thread: [PATCH] Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver
- Next by thread: Re: [PATCH] Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver
- Index(es):
Relevant Pages
|