Revert "serial: mxc: have putc use the TXFIFO"
This reverts commitc7878a0483. Since commitc7878a0483("serial: mxc: have putc use the TXFIFO"), serial console corruption can be seen when priting inside board_init(). Revert it to avoid the regression. Reported-by: Tim Harvey <tharvey@gateworks.com> Signed-off-by: Fabio Estevam <festevam@denx.de> Acked-by: Tim Harvey <tharvey@gateworks.com>
This commit is contained in:
		
							parent
							
								
									c9713c1551
								
							
						
					
					
						commit
						fc1c1760de
					
				|  | @ -311,7 +311,7 @@ static int mxc_serial_putc(struct udevice *dev, const char ch) | ||||||
| 	struct mxc_serial_plat *plat = dev_get_plat(dev); | 	struct mxc_serial_plat *plat = dev_get_plat(dev); | ||||||
| 	struct mxc_uart *const uart = plat->reg; | 	struct mxc_uart *const uart = plat->reg; | ||||||
| 
 | 
 | ||||||
| 	if (readl(&uart->ts) & UTS_TXFULL) | 	if (!(readl(&uart->ts) & UTS_TXEMPTY)) | ||||||
| 		return -EAGAIN; | 		return -EAGAIN; | ||||||
| 
 | 
 | ||||||
| 	writel(ch, &uart->txd); | 	writel(ch, &uart->txd); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue