serial: 8250_pci: Don't fail on multiport card class
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 2 Feb 2018 18:39:13 +0000 (20:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Mar 2018 10:01:29 +0000 (11:01 +0100)
commit8b0c4a2e04f73643b91a99d03234482402f0e955
tree827b98d17b3b0fc220806c4fa6abeef8d5ebd018
parent00fb52a3828ddc3c576f84260df3a60716bb7343
serial: 8250_pci: Don't fail on multiport card class

commit e7f3e99cb1a667d04d60d02957fbed58b50d4e5a upstream.

Do not fail on multiport cards in serial_pci_is_class_communication().

It restores behaviour for SUNIX multiport cards, that enumerated by
class and have a custom board data.

Moreover it allows users to reenumerate port-by-port from user space.

Fixes: 7d8905d06405 ("serial: 8250_pci: Enable device after we check black list")
Reported-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pci.c