lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 28 Jun 2014 16:36:08 +0100
From:	One Thousand Gnomes <gnomes@...rguk.ukuu.org.uk>
To:	Alex Elder <elder@...aro.org>
Cc:	gregkh@...uxfoundation.org, heikki.krogerus@...ux.intel.com,
	david.daney@...ium.com, loic.poulain@...el.com,
	linux-serial@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [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;
> +		}


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ