Message ID | 1459909562-22865-12-git-send-email-troy.kisky@boundarydevices.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2CAC4C0553 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 6 Apr 2016 02:32:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 60A542034E for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 6 Apr 2016 02:32:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 88A9720295 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 6 Apr 2016 02:32:41 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1andFE-00029e-Ip; Wed, 06 Apr 2016 02:31:00 +0000 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1andD2-0007jT-86 for linux-arm-kernel@lists.infradead.org; Wed, 06 Apr 2016 02:28:45 +0000 Received: by mail-pa0-x233.google.com with SMTP id bx7so6609979pad.3 for <linux-arm-kernel@lists.infradead.org>; Tue, 05 Apr 2016 19:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jxoG7QyI0ZJaQMLGw0VgcwKA933F0rzkf2aCxCQrvwk=; b=sUin47KjymTbWlaev47xS1i2uHwL45T6YUBpMyvR3acQommOX7VhwY+uhhu0UodKWE 40XiE+HSsiDVIxGDnbciPyTts/UozQxRzbc5KlyeKbgDnN7CiydOO9BMCYq2/T1MyGMr vJO1U2fpET3ZEgstTrDedo2OiHO/YQ8a2XMLcqA/QsaFSrvV4hns9vObRrWfRTdLLXtJ U4T6IdDxKg+NxVU784YwJV9+RMXssbjdRHR3/QOYwy5/00un1aSzcbRBUreMZDgC/dQe iqVLQPP7Z104WDZYnklTyGAryvLDGxULrF3TeClX5cXHv6s+jwf08iVw0RDA3zhTwEDx 89+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jxoG7QyI0ZJaQMLGw0VgcwKA933F0rzkf2aCxCQrvwk=; b=lizd8No+Ynx1R4ocTOc2ABklX2iA8T1N1apZxtaUplX9Et0UmS+4hn0muzwGYqNHQt GCYYoFjkWXuu8cwwkHZH5vO/2agQqQaqLsyvISoc3z5kfoCbUyZPq2C1z1PeG20J/CZP RQIbCB36NtQXm9RJyX8dfnoXepv6CYh/3rrAMSj+cwhbLiszvUrPw24aLiwmXvPpaRLq IGwmg9CD8XiDdSLvEq02cZrzjmlZFs+bICgQghPwW+5k3iBPPZpv3a2Zo/iqF8XWYokx aClIUsRd9+911VZ9yZUKq1NnsLbTo2B+PcJjCO1Ix6XaVWa+7z1NM7eQJ8M1Vj+bhPPe czQw== X-Gm-Message-State: AD7BkJLaPCR2usjq73nLcDi40lw7GDbMafOKMXxigYD2wKD+gS66WBNrkLHoQa9woBAf8w== X-Received: by 10.66.141.175 with SMTP id rp15mr42356851pab.122.1459909707097; Tue, 05 Apr 2016 19:28:27 -0700 (PDT) Received: from localhost.localdomain (wsip-70-184-93-199.ph.ph.cox.net. [70.184.93.199]) by smtp.googlemail.com with ESMTPSA id l14sm528682pfi.23.2016.04.05.19.28.25 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Apr 2016 19:28:26 -0700 (PDT) From: Troy Kisky <troy.kisky@boundarydevices.com> To: netdev@vger.kernel.org, davem@davemloft.net, fugang.duan@nxp.com, lznuaa@gmail.com Subject: [PATCH net-next V3 11/16] net: fec: clear cbd_sc after transmission to help with debugging Date: Tue, 5 Apr 2016 19:25:57 -0700 Message-Id: <1459909562-22865-12-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459909562-22865-1-git-send-email-troy.kisky@boundarydevices.com> References: <1459909562-22865-1-git-send-email-troy.kisky@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160405_192844_368852_89F8EECE X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: andrew@lunn.ch, stillcompiling@gmail.com, arnd@arndb.de, sergei.shtylyov@cogentembedded.com, Troy Kisky <troy.kisky@boundarydevices.com>, gerg@uclinux.org, fabio.estevam@nxp.com, johannes@sipsolutions.net, l.stach@pengutronix.de, linux-arm-kernel@lists.infradead.org, tremyfr@gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index a2a9dca..f96ea97 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -1164,6 +1164,8 @@ static void fec_txq(struct net_device *ndev, struct fec_enet_priv_tx_q *txq) } break; } + bdp->cbd_sc = cpu_to_fec16((bdp == txq->bd.last) ? + BD_SC_WRAP : 0); index = fec_enet_get_bd_index(bdp, &txq->bd);
When the tx queue is dumped, it is easier to see that this entry is idle if cbd_sc is cleared after transmission. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> --- v3: change commit message --- drivers/net/ethernet/freescale/fec_main.c | 2 ++ 1 file changed, 2 insertions(+)