From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fMg4Z-00044B-Gu for barebox@lists.infradead.org; Sat, 26 May 2018 20:46:10 +0000 Received: by mail-pl0-x244.google.com with SMTP id w19-v6so5021384plq.4 for ; Sat, 26 May 2018 13:45:44 -0700 (PDT) From: Andrey Smirnov Date: Sat, 26 May 2018 13:44:10 -0700 Message-Id: <20180526204451.16530-8-andrew.smirnov@gmail.com> In-Reply-To: <20180526204451.16530-1-andrew.smirnov@gmail.com> References: <20180526204451.16530-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 07/48] net: fec_imx: remove unnecessary DMA sync ops To: barebox@lists.infradead.org From: Sascha Hauer The fec receive buffers are coherently mapped, no need to dma_sync on them. Signed-off-by: Sascha Hauer --- drivers/net/fec_imx.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c index d506fd64f..33599dd82 100644 --- a/drivers/net/fec_imx.c +++ b/drivers/net/fec_imx.c @@ -580,11 +580,7 @@ static int fec_recv(struct eth_device *dev) */ frame = phys_to_virt(readl(&rbd->data_pointer)); frame_length = readw(&rbd->data_length) - 4; - dma_sync_single_for_cpu((unsigned long)frame->data, - frame_length, DMA_FROM_DEVICE); net_receive(dev, frame->data, frame_length); - dma_sync_single_for_device((unsigned long)frame->data, - frame_length, DMA_FROM_DEVICE); len = frame_length; } else { if (bd_status & FEC_RBD_ERR) { -- 2.17.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox