tty: serial: qcom_geni_serial: Update the oversampling rate
authorVivek Gautam <vivek.gautam@codeaurora.org>
Thu, 1 Aug 2019 12:11:53 +0000 (17:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:50 +0000 (12:43 +0200)
commitce734600545fc7da8ae2c5d192b255761a244fb3
treeecab0b69dd51f946d198c8b5b29597c0b7f44fec
parent47b1747f705e90d8197b77207e19c0ec67c16958
tty: serial: qcom_geni_serial: Update the oversampling rate

For QUP IP versions 2.5 and above the oversampling rate is halved
from 32 to 16. Update this rate after reading hardware version
register, so that the clock divider value is correctly set to
achieve required baud rate.

Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Link: https://lore.kernel.org/r/20190801121153.10613-1-vivek.gautam@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c