Skip to content
  • Zbigniew Bodek's avatar
    Wait for DesignWare UART transfers completion before accessing line control · 49e368ac
    Zbigniew Bodek authored
    When using DW UART with BUSY detection it is necessary to wait
    until all serial transfers are finished before manipulating the
    line control. LCR will not be affected when UART is busy.
    In addition, if Divisor Latch Access Bit is being set in order to
    modify UART divisors:
    1. We will get BUSY interrupt if interrupts are enabled.
    2. Because LCR will not be affected the THR and (even worse) IER
       contents will be corrupted. This will lead to console hang.
    
    Approved by:	cognet (mentor)
    49e368ac