serial: 8250: Preserve DLD[7:4] for PORT_XR17V35X
authorAaron Sierra <asierra@xes-inc.com>
Wed, 4 Oct 2017 15:01:28 +0000 (10:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Dec 2017 21:01:48 +0000 (22:01 +0100)
commita816a7e1e70b757bd54528240b34d3c9b6049e1e
treec03a2697db36dfb45858151f6e18309e600ac4ee
parent68dfd4dd09003e6171208ea12c521186c809d8db
serial: 8250: Preserve DLD[7:4] for PORT_XR17V35X

[ Upstream commit 0ab84da2e076948c49d36197ee7d254125c53eab ]

The upper four bits of the XR17V35x fractional divisor register (DLD)
control general chip function (RS-485 direction pin polarity, multidrop
mode, XON/XOFF parity check, and fast IR mode). Don't allow these bits
to be clobbered when setting the baudrate.

Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c