• Helge Deller's avatar
    fix early_serial_setup() regression · 125c97d8
    Helge Deller authored
    Commit b430428a ("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 <ddaney@caviumnetworks.com>
    Cc: Tomaso Paoletti <tpaoletti@caviumnetworks.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Acked-by: default avatarKyle McMartin <kyle@mcmartin.ca>
    Cc: linux-parisc@vger.kernel.org
    Signed-off-by: default avatarHelge Deller <deller@gmx.de>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    125c97d8
8250.c 79.9 KB