mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
fix early_serial_setup() regression
Commit b430428a18 ("8250: Don't clobber
spinlocks.") introduced a regression on the parisc architecture, which
broke the handover to the serial port at boottime.
early_serial_setup() was changed to only copy a subset of the uart_port
fields, and sadly the "type" and "line" fields were forgotten and thus
the serial port was not initialized and could not be used for a
handover. This patch fixes this by copying the missing fields.
As this change to early_serial_setup() doesn't need an initialized
spinlock in the uart_port struct any longer, we can drop the spinlock
initialization in the superio driver.
Cc: David Daney <[email protected]>
Cc: Tomaso Paoletti <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Alan Cox <[email protected]>
Acked-by: Kyle McMartin <[email protected]>
Cc: [email protected]
Signed-off-by: Helge Deller <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e0b325d310
commit
125c97d8a5
2 changed files with 2 additions and 1 deletions
|
|
@ -2839,6 +2839,8 @@ int __init early_serial_setup(struct uart_port *port)
|
|||
p->flags = port->flags;
|
||||
p->mapbase = port->mapbase;
|
||||
p->private_data = port->private_data;
|
||||
p->type = port->type;
|
||||
p->line = port->line;
|
||||
|
||||
set_io_from_upio(p);
|
||||
if (port->serial_in)
|
||||
|
|
|
|||
Loading…
Reference in a new issue