From patchwork Thu Jan 28 21:25:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 8154021 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id ECFA89F818 for ; Thu, 28 Jan 2016 21:32:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 265E22020F for ; Thu, 28 Jan 2016 21:32:05 +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 59B912013A for ; Thu, 28 Jan 2016 21:32:04 +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 1aOu9D-00088L-RQ; Thu, 28 Jan 2016 21:30:35 +0000 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOu7L-0005s1-67 for linux-arm-kernel@lists.infradead.org; Thu, 28 Jan 2016 21:28:40 +0000 Received: by mail-pa0-x22d.google.com with SMTP id yy13so29097544pab.3 for ; Thu, 28 Jan 2016 13:28:22 -0800 (PST) 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=VuIC85KBO9RppTgRILqOegQlYx9iuodxhgWgi6Vbnqs=; b=eJkmIk1QBZC9D+pi4GGFw8wFy30DbiqUl5N3v1lSNUfSukBIIKpK8AVpq9YeIV4kXD eXbiYdspEJxmDzmmFlvgh7xnzRg1SdBXMScoRJfSNJgNy9LFGFnd6WQcweCzBrjgWc3u 7qC0Vp1DWguYVXfa/4D4zAS2F5TnAC0QpCJQBLX2aK5ERmc13S58wKMBPZaIzWZyQGzX mESmOB4XeRzL5hwPcNYY8yKp3SDyLmJJNw29DbkevQHfjFloYzE7LY0HgmMQEoc2o5cd ybwpSGPkxDFrPM24zgp2CQVHtieh6herXSTyE23DvyK3Ouc2Vu3n9R55wzjXdPSJPMNN FTzA== 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=VuIC85KBO9RppTgRILqOegQlYx9iuodxhgWgi6Vbnqs=; b=GCNNtQb3dzUgcbG/GOInl2W9RhVPRhb7N3RX0TSOGSHdt5x63i9q0gDHL3EmEkEchI rZzXQAC8HGxy/e5lFora93UKFBc+iTESuNSj5Hvi9tRPcuTb3llMqlU4c/5PxkqYrkBM qwhqWjz+HeOnt+8eeV88xSIlwmuNtb5mmATP3KYvKNN+I1CsFSIKPOLfQqeSJXUTsknj rf8X0VUpt0pZVHXinDp2qSCMSwLGI7wK3prT6yROoprePJQ7pyC36PrcXSzFnF094HDf Yhcg/niSXvyOryB0FEFRN/XsKtCbUOBbdUK0gW/BYaUR143j+ztoN2z16ON5rvOsN9l4 NCvg== X-Gm-Message-State: AG10YOTTmwNfLXaiF7JNRx9Tf6n0p6PtI15XO+AP+D6ArIw/jLzv+EMTJTKDGf/fqiCazg== X-Received: by 10.66.164.196 with SMTP id ys4mr7840706pab.119.1454016502108; Thu, 28 Jan 2016 13:28:22 -0800 (PST) Received: from localhost.localdomain (wsip-70-184-93-199.ph.ph.cox.net. [70.184.93.199]) by smtp.googlemail.com with ESMTPSA id c90sm18583190pfd.31.2016.01.28.13.28.20 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jan 2016 13:28:21 -0800 (PST) From: Troy Kisky To: netdev@vger.kernel.org, davem@davemloft.net, B38611@freescale.com Subject: [PATCH net-next 08/40] net: fec: move cbd_bufaddr assignment closer to the mapping function Date: Thu, 28 Jan 2016 14:25:32 -0700 Message-Id: <1454016364-30985-9-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1454016364-30985-1-git-send-email-troy.kisky@boundarydevices.com> References: <1454016364-30985-1-git-send-email-troy.kisky@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160128_132839_471272_9C03D5CA X-CRM114-Status: GOOD ( 11.20 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fabio.estevam@freescale.com, andrew@lunn.ch, linux@arm.linux.org.uk, Troy Kisky , laci@boundarydevices.com, l.stach@pengutronix.de, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, tremyfr@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 Signed-off-by: Troy Kisky --- drivers/net/ethernet/freescale/fec_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index b87f80d..15a93f90 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -476,6 +476,8 @@ static int fec_enet_txq_submit_skb(struct fec_enet_priv_tx_q *txq, estatus |= BD_ENET_TX_TS; } } + bdp->cbd_bufaddr = addr; + bdp->cbd_datlen = buflen; if (fep->bufdesc_ex) { @@ -499,8 +501,6 @@ static int fec_enet_txq_submit_skb(struct fec_enet_priv_tx_q *txq, /* Save skb pointer */ txq->tx_skbuff[index] = skb; - bdp->cbd_datlen = buflen; - bdp->cbd_bufaddr = addr; /* Make sure the updates to rest of the descriptor are performed before * transferring ownership. */