[lkml]   [2008]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH] atmel_serial: Filter out FP during baud rate detection
    I made a change to u-boot that used the FP (Fractional Part) field of
    BRGR to achieve more accurate baud rate generation. Unfortunately, the
    atmel_serial driver looks at the whole BRGR register when trying to
    detect the baud rate that the port is currently running at, so setting
    FP to a nonzero value breaks the baud rate detection.

    I'll sit on the u-boot patch for a while longer, but this is clearly a
    bug in the atmel_serial driver which should be fixed.

    Signed-off-by: Haavard Skinnemoen <>
    drivers/serial/atmel_serial.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/serial/atmel_serial.c b/drivers/serial/atmel_serial.c
    index c065a70..42be8b0 100644
    --- a/drivers/serial/atmel_serial.c
    +++ b/drivers/serial/atmel_serial.c
    @@ -1318,7 +1318,7 @@ static void __init atmel_console_get_options(struct uart_port *port, int *baud,
    * If the baud rate generator isn't running, the port wasn't
    * initialized by the boot loader.
    - quot = UART_GET_BRGR(port);
    + quot = UART_GET_BRGR(port) & ATMEL_US_CD;
    if (!quot)


     \ /
      Last update: 2008-05-27 15:27    [W:0.020 / U:152.696 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site