powerpc/serial: Use saner flags when creating legacy ports
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 3 Jun 2014 07:33:41 +0000 (17:33 +1000)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 Jul 2014 12:33:46 +0000 (13:33 +0100)
commit19e84f234b21b7cea051f109381c2f839e4dbc7e
tree47c8347f6c0cc7af32d8e57e479931f447eaa0d4
parente3ffaedcd935237fa5f1d820cb6ad33810593079
powerpc/serial: Use saner flags when creating legacy ports

commit c4cad90f9e9dcb85afc5e75a02ae3522ed077296 upstream.

We had a mix & match of flags used when creating legacy ports
depending on where we found them in the device-tree. Among others
we were missing UPF_SKIP_TEST for some kind of ISA ports which is
a problem as quite a few UARTs out there don't support the loopback
test (such as a lot of BMCs).

Let's pick the set of flags used by the SoC code and generalize it
which means autoconf, no loopback test, irq maybe shared and fixed
port.

Sending to stable as the lack of UPF_SKIP_TEST is breaking
serial on some machines so I want this back into distros

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/powerpc/kernel/legacy_serial.c