On Wed, Jan 23, 2019 at 5:18 PM Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote: > > On Mon, Jan 14, 2019 at 4:13 PM Guan Yung Tseng <guan.yung.tseng@xxxxxx> wrote: > > > > Modified NI devices class to PCI_CLASS_COMMUNICATION_MULTISERIAL. > > The reason of doing this is because all NI multi port serial cards > > use PCI_CLASS_COMMUNICATION_OTHER class and thus fail the > > serial_pci_is_class_communication test added in the commit 7d8905d06405 > > ("serial: 8250_pci: Enable device after we check black list"). > > Guan, can you provide an output of the > > lspci -nk -xx -vv -s <BDF> > > of your device, where <BDF> is a PCI address in a form of bus:device.function? While I'm still wondering of the above, can you also test the bellow patch if it fixes your issue? -- With Best Regards, Andy Shevchenko
diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index f80a300b5d68..48bd694a5fa1 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -3420,6 +3420,11 @@ static int serial_pci_guess_board(struct pci_dev *dev, struct pciserial_board *board) { int num_iomem, num_port, first_port = -1, i; + int rc; + + rc = serial_pci_is_class_communication(dev); + if (rc) + return rc; /* * Should we try to make guesses for multiport serial devices later? @@ -3647,10 +3652,6 @@ pciserial_init_one(struct pci_dev *dev, const struct pci_device_id *ent) board = &pci_boards[ent->driver_data]; - rc = serial_pci_is_class_communication(dev); - if (rc) - return rc; - rc = serial_pci_is_blacklisted(dev); if (rc) return rc;