* [PATCH] of_serial: Add UPF_FIXED_TYPE flag
@ 2009-06-09 23:39 Dave Mitchell
2009-06-19 8:24 ` Michael Ellerman
0 siblings, 1 reply; 3+ messages in thread
From: Dave Mitchell @ 2009-06-09 23:39 UTC (permalink / raw)
To: linuxppc-dev; +Cc: arnd
This patch adds the UPF_FIXED_TYPE flag which will bypass the
8250's autoconfig probe for uart type. The uart type identified
by the of_serial's parse of the flat device tree will be utilized
as defined.
Signed-off-by: Dave Mitchell <dmitchell@amcc.com>
---
drivers/serial/of_serial.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/serial/of_serial.c b/drivers/serial/of_serial.c
index 14f8fa9..3f2027c 100644
--- a/drivers/serial/of_serial.c
+++ b/drivers/serial/of_serial.c
@@ -67,7 +67,7 @@ static int __devinit of_platform_serial_setup(struct of_device *ofdev,
port->type = type;
port->uartclk = *clk;
port->flags = UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF | UPF_IOREMAP
- | UPF_FIXED_PORT;
+ | UPF_FIXED_PORT | UPF_FIXED_TYPE;
port->dev = &ofdev->dev;
/* If current-speed was set, then try not to change it. */
if (spd)
--
1.6.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] of_serial: Add UPF_FIXED_TYPE flag
2009-06-09 23:39 [PATCH] of_serial: Add UPF_FIXED_TYPE flag Dave Mitchell
@ 2009-06-19 8:24 ` Michael Ellerman
2009-06-19 22:59 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 3+ messages in thread
From: Michael Ellerman @ 2009-06-19 8:24 UTC (permalink / raw)
To: Dave Mitchell; +Cc: linuxppc-dev, arnd
[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]
On Tue, 2009-06-09 at 18:39 -0500, Dave Mitchell wrote:
> This patch adds the UPF_FIXED_TYPE flag which will bypass the
> 8250's autoconfig probe for uart type. The uart type identified
> by the of_serial's parse of the flat device tree will be utilized
> as defined.
>
> Signed-off-by: Dave Mitchell <dmitchell@amcc.com>
> ---
> drivers/serial/of_serial.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/serial/of_serial.c b/drivers/serial/of_serial.c
> index 14f8fa9..3f2027c 100644
> --- a/drivers/serial/of_serial.c
> +++ b/drivers/serial/of_serial.c
> @@ -67,7 +67,7 @@ static int __devinit of_platform_serial_setup(struct of_device *ofdev,
> port->type = type;
> port->uartclk = *clk;
> port->flags = UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF | UPF_IOREMAP
> - | UPF_FIXED_PORT;
> + | UPF_FIXED_PORT | UPF_FIXED_TYPE;
I think we /probably/ want a similar change in legacy_serial.c, for soc
ports at least.
Or do people have things that are compatible "ns16550" but aren't?
cheers
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] of_serial: Add UPF_FIXED_TYPE flag
2009-06-19 8:24 ` Michael Ellerman
@ 2009-06-19 22:59 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2009-06-19 22:59 UTC (permalink / raw)
To: michael; +Cc: linuxppc-dev, Dave Mitchell, arnd
On Fri, 2009-06-19 at 18:24 +1000, Michael Ellerman wrote:
> I think we /probably/ want a similar change in legacy_serial.c, for
> soc
> ports at least.
>
> Or do people have things that are compatible "ns16550" but aren't?
>
Do we really want to keep of_serial.c ?
I fail to see the point in keeping -both- the of_serial (of_device
variant) and the legacy serial stuff which shims the device-tree into
platform devices.
They tend to clash with each other too, which is annoying.
Cheers,
Ben
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-19 22:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-09 23:39 [PATCH] of_serial: Add UPF_FIXED_TYPE flag Dave Mitchell
2009-06-19 8:24 ` Michael Ellerman
2009-06-19 22:59 ` Benjamin Herrenschmidt
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).