serial: clear LSR.TEMT when populating the TSR
We never actually clear the TEMT (transmit sending register empty) flag when populating the TSR. We set the flag, but since it's never cleared, setting it is sort of pointless.. I found this with a unit test case. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
		
							parent
							
								
									67c5322d70
								
							
						
					
					
						commit
						dfe844c904
					
				| 
						 | 
				
			
			@ -332,6 +332,7 @@ static void serial_xmit(void *opaque)
 | 
			
		|||
        } else {
 | 
			
		||||
            s->tsr = s->thr;
 | 
			
		||||
            s->lsr |= UART_LSR_THRE;
 | 
			
		||||
            s->lsr &= ~UART_LSR_TEMT;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue