]> git.baikalelectronics.ru Git - kernel.git/commit
net/wan/fsl_ucc_hdlc: call qe_setbrg only for loopback mode
authorHolger Brunck <holger.brunck@keymile.com>
Wed, 17 May 2017 15:24:36 +0000 (17:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 May 2017 14:28:38 +0000 (10:28 -0400)
commit397bac8e5943a7ccd9e7740b22eda6376b962b68
treedf9184caa74d75439290e69e1778f56f3ff2e7de
parent2142cd64e1ef4aa849c0ca39e7ca96d00776c641
net/wan/fsl_ucc_hdlc: call qe_setbrg only for loopback mode

We can't assume that we are always in loopback mode if rx and tx clock
have the same clock source. If we want to use HDLC busmode we also have
the same clock source but we are not in loopback mode. So move the
setting of the baudrate generator after the check for property for the
loopback mode.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Cc: Zhao Qiang <qiang.zhao@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/fsl_ucc_hdlc.c