* [PATCH] openrisc: include: asm: define empty SERIAL_PORT_DFNS in serial.h
@ 2013-10-31 1:54 Chen Gang
2013-10-31 6:58 ` Chen Gang
0 siblings, 1 reply; 2+ messages in thread
From: Chen Gang @ 2013-10-31 1:54 UTC (permalink / raw)
To: Jonas Bonn; +Cc: linux, linux-kernel
For some architectures (e.g. openrisc, arc), BASE_BAUD isn't constant
And SERIAL_PORT_DFNS always use BASE_BAUND, and also all drivers use
SERIAL_PORT_DFNS to initialize static variables, statically.
So need define SERIAL_PORT_DFNS as empty to tell drivers they don't
support SERIAL_PORT_DFNS (mostly like frv and parisc did).
Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
arch/openrisc/include/asm/serial.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/openrisc/include/asm/serial.h b/arch/openrisc/include/asm/serial.h
index 270a452..254d1ad 100644
--- a/arch/openrisc/include/asm/serial.h
+++ b/arch/openrisc/include/asm/serial.h
@@ -31,6 +31,8 @@
#define BASE_BAUD (cpuinfo.clock_frequency/16)
+#define SERIAL_PORT_DFNS
+
#endif /* __KERNEL__ */
#endif /* __ASM_OPENRISC_SERIAL_H */
--
1.7.7.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] openrisc: include: asm: define empty SERIAL_PORT_DFNS in serial.h
2013-10-31 1:54 [PATCH] openrisc: include: asm: define empty SERIAL_PORT_DFNS in serial.h Chen Gang
@ 2013-10-31 6:58 ` Chen Gang
0 siblings, 0 replies; 2+ messages in thread
From: Chen Gang @ 2013-10-31 6:58 UTC (permalink / raw)
To: Jonas Bonn; +Cc: linux, linux-kernel
On 10/31/2013 09:54 AM, Chen Gang wrote:
> For some architectures (e.g. openrisc, arc), BASE_BAUD isn't constant
> And SERIAL_PORT_DFNS always use BASE_BAUND, and also all drivers use
> SERIAL_PORT_DFNS to initialize static variables, statically.
>
> So need define SERIAL_PORT_DFNS as empty to tell drivers they don't
> support SERIAL_PORT_DFNS (mostly like frv and parisc did).
>
>
> Signed-off-by: Chen Gang <gang.chen@asianux.com>
> ---
> arch/openrisc/include/asm/serial.h | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/openrisc/include/asm/serial.h b/arch/openrisc/include/asm/serial.h
> index 270a452..254d1ad 100644
> --- a/arch/openrisc/include/asm/serial.h
> +++ b/arch/openrisc/include/asm/serial.h
> @@ -31,6 +31,8 @@
>
> #define BASE_BAUD (cpuinfo.clock_frequency/16)
>
> +#define SERIAL_PORT_DFNS
> +
> #endif /* __KERNEL__ */
>
> #endif /* __ASM_OPENRISC_SERIAL_H */
>
Oh, sorry, this patch is incorrect, need fix within the driver.
Thanks.
--
Chen Gang
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-31 6:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-31 1:54 [PATCH] openrisc: include: asm: define empty SERIAL_PORT_DFNS in serial.h Chen Gang
2013-10-31 6:58 ` Chen Gang
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).