[PATCH RESEND] tty: serial: 8250_mtk: Fix quot calculation

Arnd Bergmann arnd at arndb.de
Fri Oct 31 09:48:14 PDT 2014


On Friday 31 October 2014 17:36:35 Matthias Brugger wrote:
> -               quot = DIV_ROUND_CLOSEST(port->uartclk, 256 * baud);
> +               quot = (port->uartclk / (256 * baud)) + 1;

Should this be DIV_ROUND_UP then?

	Arnd



More information about the linux-arm-kernel mailing list