Skip to content

Commit b767ad7

Browse files
Aleksey Makarovgregkh
authored andcommitted
Revert "tty: serial: pl011: add ttyAMA for matching pl011 console"
The original patch makes the condition always true, so it is wrong. It masks (but not fixes) the bug described in the commit message but introduces a regression (no console is selected by SPCR) in regular (no 'console=ttyAMA') case. s/||/&&/ would not fix the problem as the root cause was identified incorrectly. This reverts commit aea9a80. Signed-off-by: Aleksey Makarov <aleksey.makarov@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Sudeep Holla <sudeep.holla@arm.com> Tested-by: Jayachandran C <jnair@caviumnetworks.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 542ed78 commit b767ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/amba-pl011.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2373,7 +2373,7 @@ static int __init pl011_console_match(struct console *co, char *name, int idx,
23732373
if (strcmp(name, "qdf2400_e44") == 0) {
23742374
pr_info_once("UART: Working around QDF2400 SoC erratum 44");
23752375
qdf2400_e44_present = true;
2376-
} else if (strcmp(name, "pl011") != 0 || strcmp(name, "ttyAMA") != 0) {
2376+
} else if (strcmp(name, "pl011") != 0) {
23772377
return -ENODEV;
23782378
}
23792379

0 commit comments

Comments
 (0)