mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't mask TCD in IMR0 when we initialize the channel. Doing so makes
it impossible to check the interrupt status bit when we try to get a character in the low level console code.
This commit is contained in:
parent
024035e822
commit
b4f00e0bb7
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ sab82532_init(struct uart_bas *bas, int baudrate, int databits, int stopbits,
|
|||
sab82532_param(bas, baudrate, databits, stopbits, parity);
|
||||
|
||||
/* Clear interrupts. */
|
||||
uart_setreg(bas, SAB_IMR0, 0xff);
|
||||
uart_setreg(bas, SAB_IMR0, (unsigned char)~SAB_IMR0_TCD);
|
||||
uart_setreg(bas, SAB_IMR1, 0xff);
|
||||
uart_barrier(bas);
|
||||
uart_getreg(bas, SAB_ISR0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue