]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
serial: 8250_pci: Make PCI class test non fatal
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 24 Jan 2019 21:51:21 +0000 (23:51 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit0a99c74725f45953c02d688b7407bee6fe598103
treeae3ae756c7f9df0f936e91997f79c1ae9d01d085
parent8eb567da888ba7283e6aa3a1552b01d85930307e
serial: 8250_pci: Make PCI class test non fatal

BugLink: https://bugs.launchpad.net/bugs/1837664
commit 824d17c57b0abbcb9128fb3f7327fae14761914b upstream.

As has been reported the National Instruments serial cards have broken
PCI class.

The commit 7d8905d06405

  ("serial: 8250_pci: Enable device after we check black list")

made the PCI class check mandatory for the case when device is listed in
a quirk list.

Make PCI class test non fatal to allow broken card be enumerated.

Fixes: 7d8905d06405 ("serial: 8250_pci: Enable device after we check black list")
Cc: stable <stable@vger.kernel.org>
Reported-by: Guan Yung Tseng <guan.yung.tseng@ni.com>
Tested-by: Guan Yung Tseng <guan.yung.tseng@ni.com>
Tested-by: KHUENY.Gerhard <Gerhard.KHUENY@bachmann.info>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/tty/serial/8250/8250_pci.c