The function usart_sam_irq_is_pending (uart_sam_irq_is_pending) return only the masked value of US_CSR register but it doesn't respect if the IRQ is enabled or not. For proper function it must check if the IRQ is enabled for the event.
Expected behavior: Return 0 when values in US_CSR are set and IRQs are disabled.
Impact: Some drivers are not working because they are trying to clear the pending IRQs.
The function usart_sam_irq_is_pending (uart_sam_irq_is_pending) return only the masked value of US_CSR register but it doesn't respect if the IRQ is enabled or not. For proper function it must check if the IRQ is enabled for the event.
Expected behavior: Return 0 when values in US_CSR are set and IRQs are disabled.
Impact: Some drivers are not working because they are trying to clear the pending IRQs.
Environment :
PR in progress.