Why UART_IIR_INTSTATUS = 0

This commit is contained in:
Lee Lup Yuen 2023-07-29 21:33:09 +08:00
parent e6d44c43f5
commit 1360191b6a

View file

@ -3903,12 +3903,15 @@ uart_register: Registering /dev/ttyS0
up_enable_irq: irq=57
up_enable_irq: extirq=32, RISCV_IRQ_EXT=25
u16550_rxint: enable=1
+++++++
000000000000000000000000000000000000000000000000000000000000w0o0r0k0_0s0t0a0r0t0_0l0o0w0p0r0i0:0 0S0t0a0r0t0i0n0g0 0l0o0w0-0p0r0i0o0r0i0t0y0 0k0e0r0n0e0l0 0w0o0r0k0e0r0 0t0h0r0e0a0d0(0s0)0
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0o0a0r0d0_0l0a0t0e0_0i0n0i0t0i0a0l0i0z0e0:0 0
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000n0x0_0s0t0a0r0t0_0a0p0p0l0i0c0a0t0i0o0n0:0 0S0t0a0r0t0i0n0g0 0i0n0i0t0 0t0a0s0k0:0 00/0s0y0s0t0e0m0/0b0i0n0/0i0n0i0t0
00000000000000000000000000000000000000000000000000000000000000000000000000000000+000000+000+0000+00+000+000+00+000+000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
```
[(`+` means UART Input Interrupt)](https://github.com/lupyuen2/wip-pinephone-nuttx/blob/star64d/drivers/serial/uart_16550.c#L965-L978)
TODO: Why no UART Output, now that UART Input and Output Interrupts are OK
TODO: Why UART Interrupt triggered repeatedly with [UART_IIR_INTSTATUS = 0](https://github.com/lupyuen2/wip-pinephone-nuttx/blob/star64d/drivers/serial/uart_16550.c#L954-L966)?
TODO: Why no txint enable?