]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: imx: don't reinit clock in imx_setup_ufcr()
authorDirk Behme <dirk.behme@de.bosch.com>
Fri, 31 Aug 2012 08:02:47 +0000 (10:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2012 19:44:44 +0000 (12:44 -0700)
commit9ded7784c3ed3e90a2cb23c62a10a96189ca8333
treea4c7b233c2bb758ee43b58f6d8e5b0616339ae92
parent7a529d686185236f789b3ddf1f12d26118ff33e7
tty: serial: imx: don't reinit clock in imx_setup_ufcr()

Remove the clock configuration from imx_setup_ufcr(). This
isn't needed here and will cause garbage output if done.

To be be sure that we only touch the bits we want (TXTL and RXTL)
we have to mask out all other bits of the UFCR register. Add
one non-existing bit macro for this, too (bit 6, DCEDTE on i.MX6).

Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
CC: Shawn Guo <shawn.guo@linaro.org>
CC: Sascha Hauer <s.hauer@pengutronix.de>
CC: Troy Kisky <troy.kisky@boundarydevices.com>
CC: Xinyu Chen <xinyu.chen@freescale.com>
Cc: stable <stable@vger.kernel.org>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c