raiden00pl opened a new pull request, #22024:
URL: https://github.com/apache/nuttx/pull/22024
## Summary
All ports of one PCI function of a multiport 16550 card share its
interrupt, but every port attached and enabled it on its own: opening a
second port replaced the handler of the first port, and closing a port
disabled the interrupt of the others.
- uart_16550: u16550_interrupt() returns nonzero if the UART had an
interrupt pending.
- uart_pci_16550: attach the interrupt of a device once when it is probed
and service all its ports in the handler until none has an interrupt
pending. The card interrupt stays asserted while any port has one, so on
an edge-triggered input a single pass left the card stuck.
## Impact
Multiport PCI 16550 cards: all ports can be opened at the same time. Single
port cards are unchanged.
## Testing
qemu-intel64, echo on all configured ports at the same time:
- pci-serial, pci-serial-2x, pci-serial-4x, ports opened at boot and later.
- pci-serial-2x and pci-serial together, each card on its own interrupt.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]