Re: [PATCH 1/6] tty: serial: 8250: Fix the amount of ports doesn't match the device

From: Andy Shevchenko
Date: Sat Jun 08 2024 - 05:58:48 EST


Fri, Jun 07, 2024 at 07:43:31PM +0800, Crescent Hsieh kirjoitti:
> Normally, the amount of ports is written at the third digit of device ID
> of Moxa PCI boards, for example: `0x1121` indicates a 2 ports device.
>
> However, `CP116E_A_A` and `CP116E_A_B` are two exceptions, which has 8
> ports but the third digit of device ID is `6`.
>
> This patch fixes the issue above by adding checks.

Can you send this patch separately and add Fixes tag?
I will give my tag on it, but the rest needs some additional work
I think.

--
With Best Regards,
Andy Shevchenko