* [PATCH] can: CAN_MCP251X should depend on HAS_DMA
@ 2009-12-13 19:11 Geert Uytterhoeven
2009-12-13 20:47 ` Wolfgang Grandegger
2009-12-14 3:58 ` David Miller
0 siblings, 2 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2009-12-13 19:11 UTC (permalink / raw)
To: Christian Pellegrin, Wolfgang Grandegger, David S. Miller,
Urs Thuermann, Oliver
Cc: netdev, Linux Kernel Development
When building for Sun 3:
drivers/net/can/mcp251x.c:1074: undefined reference to `dma_free_coherent'
drivers/net/can/mcp251x.c:976: undefined reference to `dma_alloc_coherent'
drivers/net/can/mcp251x.c:1050: undefined reference to `dma_free_coherent'
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
drivers/net/can/Kconfig | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/can/Kconfig b/drivers/net/can/Kconfig
index 8c485aa..05b7517 100644
--- a/drivers/net/can/Kconfig
+++ b/drivers/net/can/Kconfig
@@ -50,7 +50,7 @@ config CAN_TI_HECC
config CAN_MCP251X
tristate "Microchip MCP251x SPI CAN controllers"
- depends on CAN_DEV && SPI
+ depends on CAN_DEV && SPI && HAS_DMA
---help---
Driver for the Microchip MCP251x SPI CAN controllers.
--
1.6.0.4
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] can: CAN_MCP251X should depend on HAS_DMA
2009-12-13 19:11 [PATCH] can: CAN_MCP251X should depend on HAS_DMA Geert Uytterhoeven
@ 2009-12-13 20:47 ` Wolfgang Grandegger
2009-12-14 1:40 ` David Miller
2009-12-14 3:58 ` David Miller
1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Grandegger @ 2009-12-13 20:47 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Christian Pellegrin, David S. Miller, Urs Thuermann,
Oliver Hartkopp, netdev, Linux Kernel Development
Geert Uytterhoeven wrote:
> When building for Sun 3:
>
> drivers/net/can/mcp251x.c:1074: undefined reference to `dma_free_coherent'
> drivers/net/can/mcp251x.c:976: undefined reference to `dma_alloc_coherent'
> drivers/net/can/mcp251x.c:1050: undefined reference to `dma_free_coherent'
>
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> ---
> drivers/net/can/Kconfig | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/can/Kconfig b/drivers/net/can/Kconfig
> index 8c485aa..05b7517 100644
> --- a/drivers/net/can/Kconfig
> +++ b/drivers/net/can/Kconfig
> @@ -50,7 +50,7 @@ config CAN_TI_HECC
>
> config CAN_MCP251X
> tristate "Microchip MCP251x SPI CAN controllers"
> - depends on CAN_DEV && SPI
> + depends on CAN_DEV && SPI && HAS_DMA
> ---help---
> Driver for the Microchip MCP251x SPI CAN controllers.
>
DMA can be selected with the module parameter "mcp251x_enable_dma" and
is *off* by default. Therefore the driver does in principle not depend
on HAS_DMA but I'm not sure if it's worth to handle it with #idef's.
Christian? Any thought?
Wolfgang.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] can: CAN_MCP251X should depend on HAS_DMA
2009-12-13 20:47 ` Wolfgang Grandegger
@ 2009-12-14 1:40 ` David Miller
2009-12-14 7:34 ` Wolfgang Grandegger
0 siblings, 1 reply; 6+ messages in thread
From: David Miller @ 2009-12-14 1:40 UTC (permalink / raw)
To: wg; +Cc: geert, chripell, urs.thuermann, oliver.hartkopp, netdev,
linux-kernel
From: Wolfgang Grandegger <wg@grandegger.com>
Date: Sun, 13 Dec 2009 21:47:04 +0100
> DMA can be selected with the module parameter "mcp251x_enable_dma" and
> is *off* by default. Therefore the driver does in principle not depend
> on HAS_DMA but I'm not sure if it's worth to handle it with #idef's.
> Christian? Any thought?
I still think it's a reasonable dependency.
You're not going to find this device on a s390 system. :-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] can: CAN_MCP251X should depend on HAS_DMA
2009-12-13 19:11 [PATCH] can: CAN_MCP251X should depend on HAS_DMA Geert Uytterhoeven
2009-12-13 20:47 ` Wolfgang Grandegger
@ 2009-12-14 3:58 ` David Miller
1 sibling, 0 replies; 6+ messages in thread
From: David Miller @ 2009-12-14 3:58 UTC (permalink / raw)
To: geert; +Cc: chripell, wg, urs.thuermann, oliver.hartkopp, netdev,
linux-kernel
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Sun, 13 Dec 2009 20:11:06 +0100 (CET)
> When building for Sun 3:
>
> drivers/net/can/mcp251x.c:1074: undefined reference to `dma_free_coherent'
> drivers/net/can/mcp251x.c:976: undefined reference to `dma_alloc_coherent'
> drivers/net/can/mcp251x.c:1050: undefined reference to `dma_free_coherent'
>
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Applied.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] can: CAN_MCP251X should depend on HAS_DMA
2009-12-14 1:40 ` David Miller
@ 2009-12-14 7:34 ` Wolfgang Grandegger
2009-12-14 8:14 ` christian pellegrin
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Grandegger @ 2009-12-14 7:34 UTC (permalink / raw)
To: David Miller
Cc: geert, chripell, urs.thuermann, oliver.hartkopp, netdev,
linux-kernel
David Miller wrote:
> From: Wolfgang Grandegger <wg@grandegger.com>
> Date: Sun, 13 Dec 2009 21:47:04 +0100
>
>> DMA can be selected with the module parameter "mcp251x_enable_dma" and
>> is *off* by default. Therefore the driver does in principle not depend
>> on HAS_DMA but I'm not sure if it's worth to handle it with #idef's.
>> Christian? Any thought?
>
> I still think it's a reasonable dependency.
>
> You're not going to find this device on a s390 system. :-)
OK, we could change that on request.
Wolfgang.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] can: CAN_MCP251X should depend on HAS_DMA
2009-12-14 7:34 ` Wolfgang Grandegger
@ 2009-12-14 8:14 ` christian pellegrin
0 siblings, 0 replies; 6+ messages in thread
From: christian pellegrin @ 2009-12-14 8:14 UTC (permalink / raw)
To: Wolfgang Grandegger
Cc: David Miller, geert, urs.thuermann, oliver.hartkopp, netdev,
linux-kernel
On Mon, Dec 14, 2009 at 8:34 AM, Wolfgang Grandegger <wg@grandegger.com> wrote:
> David Miller wrote:
>>
>> I still think it's a reasonable dependency.
>>
>> You're not going to find this device on a s390 system. :-)
>
> OK, we could change that on request.
>
> Wolfgang.
>
Hi, sorry for the late answer. I agree it's a reasonable dependency.
Anyway it's easy to #ifdef it out if anyone cares.
Bye,
--
Christian Pellegrin, see http://www.evolware.org/chri/
"Real Programmers don't play tennis, or any other sport which requires
you to change clothes. Mountain climbing is OK, and Real Programmers
wear their climbing boots to work in case a mountain should suddenly
spring up in the middle of the computer room."
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-12-14 8:14 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-13 19:11 [PATCH] can: CAN_MCP251X should depend on HAS_DMA Geert Uytterhoeven
2009-12-13 20:47 ` Wolfgang Grandegger
2009-12-14 1:40 ` David Miller
2009-12-14 7:34 ` Wolfgang Grandegger
2009-12-14 8:14 ` christian pellegrin
2009-12-14 3:58 ` David Miller
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).