On Mon, Jan 9, 2017 at 2:14 AM, Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote: > Port number is easily to get from device ID, I already said this. > nr = subvendor == PCI_VENDOR_ID_IBM ? 1 : device & 0x0f; Gave one more thought and using nr = num_ports ? num_ports : device & 0x0f; will allow you to use even in the v35 setup. -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html