On Fri, 28 Sep 2012 16:19:08 +0400 Alexey Brodkin <[email protected]> wrote:
> Modify divisor to select the nearest baud rate divider rather than the > lowest. It minimizes baud rate errors especially on low UART clock > frequencies. > > For example, if uartclk is 33000000 and baud is 115200 the ratio is > about 17.9 The current code selects 17 (5% error) but should select 18 > (0.5% error). > > On the same lines as following: > http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.9-rc3/2.6.9-rc3-mm2/broken-out/serial-pick-nearest-baud-rate-divider.patch > > Signed-off-by: Alexey Brodkin <[email protected]> Seems sensible to me. Acked-by: Alan Cox <[email protected]> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

