[lkml]   [2017]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 4.14 09/18] serial: 8250_fintek: Fix finding base_port with activated SuperIO
4.14-stable review patch.  If anyone has any objections, please let me know.


From: Ji-Ze Hong (Peter Hong) <>

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

Tested on iBASE MI802.

Tested-by: Ji-Ze Hong (Peter Hong) <>
Signed-off-by: Ji-Ze Hong (Peter Hong) <>
Reviewd-by: Alan Cox <>
Signed-off-by: Greg Kroah-Hartman <>

drivers/tty/serial/8250/8250_fintek.c | 3 +++
1 file changed, 3 insertions(+)

--- a/drivers/tty/serial/8250/8250_fintek.c
+++ b/drivers/tty/serial/8250/8250_fintek.c
@@ -118,6 +118,9 @@ static int fintek_8250_enter_key(u16 bas
if (!request_muxed_region(base_port, 2, "8250_fintek"))
return -EBUSY;

+ /* Force to deactive all SuperIO in this base_port */
+ outb(EXIT_KEY, base_port + ADDR_PORT);
outb(key, base_port + ADDR_PORT);
outb(key, base_port + ADDR_PORT);
return 0;

 \ /
  Last update: 2017-11-22 11:21    [W:0.160 / U:1.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site