lkml.org 
[lkml]   [2019]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2] tty/serial: atmel: fix out of range clock divider handling
    On Fri, Dec 13, 2019 at 03:03:01PM +0100, David Engraf wrote:
    > Use MCK_DIV8 when the clock divider is > 65535. Unfortunately the mode
    > register was already written thus the clock selection is ignored.
    >
    > Fix by doing the baud rate calulation before setting the mode.
    >
    > Fixes: 5bf5635ac170 ("tty/serial: atmel: add fractional baud rate support")
    > Signed-off-by: David Engraf <david.engraf@sysgo.com>
    > ---
    > drivers/tty/serial/atmel_serial.c | 43 ++++++++++++++++---------------
    > 1 file changed, 22 insertions(+), 21 deletions(-)

    What changed from v1?

    Always put that below the --- line.

    v3 please?

    thanks,

    greg k-h

    \
     
     \ /
      Last update: 2019-12-13 22:49    [W:4.087 / U:2.564 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site