Commit 18d8519d authored by Alexey Pelykh's avatar Alexey Pelykh Committed by Greg Kroah-Hartman
Browse files

OMAP/serial: Fix Mode13 vs Mode16 priority



Make Mode16 more preferred than Mode13, to match TRM baudrates table.

Signed-off-by: default avatarAlexey Pelykh <alexey.pelykh@gmail.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4250b5d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -247,7 +247,7 @@ serial_omap_baud_is_mode16(struct uart_port *port, unsigned int baud)
	if(baudAbsDiff16 < 0)
		baudAbsDiff16 = -baudAbsDiff16;

	return (baudAbsDiff13 > baudAbsDiff16);
	return (baudAbsDiff13 >= baudAbsDiff16);
}

/*