aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorCrescent Hsieh <[email protected]>2024-06-17 14:30:58 +0800
committerGreg Kroah-Hartman <[email protected]>2024-06-24 16:12:27 +0200
commit0ac18dac43103ab1df6d26ec9a781c0126f83ced (patch)
tree2cada46c71ea37fc286b00b5971c9c21e0fbc71d /scripts/gdb/linux/utils.py
parent6ba59ff4227927d3a8530fc2973b80e94b54d58f (diff)
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: 37058fd5d239 ("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]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions