]> git.karo-electronics.de Git - linux-beck.git/commit
serial: sh-sci: Take into account sampling rate for max baud rate
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 19 Nov 2015 13:35:09 +0000 (14:35 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 17 Dec 2015 10:18:41 +0000 (11:18 +0100)
commitff8b275f1f0927621cf543c2a6f02761052c360d
tree995361d1676ac5a26f36deb1d9acba89d57d914f
parentb4a5c459088b724734573a550c9da42a9a19c9d0
serial: sh-sci: Take into account sampling rate for max baud rate

The maximum baud rate depends on the sampling rate.
HSCIF has a variable sampling rate and sets s->sampling_rate to zero,
hence use the minimum sampling rate of 8.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c