Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1496671 > unrolled thread

[PATCH] serial: SERIAL_STM32 should depend on HAS_DMA

Started byGeert Uytterhoeven <geert@linux-m68k.org>
First post2016-10-06 16:00 +0200
Last post2016-10-06 16:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] serial: SERIAL_STM32 should depend on HAS_DMA Geert Uytterhoeven <geert@linux-m68k.org> - 2016-10-06 16:00 +0200
    Re: [PATCH] serial: SERIAL_STM32 should depend on HAS_DMA Alexandre Torgue <alexandre.torgue@st.com> - 2016-10-06 16:10 +0200

#1496671 — [PATCH] serial: SERIAL_STM32 should depend on HAS_DMA

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2016-10-06 16:00 +0200
Subject[PATCH] serial: SERIAL_STM32 should depend on HAS_DMA
Message-ID<sphnk-Oy-19@gated-at.bofh.it>
If NO_DMA=y:

    drivers/built-in.o: In function `stm32_serial_remove':
    stm32-usart.c:(.text+0xcea1a): undefined reference to `bad_dma_ops'
    stm32-usart.c:(.text+0xcea7a): undefined reference to `bad_dma_ops'

Add a dependency on HAS_DMA to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/tty/serial/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
index c7831407a882d2bb..25c1d7bc010043b1 100644
--- a/drivers/tty/serial/Kconfig
+++ b/drivers/tty/serial/Kconfig
@@ -1625,6 +1625,7 @@ config SERIAL_SPRD_CONSOLE
 config SERIAL_STM32
 	tristate "STMicroelectronics STM32 serial port support"
 	select SERIAL_CORE
+	depends on HAS_DMA
 	depends on ARM || COMPILE_TEST
 	help
 	  This driver is for the on-chip Serial Controller on
-- 
1.9.1

[toc] | [next] | [standalone]


#1496675

FromAlexandre Torgue <alexandre.torgue@st.com>
Date2016-10-06 16:10 +0200
Message-ID<sphx0-18h-23@gated-at.bofh.it>
In reply to#1496671
Hi Geert,

On 10/06/2016 03:55 PM, Geert Uytterhoeven wrote:
> If NO_DMA=y:
>
>     drivers/built-in.o: In function `stm32_serial_remove':
>     stm32-usart.c:(.text+0xcea1a): undefined reference to `bad_dma_ops'
>     stm32-usart.c:(.text+0xcea7a): undefined reference to `bad_dma_ops'
>
> Add a dependency on HAS_DMA to fix this.
>
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> ---
>  drivers/tty/serial/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
> index c7831407a882d2bb..25c1d7bc010043b1 100644
> --- a/drivers/tty/serial/Kconfig
> +++ b/drivers/tty/serial/Kconfig
> @@ -1625,6 +1625,7 @@ config SERIAL_SPRD_CONSOLE
>  config SERIAL_STM32
>  	tristate "STMicroelectronics STM32 serial port support"
>  	select SERIAL_CORE
> +	depends on HAS_DMA
>  	depends on ARM || COMPILE_TEST
>  	help
>  	  This driver is for the on-chip Serial Controller on
>
I sent same kind of patch this morning (but mine have a bad copy paste).
I will abandon my patch.

However for this one:
Acked-by: Alexandre Torgue <alexandre.torgue@st.com>

regards
Alex

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web