From: Nicolas Ferre <nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
To: Jean-Christophe PLAGNIOL-VILLARD
<plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org>,
Russell King <rmk+kernel-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
Andrew Victor
<avictor.za-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-serial-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Greg Kroah-Hartman
<gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>,
Alan Cox <alan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Subject: Re: [RFC 3/3] ARM/AVR32: get rid of serial_at91.h
Date: Fri, 16 Nov 2012 11:12:46 +0100 [thread overview]
Message-ID: <50A6119E.8010303@atmel.com> (raw)
In-Reply-To: <20121116095352.GF4398-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org>
On 11/16/2012 10:53 AM, Jean-Christophe PLAGNIOL-VILLARD :
> On 10:36 Fri 21 Sep , Russell King wrote:
>> The definitions provided by serial_at91.h are only used by the
>> atmel_serial driver, and the function that uses it is never called
>> from anywhere in the kernel. Therefore, these definitions are unused
>> and/or obsolete, and can be removed.
>>
>> Signed-off-by: Russell King <rmk+kernel-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>
> personnaly I'm ok with it too
> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org>
>
> but Andrew seems use it so let him reply
Yes, during previous attempt to remove the files, Andrew said that it
was used internally in his former company. I had no serious reason to
remove it, so we kept it back then.
But now it seems the situation has evolved and we must consider the move
to a single kernel image and the will to clean the include/asm/mach
directory.
So, now, on my side:
Acked-by: Nicolas Ferre <nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
>> ---
>> arch/arm/include/asm/mach/serial_at91.h | 33 -----------------------------
>> arch/avr32/include/asm/mach/serial_at91.h | 33 -----------------------------
>> drivers/tty/serial/atmel_serial.c | 18 ---------------
>> 3 files changed, 0 insertions(+), 84 deletions(-)
>> delete mode 100644 arch/arm/include/asm/mach/serial_at91.h
>> delete mode 100644 arch/avr32/include/asm/mach/serial_at91.h
>>
>> diff --git a/arch/arm/include/asm/mach/serial_at91.h b/arch/arm/include/asm/mach/serial_at91.h
>> deleted file mode 100644
>> index ea6d063..0000000
>> --- a/arch/arm/include/asm/mach/serial_at91.h
>> +++ /dev/null
>> @@ -1,33 +0,0 @@
>> -/*
>> - * arch/arm/include/asm/mach/serial_at91.h
>> - *
>> - * Based on serial_sa1100.h by Nicolas Pitre
>> - *
>> - * Copyright (C) 2002 ATMEL Rousset
>> - *
>> - * Low level machine dependent UART functions.
>> - */
>> -
>> -struct uart_port;
>> -
>> -/*
>> - * This is a temporary structure for registering these
>> - * functions; it is intended to be discarded after boot.
>> - */
>> -struct atmel_port_fns {
>> - void (*set_mctrl)(struct uart_port *, u_int);
>> - u_int (*get_mctrl)(struct uart_port *);
>> - void (*enable_ms)(struct uart_port *);
>> - void (*pm)(struct uart_port *, u_int, u_int);
>> - int (*set_wake)(struct uart_port *, u_int);
>> - int (*open)(struct uart_port *);
>> - void (*close)(struct uart_port *);
>> -};
>> -
>> -#if defined(CONFIG_SERIAL_ATMEL)
>> -void atmel_register_uart_fns(struct atmel_port_fns *fns);
>> -#else
>> -#define atmel_register_uart_fns(fns) do { } while (0)
>> -#endif
>> -
>> -
>> diff --git a/arch/avr32/include/asm/mach/serial_at91.h b/arch/avr32/include/asm/mach/serial_at91.h
>> deleted file mode 100644
>> index 55b317a..0000000
>> --- a/arch/avr32/include/asm/mach/serial_at91.h
>> +++ /dev/null
>> @@ -1,33 +0,0 @@
>> -/*
>> - * linux/include/asm-arm/mach/serial_at91.h
>> - *
>> - * Based on serial_sa1100.h by Nicolas Pitre
>> - *
>> - * Copyright (C) 2002 ATMEL Rousset
>> - *
>> - * Low level machine dependent UART functions.
>> - */
>> -
>> -struct uart_port;
>> -
>> -/*
>> - * This is a temporary structure for registering these
>> - * functions; it is intended to be discarded after boot.
>> - */
>> -struct atmel_port_fns {
>> - void (*set_mctrl)(struct uart_port *, u_int);
>> - u_int (*get_mctrl)(struct uart_port *);
>> - void (*enable_ms)(struct uart_port *);
>> - void (*pm)(struct uart_port *, u_int, u_int);
>> - int (*set_wake)(struct uart_port *, u_int);
>> - int (*open)(struct uart_port *);
>> - void (*close)(struct uart_port *);
>> -};
>> -
>> -#if defined(CONFIG_SERIAL_ATMEL)
>> -void atmel_register_uart_fns(struct atmel_port_fns *fns);
>> -#else
>> -#define atmel_register_uart_fns(fns) do { } while (0)
>> -#endif
>> -
>> -
>> diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
>> index 3d7e1ee..a6134c9 100644
>> --- a/drivers/tty/serial/atmel_serial.c
>> +++ b/drivers/tty/serial/atmel_serial.c
>> @@ -43,7 +43,6 @@
>> #include <asm/io.h>
>> #include <asm/ioctls.h>
>>
>> -#include <asm/mach/serial_at91.h>
>> #include <mach/board.h>
>>
>> #ifdef CONFIG_ARM
>> @@ -1513,23 +1512,6 @@ static void __devinit atmel_init_port(struct atmel_uart_port *atmel_port,
>> }
>> }
>>
>> -/*
>> - * Register board-specific modem-control line handlers.
>> - */
>> -void __init atmel_register_uart_fns(struct atmel_port_fns *fns)
>> -{
>> - if (fns->enable_ms)
>> - atmel_pops.enable_ms = fns->enable_ms;
>> - if (fns->get_mctrl)
>> - atmel_pops.get_mctrl = fns->get_mctrl;
>> - if (fns->set_mctrl)
>> - atmel_pops.set_mctrl = fns->set_mctrl;
>> - atmel_open_hook = fns->open;
>> - atmel_close_hook = fns->close;
>> - atmel_pops.pm = fns->pm;
>> - atmel_pops.set_wake = fns->set_wake;
>> -}
>> -
>> struct platform_device *atmel_default_console_device; /* the serial console device */
>>
>> #ifdef CONFIG_SERIAL_ATMEL_CONSOLE
>> --
>> 1.7.4.4
>>
>>
>> _______________________________________________
>> linux-arm-kernel mailing list
>> linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
>
--
Nicolas Ferre
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: nicolas.ferre@atmel.com (Nicolas Ferre)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC 3/3] ARM/AVR32: get rid of serial_at91.h
Date: Fri, 16 Nov 2012 11:12:46 +0100 [thread overview]
Message-ID: <50A6119E.8010303@atmel.com> (raw)
In-Reply-To: <20121116095352.GF4398@game.jcrosoft.org>
On 11/16/2012 10:53 AM, Jean-Christophe PLAGNIOL-VILLARD :
> On 10:36 Fri 21 Sep , Russell King wrote:
>> The definitions provided by serial_at91.h are only used by the
>> atmel_serial driver, and the function that uses it is never called
>> from anywhere in the kernel. Therefore, these definitions are unused
>> and/or obsolete, and can be removed.
>>
>> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
> personnaly I'm ok with it too
> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>
> but Andrew seems use it so let him reply
Yes, during previous attempt to remove the files, Andrew said that it
was used internally in his former company. I had no serious reason to
remove it, so we kept it back then.
But now it seems the situation has evolved and we must consider the move
to a single kernel image and the will to clean the include/asm/mach
directory.
So, now, on my side:
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
>> ---
>> arch/arm/include/asm/mach/serial_at91.h | 33 -----------------------------
>> arch/avr32/include/asm/mach/serial_at91.h | 33 -----------------------------
>> drivers/tty/serial/atmel_serial.c | 18 ---------------
>> 3 files changed, 0 insertions(+), 84 deletions(-)
>> delete mode 100644 arch/arm/include/asm/mach/serial_at91.h
>> delete mode 100644 arch/avr32/include/asm/mach/serial_at91.h
>>
>> diff --git a/arch/arm/include/asm/mach/serial_at91.h b/arch/arm/include/asm/mach/serial_at91.h
>> deleted file mode 100644
>> index ea6d063..0000000
>> --- a/arch/arm/include/asm/mach/serial_at91.h
>> +++ /dev/null
>> @@ -1,33 +0,0 @@
>> -/*
>> - * arch/arm/include/asm/mach/serial_at91.h
>> - *
>> - * Based on serial_sa1100.h by Nicolas Pitre
>> - *
>> - * Copyright (C) 2002 ATMEL Rousset
>> - *
>> - * Low level machine dependent UART functions.
>> - */
>> -
>> -struct uart_port;
>> -
>> -/*
>> - * This is a temporary structure for registering these
>> - * functions; it is intended to be discarded after boot.
>> - */
>> -struct atmel_port_fns {
>> - void (*set_mctrl)(struct uart_port *, u_int);
>> - u_int (*get_mctrl)(struct uart_port *);
>> - void (*enable_ms)(struct uart_port *);
>> - void (*pm)(struct uart_port *, u_int, u_int);
>> - int (*set_wake)(struct uart_port *, u_int);
>> - int (*open)(struct uart_port *);
>> - void (*close)(struct uart_port *);
>> -};
>> -
>> -#if defined(CONFIG_SERIAL_ATMEL)
>> -void atmel_register_uart_fns(struct atmel_port_fns *fns);
>> -#else
>> -#define atmel_register_uart_fns(fns) do { } while (0)
>> -#endif
>> -
>> -
>> diff --git a/arch/avr32/include/asm/mach/serial_at91.h b/arch/avr32/include/asm/mach/serial_at91.h
>> deleted file mode 100644
>> index 55b317a..0000000
>> --- a/arch/avr32/include/asm/mach/serial_at91.h
>> +++ /dev/null
>> @@ -1,33 +0,0 @@
>> -/*
>> - * linux/include/asm-arm/mach/serial_at91.h
>> - *
>> - * Based on serial_sa1100.h by Nicolas Pitre
>> - *
>> - * Copyright (C) 2002 ATMEL Rousset
>> - *
>> - * Low level machine dependent UART functions.
>> - */
>> -
>> -struct uart_port;
>> -
>> -/*
>> - * This is a temporary structure for registering these
>> - * functions; it is intended to be discarded after boot.
>> - */
>> -struct atmel_port_fns {
>> - void (*set_mctrl)(struct uart_port *, u_int);
>> - u_int (*get_mctrl)(struct uart_port *);
>> - void (*enable_ms)(struct uart_port *);
>> - void (*pm)(struct uart_port *, u_int, u_int);
>> - int (*set_wake)(struct uart_port *, u_int);
>> - int (*open)(struct uart_port *);
>> - void (*close)(struct uart_port *);
>> -};
>> -
>> -#if defined(CONFIG_SERIAL_ATMEL)
>> -void atmel_register_uart_fns(struct atmel_port_fns *fns);
>> -#else
>> -#define atmel_register_uart_fns(fns) do { } while (0)
>> -#endif
>> -
>> -
>> diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
>> index 3d7e1ee..a6134c9 100644
>> --- a/drivers/tty/serial/atmel_serial.c
>> +++ b/drivers/tty/serial/atmel_serial.c
>> @@ -43,7 +43,6 @@
>> #include <asm/io.h>
>> #include <asm/ioctls.h>
>>
>> -#include <asm/mach/serial_at91.h>
>> #include <mach/board.h>
>>
>> #ifdef CONFIG_ARM
>> @@ -1513,23 +1512,6 @@ static void __devinit atmel_init_port(struct atmel_uart_port *atmel_port,
>> }
>> }
>>
>> -/*
>> - * Register board-specific modem-control line handlers.
>> - */
>> -void __init atmel_register_uart_fns(struct atmel_port_fns *fns)
>> -{
>> - if (fns->enable_ms)
>> - atmel_pops.enable_ms = fns->enable_ms;
>> - if (fns->get_mctrl)
>> - atmel_pops.get_mctrl = fns->get_mctrl;
>> - if (fns->set_mctrl)
>> - atmel_pops.set_mctrl = fns->set_mctrl;
>> - atmel_open_hook = fns->open;
>> - atmel_close_hook = fns->close;
>> - atmel_pops.pm = fns->pm;
>> - atmel_pops.set_wake = fns->set_wake;
>> -}
>> -
>> struct platform_device *atmel_default_console_device; /* the serial console device */
>>
>> #ifdef CONFIG_SERIAL_ATMEL_CONSOLE
>> --
>> 1.7.4.4
>>
>>
>> _______________________________________________
>> linux-arm-kernel mailing list
>> linux-arm-kernel at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
>
--
Nicolas Ferre
next prev parent reply other threads:[~2012-11-16 10:12 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-21 9:35 [RFC 0/3] Move some ARM header files to more appropriate locations Russell King - ARM Linux
2012-09-21 9:35 ` Russell King - ARM Linux
2012-09-21 9:36 ` [RFC 1/3] ARM: move serial_sa1100.h header file to linux/platform_data Russell King
2012-09-21 9:36 ` Russell King
2012-09-21 23:05 ` Greg Kroah-Hartman
2012-09-21 23:05 ` Greg Kroah-Hartman
2012-09-21 9:36 ` [RFC 2/3] ARM: move udc_pxa2xx.h " Russell King
2012-09-21 9:36 ` Russell King
[not found] ` <E1TEzet-00077v-VD-eh5Bv4kxaXIANfyc6IWni62ZND6+EDdj@public.gmane.org>
2012-09-21 9:39 ` Felipe Balbi
2012-09-21 9:39 ` Felipe Balbi
2012-09-21 9:40 ` Eric Miao
2012-09-21 9:40 ` Eric Miao
2012-09-21 9:48 ` Russell King - ARM Linux
2012-09-21 9:48 ` Russell King - ARM Linux
2012-09-22 11:41 ` Krzysztof Halasa
2012-09-22 11:41 ` Krzysztof Halasa
2012-09-21 23:05 ` Greg Kroah-Hartman
2012-09-21 23:05 ` Greg Kroah-Hartman
2012-09-21 9:36 ` [RFC 3/3] ARM/AVR32: get rid of serial_at91.h Russell King
2012-09-21 9:36 ` Russell King
[not found] ` <E1TEzfE-000780-1t-eh5Bv4kxaXIANfyc6IWni62ZND6+EDdj@public.gmane.org>
2012-09-21 23:05 ` Greg Kroah-Hartman
2012-09-21 23:05 ` Greg Kroah-Hartman
2012-11-16 9:53 ` Jean-Christophe PLAGNIOL-VILLARD
2012-11-16 9:53 ` Jean-Christophe PLAGNIOL-VILLARD
[not found] ` <20121116095352.GF4398-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org>
2012-11-16 10:12 ` Nicolas Ferre [this message]
2012-11-16 10:12 ` Nicolas Ferre
[not found] ` <50A6119E.8010303-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
2012-11-16 11:38 ` Russell King - ARM Linux
2012-11-16 11:38 ` Russell King - ARM Linux
2012-11-16 20:46 ` Andrew Victor
2012-11-16 20:46 ` Andrew Victor
2012-11-16 22:08 ` Joachim Eastwood
2012-11-16 22:08 ` Joachim Eastwood
2012-11-16 23:08 ` Russell King - ARM Linux
2012-11-16 23:08 ` Russell King - ARM Linux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50A6119E.8010303@atmel.com \
--to=nicolas.ferre-aife0yeh4naavxtiumwx3w@public.gmane.org \
--cc=alan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=avictor.za-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-serial-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org \
--cc=rmk+kernel-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.