]> git.baikalelectronics.ru Git - kernel.git/commit
serial: mxs-auart: fix the wrong setting order
authorHuang Shijie <shijie8@gmail.com>
Fri, 7 Sep 2012 02:38:40 +0000 (22:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 16:19:50 +0000 (09:19 -0700)
commit57fc5acc809268a1e35c7a9b3c41881ccd4eb89e
tree6919798d9e68d94038af5c2a24a7ffd1d7af8209
parent68ab9a4c1216703f47f2d48e5b871721d3f459a0
serial: mxs-auart: fix the wrong setting order

After set the AUART_CTRL0_CLKGATE, the UART will gate all the clocks off.
So the following line will not take effect.
       ................................................................
  writel(AUART_INTR_RXIEN | AUART_INTR_RTIEN | AUART_INTR_CTSMIEN,
  u->membase + AUART_INTR_CLR);
       ................................................................

To fix this issue, the patch moves this gate-off line to
the end of setting registers.

Signed-off-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c