Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d21b55d3 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by Russell King
Browse files

[SERIAL] Make uart_match_port() work with all memory mapped UARTs



uart_match_port() always fails with UPIO_MEM32, UPIO_AU, and UPIO_TSI cases.
Since they match to the memory mapped UARTs, they should be handled just like
UPIO_MEM case.

Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent dc709bd1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2377,6 +2377,9 @@ int uart_match_port(struct uart_port *port1, struct uart_port *port2)
		return (port1->iobase == port2->iobase) &&
		       (port1->hub6   == port2->hub6);
	case UPIO_MEM:
	case UPIO_MEM32:
	case UPIO_AU:
	case UPIO_TSI:
		return (port1->mapbase == port2->mapbase);
	}
	return 0;