serial: 8250_pxa: avoid autodetecting the port type
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 19 Feb 2020 08:01:30 +0000 (09:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2020 10:38:57 +0000 (11:38 +0100)
commit8c6b6ffac367a0d09b6898d26b997728f7c6dd7f
tree63fac567e35fec41f75a50caa12b96fd7905bd00
parent143c02c88d6d3fd725257c3941bf37ee78258741
serial: 8250_pxa: avoid autodetecting the port type

If we're unlucky enough that this drivers binds to a mrvl,mmp-uart device
on a MMP3, the port type gets detected as 16550A instead of XScale, and it
won't work. Other drivers that may bind to the same hardware are 8250_of
and, god forbid, serial_pxa.

Force the port type, we know it's a PORT_XSCALE.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Link: https://lore.kernel.org/r/20200219080130.4334-1-lkundrak@v3.sk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pxa.c