]> git.baikalelectronics.ru Git - kernel.git/commit
serial: exar: Fix GPIO configuration for Sealevel cards based on XR17V35X
authorMatthew Howell <matthew.howell@sealevel.com>
Wed, 22 Jul 2020 20:11:24 +0000 (16:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jul 2020 08:58:14 +0000 (10:58 +0200)
commit4608f54e42a93a5e79ba4581d0d9694c1577ea6b
tree85c1a1d8074e2a5b7ac0f8ba86c37b07f9b033a2
parent4c965e9a31c4cd6c944840335b6dc81fb215dc5f
serial: exar: Fix GPIO configuration for Sealevel cards based on XR17V35X

Sealevel XR17V35X based devices are inoperable on kernel versions
4.11 and above due to a change in the GPIO preconfiguration introduced in
commit
a8801f7fa94. This patch fixes this by preconfiguring the GPIO on Sealevel
cards to the value (0x00) used prior to commit a8801f7fa94

With GPIOs preconfigured as per commit a8801f7fa94 all ports on
Sealevel XR17V35X based devices become stuck in high impedance
mode, regardless of dip-switch or software configuration. This
causes the device to become effectively unusable. This patch (in
various forms) has been distributed to our customers and no issues
related to it have been reported.

Fixes: a8801f7fa94a ("serial: exar: Preconfigure xr17v35x MPIOs as output")
Signed-off-by: Matthew Howell <matthew.howell@sealevel.com>
Link: https://lore.kernel.org/r/alpine.DEB.2.21.2007221605270.13247@tstest-VirtualBox
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_exar.c