mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
OMAP/serial: Fix Mode13 vs Mode16 priority
Make Mode16 more preferred than Mode13, to match TRM baudrates table. Signed-off-by: Alexey Pelykh <alexey.pelykh@gmail.com> Cc: Tony Lindgren <tony@atomide.com> Cc: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4250b5d9a4
commit
18d8519d35
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ serial_omap_baud_is_mode16(struct uart_port *port, unsigned int baud)
|
||||||
if(baudAbsDiff16 < 0)
|
if(baudAbsDiff16 < 0)
|
||||||
baudAbsDiff16 = -baudAbsDiff16;
|
baudAbsDiff16 = -baudAbsDiff16;
|
||||||
|
|
||||||
return (baudAbsDiff13 > baudAbsDiff16);
|
return (baudAbsDiff13 >= baudAbsDiff16);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue