Re: [PATCH RFC] serial: mxs-auart: fix baud rate range

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 10, 2015 at 9:12 AM, Stefan Wahren <stefan.wahren@xxxxxxxx> wrote:

>         /* set baud rate */
> -       baud = uart_get_baud_rate(u, termios, old, 0, u->uartclk);
> +       baud_min = u->uartclk * 32 / 0x3fffc0;
> +       baud_max = u->uartclk * 32 / 0xec;
> +       baud = uart_get_baud_rate(u, termios, old, baud_min, baud_max);

Looks good. It would be nice to replace 0x3fffc0 and 0xec with defines though.

Regards,

Fabio Estevam
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux