* [PATCH] can: c_can_pci: limit compilation to archs with clock support
@ 2012-06-20 9:48 Marc Kleine-Budde
2012-06-20 9:54 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: Marc Kleine-Budde @ 2012-06-20 9:48 UTC (permalink / raw)
To: davem; +Cc: netdev, linux-can, Marc Kleine-Budde, Federico Vaga
In commit:
5b92da0 c_can_pci: generic module for C_CAN/D_CAN on PCI
the c_can_pci driver has been added. It uses clk_*() functions
unconditionally, resulting in a link error on archs without
clock support. This patch adds a "depends on HAVE_CLK" to the
Kconfig symbol.
An upcoming patch from Viresh Kumar adds a generic dummy
implementation. As soons as this patch has been merged, this
Kconfig symbol can be removed.
Cc: Federico Vaga <federico.vaga@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
drivers/net/can/c_can/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/can/c_can/Kconfig b/drivers/net/can/c_can/Kconfig
index 3b83baf..2835277 100644
--- a/drivers/net/can/c_can/Kconfig
+++ b/drivers/net/can/c_can/Kconfig
@@ -17,6 +17,7 @@ config CAN_C_CAN_PLATFORM
config CAN_C_CAN_PCI
tristate "Generic PCI Bus based C_CAN/D_CAN driver"
depends on PCI
+ depends on HAVE_CLK
---help---
This driver adds support for the C_CAN/D_CAN chips connected
to the PCI bus.
--
1.7.10
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] can: c_can_pci: limit compilation to archs with clock support
2012-06-20 9:48 [PATCH] can: c_can_pci: limit compilation to archs with clock support Marc Kleine-Budde
@ 2012-06-20 9:54 ` David Miller
2012-06-20 10:10 ` Marc Kleine-Budde
0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2012-06-20 9:54 UTC (permalink / raw)
To: mkl; +Cc: netdev, linux-can, federico.vaga
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Wed, 20 Jun 2012 11:48:08 +0200
> In commit:
>
> 5b92da0 c_can_pci: generic module for C_CAN/D_CAN on PCI
>
> the c_can_pci driver has been added. It uses clk_*() functions
> unconditionally, resulting in a link error on archs without
> clock support. This patch adds a "depends on HAVE_CLK" to the
> Kconfig symbol.
This is an unreasonable change and I just explained why in my email to
Frederico, did you not see it?
He says that this driver was only tested on an architecture that
currently doesn't even have clock support in any existing tree, and
therefore completely relies upon local changes they have to add clock
support to that platform.
Which means you're change is restricting compilation of this driver to
platforms the driver was never, ever, tested on.
Can you see what a complete joke this is?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] can: c_can_pci: limit compilation to archs with clock support
2012-06-20 9:54 ` David Miller
@ 2012-06-20 10:10 ` Marc Kleine-Budde
2012-06-20 10:12 ` David Miller
2012-06-20 10:18 ` Federico Vaga
0 siblings, 2 replies; 5+ messages in thread
From: Marc Kleine-Budde @ 2012-06-20 10:10 UTC (permalink / raw)
To: David Miller; +Cc: netdev, linux-can, federico.vaga
[-- Attachment #1: Type: text/plain, Size: 1436 bytes --]
On 06/20/2012 11:54 AM, David Miller wrote:
> From: Marc Kleine-Budde <mkl@pengutronix.de>
> Date: Wed, 20 Jun 2012 11:48:08 +0200
>
>> In commit:
>>
>> 5b92da0 c_can_pci: generic module for C_CAN/D_CAN on PCI
>>
>> the c_can_pci driver has been added. It uses clk_*() functions
>> unconditionally, resulting in a link error on archs without
>> clock support. This patch adds a "depends on HAVE_CLK" to the
>> Kconfig symbol.
>
> This is an unreasonable change and I just explained why in my email to
> Frederico, did you not see it?
I send that mail before I received Frederico's and your Mail.
> He says that this driver was only tested on an architecture that
> currently doesn't even have clock support in any existing tree, and
> therefore completely relies upon local changes they have to add clock
> support to that platform.
>
> Which means you're change is restricting compilation of this driver to
> platforms the driver was never, ever, tested on.
>
> Can you see what a complete joke this is?
I think we finally can see the big picture now; I'm preparing a patch
which removes the clk_*() functions.
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] can: c_can_pci: limit compilation to archs with clock support
2012-06-20 10:10 ` Marc Kleine-Budde
@ 2012-06-20 10:12 ` David Miller
2012-06-20 10:18 ` Federico Vaga
1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2012-06-20 10:12 UTC (permalink / raw)
To: mkl; +Cc: netdev, linux-can, federico.vaga
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Wed, 20 Jun 2012 12:10:41 +0200
> I think we finally can see the big picture now; I'm preparing a patch
> which removes the clk_*() functions.
Thank you.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] can: c_can_pci: limit compilation to archs with clock support
2012-06-20 10:10 ` Marc Kleine-Budde
2012-06-20 10:12 ` David Miller
@ 2012-06-20 10:18 ` Federico Vaga
1 sibling, 0 replies; 5+ messages in thread
From: Federico Vaga @ 2012-06-20 10:18 UTC (permalink / raw)
To: Marc Kleine-Budde; +Cc: David Miller, netdev, linux-can
> I think we finally can see the big picture now; I'm preparing a patch
> which removes the clk_*() functions.
Thank you, and sorry for the big trouble
--
Federico Vaga
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-06-20 10:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-20 9:48 [PATCH] can: c_can_pci: limit compilation to archs with clock support Marc Kleine-Budde
2012-06-20 9:54 ` David Miller
2012-06-20 10:10 ` Marc Kleine-Budde
2012-06-20 10:12 ` David Miller
2012-06-20 10:18 ` Federico Vaga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox