]> git.karo-electronics.de Git - linux-beck.git/commit
serial: 8250_fintek: Set IRQ Mode when port probed
authorJi-Ze Hong (Peter Hong) <hpeter@gmail.com>
Tue, 4 Oct 2016 08:28:00 +0000 (16:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 14:28:16 +0000 (16:28 +0200)
commit06e3957259ef9003061c3c153232266ab8967e34
tree85e14452d078b1bc3ef12caf097463f2093ab097
parentf1232ac229cc078206a72ca365c3526e37ea1ae5
serial: 8250_fintek: Set IRQ Mode when port probed

Set IRQ Mode when port probed in probe_setup_port()

It should hold the IO port premission via fintek_8250_enter_key() and
release via fintek_8250_exit_key() when we configure the SuperIO.

This patch will move all SuperIO configure operations to
probe_setup_port() to reduce fintek_8250_enter_key() and
fintek_8250_exit_key() usage.

Suggested-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Ji-Ze Hong (Peter Hong) <hpeter+linux_kernel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_fintek.c