lkml.org 
[lkml]   [2014]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] serial: 8250_dw: support high baudrates if possible
On Fri, 27 Jun 2014 12:25:20 -0500
> + rate = 16 * max(115200U, (unsigned int)baud);
> +

This assumes an arbitarily configurable clock, which is not I think the
usual case.
> + /*
> + * Request a different clock rate if necessary, and
> + * record it if successful.
> + */
> + if (rate != p->uartclk) {
> + BUG_ON(!data->clk);
> + if (!clk_set_rate(data->clk, (unsigned long)rate))
> + p->uartclk = rate;
> + }




\
 
 \ /
  Last update: 2014-06-28 17:41    [W:0.055 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site