From patchwork Tue Aug 28 11:09:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gounaris X-Patchwork-Id: 962879 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4206FD6s5Rz9ryn for ; Tue, 28 Aug 2018 21:37:52 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=infinera.com Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4206FD5dGCzDrYf for ; Tue, 28 Aug 2018 21:37:52 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=infinera.com X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=permerror (mailfrom) smtp.mailfrom=infinera.com (client-ip=31.15.61.139; helo=smtp.transmode.se; envelope-from=david.gounaris@infinera.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=infinera.com Received: from smtp.transmode.se (smtp.transmode.se [31.15.61.139]) by lists.ozlabs.org (Postfix) with ESMTP id 4205ld3bvVzDr5Y for ; Tue, 28 Aug 2018 21:15:41 +1000 (AEST) Received: from se-eswlab1-lx.infinera.com (se-eswlab1-lx.infinera.com [10.210.73.23]) by smtp.transmode.se (Postfix) with ESMTP id D817F118ADC5; Tue, 28 Aug 2018 13:09:40 +0200 (CEST) Received: from se-eswlab1-lx.infinera.com (se-eswlab1-lx.infinera.com [127.0.0.1]) by se-eswlab1-lx.infinera.com (8.14.9/8.14.9) with ESMTP id w7SB9egu002618; Tue, 28 Aug 2018 13:09:40 +0200 Received: (from dago@localhost) by se-eswlab1-lx.infinera.com (8.14.9/8.14.9/Submit) id w7SB9ePd002617; Tue, 28 Aug 2018 13:09:40 +0200 From: David Gounaris To: qiang.zhao@nxp.com, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 5/6] net/wan/fsl_ucc_hdlc: GUMR for non tsa mode Date: Tue, 28 Aug 2018 13:09:20 +0200 Message-Id: <20180828110921.2542-6-david.gounaris@infinera.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180828110921.2542-1-david.gounaris@infinera.com> References: <20180828110921.2542-1-david.gounaris@infinera.com> X-Mailman-Approved-At: Tue, 28 Aug 2018 21:34:24 +1000 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Gounaris Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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 --- drivers/net/wan/fsl_ucc_hdlc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 54e2b2143e36..e6154a6547e6 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.c +++ b/drivers/net/wan/fsl_ucc_hdlc.c @@ -97,6 +97,13 @@ 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