serial: mvebu-uart: add soft reset at probe
authorAllen Yan <yanwei@marvell.com>
Fri, 13 Oct 2017 09:01:50 +0000 (11:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Oct 2017 12:20:06 +0000 (14:20 +0200)
commit9c3d3ee1239bab92d509f334530796d0ced4ca98
treec849e6524226cdc8d6e5eee1283ba892d9aa0e6d
parent5218d76958644aa06de5d9bc5bf62d5c503e6e35
serial: mvebu-uart: add soft reset at probe

The existing UART driver relies on the bootloader to initialize the
port(s). However, the secondary uart port may not be initialized
properly in early boot stage. This patch adds the UART soft reset when
probing, for all ports.

Signed-off-by: Allen Yan <yanwei@marvell.com>
Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com>
Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mvebu-uart.c