From: Huang Shijie Date: Wed, 21 May 2014 00:56:28 +0000 (+0800) Subject: serial: imx: reset the uart port all the time X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~35^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=772f89910a8a1d1dd9dade2eec3125f283a9db63;p=pandora-kernel.git serial: imx: reset the uart port all the time Current code resets the uart port only when it supports the irda mode. In actually, we also need to reset the uart port in the non-irda mode. A hang was caught in the following case: UART A transmits data to the other end. But the transmission maybe terminated. In some corner case, the TX FIFO maybe not empty. The kernel will hang at the imx_set_termios(): ............................................................ while (!(readl(sport->port.membase + USR2) & USR2_TXDC)) barrier(); ............................................................ This patch resets the uart port all the time in the imx_startup(). And fix the hang. Signed-off-by: Huang Shijie Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed