linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tty: atmel_serial: include <mach/hardware.h> explicitly
@ 2013-11-27  9:38 Uwe Kleine-König
  2013-11-27  9:48 ` Nicolas Ferre
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2013-11-27  9:38 UTC (permalink / raw)
  To: Nicolas Ferre, Greg Kroah-Hartman, Jiri Slaby
  Cc: linux-serial, kernel, linux-arm-kernel, Andrew Victor,
	Jean-Christophe Plagniol-Villard

When compiled for at91rm9200 (i.e. ARM) the driver needs among others
the symbol AT91RM9200_BASE_US0 which is defined in
arch/arm/mach-at91/include/mach/at91rm9200.h. This file is included
implicitly via several steps. As ARM's <asm/timex.h> will stop including
<mach/hardware.h> later in this series explicitly include
<mach/hardware.h>

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---

Notes:
    Hello,
    
    I want to send this patch as part of a series dropping <mach/timex.h>
    altogether. So please don't take this patch but only give your Ack if
    you're OK with me sending this patch via arm-soc.
    
    Thanks
    Uwe

 drivers/tty/serial/atmel_serial.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index c7d99af..de51964 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -47,6 +47,7 @@
 
 #ifdef CONFIG_ARM
 #include <mach/cpu.h>
+#include <mach/hardware.h>
 #include <asm/gpio.h>
 #endif
 
-- 
1.8.4.2

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] tty: atmel_serial: include <mach/hardware.h> explicitly
  2013-11-27  9:38 [PATCH] tty: atmel_serial: include <mach/hardware.h> explicitly Uwe Kleine-König
@ 2013-11-27  9:48 ` Nicolas Ferre
  2013-11-27 10:02   ` Uwe Kleine-König
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Ferre @ 2013-11-27  9:48 UTC (permalink / raw)
  To: Uwe Kleine-König, Greg Kroah-Hartman, Jiri Slaby
  Cc: linux-serial, kernel, linux-arm-kernel, Andrew Victor,
	Jean-Christophe Plagniol-Villard

On 27/11/2013 10:38, Uwe Kleine-König :
> When compiled for at91rm9200 (i.e. ARM) the driver needs among others
> the symbol AT91RM9200_BASE_US0 which is defined in
> arch/arm/mach-at91/include/mach/at91rm9200.h. This file is included
> implicitly via several steps. As ARM's <asm/timex.h> will stop including
> <mach/hardware.h> later in this series explicitly include
> <mach/hardware.h>
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Uwe, this AT91RM9200_BASE_US0 value is supposed to disappear in 3.14 
tanks to a patch from Linus W. ([PATCH v4] ARM/serial: at91: switch 
atmel serial to use gpiolib) (not in linux-next yet).

So I think that this patch is not needed for 3.14.

Bye,

> ---
>
> Notes:
>      Hello,
>
>      I want to send this patch as part of a series dropping <mach/timex.h>
>      altogether. So please don't take this patch but only give your Ack if
>      you're OK with me sending this patch via arm-soc.
>
>      Thanks
>      Uwe
>
>   drivers/tty/serial/atmel_serial.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
> index c7d99af..de51964 100644
> --- a/drivers/tty/serial/atmel_serial.c
> +++ b/drivers/tty/serial/atmel_serial.c
> @@ -47,6 +47,7 @@
>
>   #ifdef CONFIG_ARM
>   #include <mach/cpu.h>
> +#include <mach/hardware.h>
>   #include <asm/gpio.h>
>   #endif
>
>


-- 
Nicolas Ferre
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] tty: atmel_serial: include <mach/hardware.h> explicitly
  2013-11-27  9:48 ` Nicolas Ferre
@ 2013-11-27 10:02   ` Uwe Kleine-König
  2013-11-27 16:42     ` Uwe Kleine-König
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2013-11-27 10:02 UTC (permalink / raw)
  To: Nicolas Ferre
  Cc: Greg Kroah-Hartman, Jiri Slaby, linux-serial, kernel,
	linux-arm-kernel, Andrew Victor, Jean-Christophe Plagniol-Villard

On Wed, Nov 27, 2013 at 10:48:19AM +0100, Nicolas Ferre wrote:
> On 27/11/2013 10:38, Uwe Kleine-König :
> >When compiled for at91rm9200 (i.e. ARM) the driver needs among others
> >the symbol AT91RM9200_BASE_US0 which is defined in
> >arch/arm/mach-at91/include/mach/at91rm9200.h. This file is included
> >implicitly via several steps. As ARM's <asm/timex.h> will stop including
> ><mach/hardware.h> later in this series explicitly include
> ><mach/hardware.h>
> >
> >Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> 
> Uwe, this AT91RM9200_BASE_US0 value is supposed to disappear in 3.14
> tanks to a patch from Linus W. ([PATCH v4] ARM/serial: at91: switch
> atmel serial to use gpiolib) (not in linux-next yet).
> 
> So I think that this patch is not needed for 3.14.
So I'll keep this patch in my queue for now, but keep an eye on this
one. The other symbols were dropped, too?

Thanks
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] tty: atmel_serial: include <mach/hardware.h> explicitly
  2013-11-27 10:02   ` Uwe Kleine-König
@ 2013-11-27 16:42     ` Uwe Kleine-König
  0 siblings, 0 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2013-11-27 16:42 UTC (permalink / raw)
  To: Nicolas Ferre
  Cc: linux-serial, Greg Kroah-Hartman,
	Jean-Christophe Plagniol-Villard, kernel, Jiri Slaby,
	Andrew Victor, linux-arm-kernel

On Wed, Nov 27, 2013 at 11:02:43AM +0100, Uwe Kleine-König wrote:
> On Wed, Nov 27, 2013 at 10:48:19AM +0100, Nicolas Ferre wrote:
> > On 27/11/2013 10:38, Uwe Kleine-König :
> > >When compiled for at91rm9200 (i.e. ARM) the driver needs among others
> > >the symbol AT91RM9200_BASE_US0 which is defined in
> > >arch/arm/mach-at91/include/mach/at91rm9200.h. This file is included
> > >implicitly via several steps. As ARM's <asm/timex.h> will stop including
> > ><mach/hardware.h> later in this series explicitly include
> > ><mach/hardware.h>
> > >
> > >Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> > 
> > Uwe, this AT91RM9200_BASE_US0 value is supposed to disappear in 3.14
> > tanks to a patch from Linus W. ([PATCH v4] ARM/serial: at91: switch
> > atmel serial to use gpiolib) (not in linux-next yet).
> > 
> > So I think that this patch is not needed for 3.14.
> So I'll keep this patch in my queue for now, but keep an eye on this
> one. The other symbols were dropped, too?
I just verified that Linus W.'s patch is good enough for me.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2013-11-27 16:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-27  9:38 [PATCH] tty: atmel_serial: include <mach/hardware.h> explicitly Uwe Kleine-König
2013-11-27  9:48 ` Nicolas Ferre
2013-11-27 10:02   ` Uwe Kleine-König
2013-11-27 16:42     ` Uwe Kleine-König

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).