]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
serial: 8250_fintek: Fix finding base_port with activated SuperIO
authorJi-Ze Hong (Peter Hong) <hpeter@gmail.com>
Tue, 17 Oct 2017 06:23:08 +0000 (14:23 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 14 Mar 2018 10:41:53 +0000 (11:41 +0100)
commit12624aad0fbcf4e120e20da0a59838fc7603a857
tree5b3bc742cec23d60d95dcbb134042f02b7808ea1
parentccb0f1df38dc1fb8dbab3ae8139f4e3d8cf3228a
serial: 8250_fintek: Fix finding base_port with activated SuperIO

BugLink: http://bugs.launchpad.net/bugs/1744213
commit fd97e66c5529046e989a0879c3bb58fddb592c71 upstream.

The SuperIO will be configured at boot time by BIOS, but some BIOS
will not deactivate the SuperIO when the end of configuration. It'll
lead to mismatch for pdata->base_port in probe_setup_port(). So we'll
deactivate all SuperIO before activate special base_port in
fintek_8250_enter_key().

Tested on iBASE MI802.

Tested-by: Ji-Ze Hong (Peter Hong) <hpeter+linux_kernel@gmail.com>
Signed-off-by: Ji-Ze Hong (Peter Hong) <hpeter+linux_kernel@gmail.com>
Reviewd-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/tty/serial/8250/8250_fintek.c