]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
of_serial: Add UPF_FIXED_TYPE flag
authorDave Mitchell <dmitchell@amcc.com>
Tue, 9 Jun 2009 13:39:47 +0000 (13:39 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 16 Jun 2009 04:15:45 +0000 (14:15 +1000)
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>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/serial/of_serial.c

index 14f8fa9135be49c664f64d80c9633bf1d405f85c..3f2027c70e46fc1519d9d1b012592d2e2c95d570 100644 (file)
@@ -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)