Skip to contentSkip to conversation

OMAP/serial: Fix Mode13 vs Mode16 priority

PATCH New Alexey Pelykh 1 participant 1 message Sep 21, 2013 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP/serial: Fix Mode13 vs Mode16 priority

From: Alexey Pelykh <[email protected]>

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

Cc Tony Lindgren <[email protected]>
Cc Felipe Balbi <[email protected]>
Cc Greg KH <[email protected]>
Cc linux-serial at vger.kernel.org
Cc linux-arm-kernel at lists.infradead.org
Cc linux-omap at vger.kernel.org
Cc linux-kernel at vger.kernel.org

---

drivers/tty/serial/omap-serial.c +1 -1
index 7d348c8..146e712 100644
@@ -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);
 }
 
 /*