net/wan/fsl_ucc_hdlc: GUMR for non tsa mode
authorDavid Gounaris <david.gounaris@infinera.com>
Mon, 3 Sep 2018 12:47:29 +0000 (14:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 05:14:41 +0000 (22:14 -0700)
The following bits in the GUMR is changed for non
tsa mode: CDS, CTSP and CTSS are set to zero.

When set, there is no tx interrupts from the controller.

Signed-off-by: David Gounaris <david.gounaris@infinera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/fsl_ucc_hdlc.c

index bb52c4dcf22c59a71b25f340f71dabeb62680cda..4545c782ef4e7e7b031616febaf9149b7b62b759 100644 (file)
@@ -97,6 +97,12 @@ static int uhdlc_init(struct ucc_hdlc_private *priv)
        if (priv->tsa) {
                uf_info->tsa = 1;
                uf_info->ctsp = 1;
+               uf_info->cds = 1;
+               uf_info->ctss = 1;
+       } else {
+               uf_info->cds = 0;
+               uf_info->ctsp = 0;
+               uf_info->ctss = 0;
        }
 
        /* This sets HPM register in CMXUCR register which configures a