drivers: tty: serial: Fix the early console behavior

msm_geni_serial_cancel_tx() waits for the data written to a Serial Engine
to be flushed out for console UART ports. A check for uart_console() checks
only for regular console port and excludes early console. Hence the early
console writes the data to the Serial Engine and returns immediately.
Subsequent writes by early console puts the Serial Engine in bad state and
leads to system slowdown until the regular console port takes control.

Invoke the msm_geni_serial_cancel_tx() for both console and early console.

Change-Id: I8313277332c7b17c457fd3ff7fd1f5dadd0830c5
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
1 file changed