diff options
author | Zhao Qiang <qiang.zhao@nxp.com> | 2018-02-01 07:54:32 +0100 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2018-09-25 22:57:26 +0200 |
commit | 96fc74333f84cfdf8d434c6c07254e215e2aad00 (patch) | |
tree | 0937fc7a47037c76bbe3880d75177de4f9839939 /drivers/soc/fsl | |
parent | soc: fsl: qbman: qman: avoid allocating from non existing gen_pool (diff) | |
download | linux-96fc74333f84cfdf8d434c6c07254e215e2aad00.tar.xz linux-96fc74333f84cfdf8d434c6c07254e215e2aad00.zip |
soc: fsl: qe: Fix copy/paste bug in ucc_get_tdm_sync_shift()
There is a copy and paste bug so we accidentally use the RX_ shift when
we're in TX_ mode.
Fixes: bb8b2062aff3 ("fsl/qe: setup clock source for TDM mode")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
(cherry picked from commit 3cb31b634052ed458922e0c8e2b4b093d7fb60b9)
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/soc/fsl')
-rw-r--r-- | drivers/soc/fsl/qe/ucc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/fsl/qe/ucc.c b/drivers/soc/fsl/qe/ucc.c index c646d8713861..681f7d4b7724 100644 --- a/drivers/soc/fsl/qe/ucc.c +++ b/drivers/soc/fsl/qe/ucc.c @@ -626,7 +626,7 @@ static u32 ucc_get_tdm_sync_shift(enum comm_dir mode, u32 tdm_num) { u32 shift; - shift = (mode == COMM_DIR_RX) ? RX_SYNC_SHIFT_BASE : RX_SYNC_SHIFT_BASE; + shift = (mode == COMM_DIR_RX) ? RX_SYNC_SHIFT_BASE : TX_SYNC_SHIFT_BASE; shift -= tdm_num * 2; return shift; |