• Russell King's avatar
    [SERIAL] Restrict the baud rates returnable from uart_get_baud_rate() · 077746a2
    Russell King authored
    Supply the old termios, along with the max and min acceptable baud
    rate to uart_get_baud_rate().  uart_get_baud_rate() will now try to
    find a baud rate that satisfies the max and min constraint out of
    (requested rate, old rate, 9600 baud).
    
    We remove the code which performed a similar act in uart_get_divisor()
    and pass an appropriate min and max baud rate to uart_get_baud_rate()
    based on the UART clock rate.
    077746a2
core.c 61.1 KB