Commit 0ac18da
tty: serial: 8250: Fix port count mismatch with the device
Normally, the number of ports is indicated by the third digit of the
device ID on Moxa PCI serial boards. For example, `0x1121` indicates a
device with 2 ports.
However, `CP116E_A_A` and `CP116E_A_B` are exceptions; they have 8
ports, but the third digit of the device ID is `6`.
This patch introduces a function to retrieve the number of ports on Moxa
PCI serial boards, addressing the issue described above.
Fixes: 37058fd ("tty: serial: 8250: Add support for MOXA Mini PCIe boards")
Cc: stable <[email protected]>
Signed-off-by: Crescent Hsieh <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 6ba59ff commit 0ac18da
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1985 | 1985 | | |
1986 | 1986 | | |
1987 | 1987 | | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
1988 | 1999 | | |
1989 | 2000 | | |
1990 | 2001 | | |
| |||
2038 | 2049 | | |
2039 | 2050 | | |
2040 | 2051 | | |
2041 | | - | |
| 2052 | + | |
2042 | 2053 | | |
2043 | 2054 | | |
2044 | 2055 | | |
| |||
0 commit comments