projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64e9e22
)
soc: fsl: qe: Fix copy/paste bug in ucc_get_tdm_sync_shift()
author
Zhao Qiang
<
[email protected]
>
Thu, 1 Feb 2018 06:54:32 +0000
(14:54 +0800)
committer
Olof Johansson
<
[email protected]
>
Tue, 25 Sep 2018 20:57:26 +0000
(13:57 -0700)
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 <
[email protected]
>
Signed-off-by: Zhao Qiang <
[email protected]
>
Signed-off-by: Li Yang <
[email protected]
>
(cherry picked from commit
3cb31b634052ed458922e0c8e2b4b093d7fb60b9
)
Signed-off-by: Olof Johansson <
[email protected]
>
drivers/soc/fsl/qe/ucc.c
patch
|
blob
|
history
diff --git
a/drivers/soc/fsl/qe/ucc.c
b/drivers/soc/fsl/qe/ucc.c
index c646d871386130d5dde7df2619f3b7fa7bcf5af6..681f7d4b7724fd2037257fab596fc13fc3bbc7d5 100644
(file)
--- 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 :
R
X_SYNC_SHIFT_BASE;
+ shift = (mode == COMM_DIR_RX) ? RX_SYNC_SHIFT_BASE :
T
X_SYNC_SHIFT_BASE;
shift -= tdm_num * 2;
return shift;