Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933204AbcKWQ4t (ORCPT ); Wed, 23 Nov 2016 11:56:49 -0500 Received: from mail1.bemta8.messagelabs.com ([216.82.243.199]:36876 "EHLO mail1.bemta8.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750710AbcKWQ4r (ORCPT ); Wed, 23 Nov 2016 11:56:47 -0500 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIIsWRWlGSWpSXmKPExsVy+LrFKl3fU6Y RBkt+8VqsnvqX1eLyrjlsFj8eTmeymNP/lM2i5ekMRouXfftZHNg8+td9ZvVYvOclk8e595OZ PN6cPsXu8XmTXABrFGtmXlJ+RQJrxsolD9gLjrJVfFl4gbGB8QZrFyMnh5DAMkaJo5fKQGw2A ROJm/fPsYDYwgKaEvMW3garERFwlfgzYSFQnIuDWWA7o8S7zteMEM36EtOmLQdr4AWyV/29Cx Tn4GARUJU4PbMYJCwqkCDx6elPqBJBiZMzn4DZnAIGEpdXf2cCsZmBWpu2zmGGsOUltr+FsIU EtCXeb1wMdoOEgILE1MmtzBMY+WchGTULSfssJO0LGJlXMWoUpxaVpRbpGprrJRVlpmeU5CZm 5ugaGljo5aYWFyemp+YkJhXrJefnbmIEBnc9AwPjDsYpu90PMUpyMCmJ8p7eaBohxJeUn1KZk VicEV9UmpNafIhRhoNDSYL32wmgnGBRanpqRVpmDjDOYNISHDxKIryHQNK8xQWJucWZ6RCpU4 y6HO82v3vAJMSSl5+XKiXOW3YSqEgApCijNA9uBCzmLzHKSgnzMjIwMAjxFKQW5WaWoMq/YhT nYFQS5j0JsoonM68EbtMroCOYgI6Q/GYMckRJIkJKqoFxidke6UXZYZpi3J3tLceTnmbpTnta Ibf2v7fov7mZSseN5ZJcxa5y77wscep8X6v4c69NXBGTHnB/WmI2S6r5jf6ksJ1fgnc9Wc3Ie Wg3V1iIT/Cr1mn/dL6Fz/z8q2JrjVfYb6PL8cdM5H9v6fy8tuVFVxXbHWFLE74dPRvUtf28bm sF281VYinOSDTUYi4qTgQAnT/yb/QCAAA= X-Env-Sender: Marc_Gonzalez@sigmadesigns.com X-Msg-Ref: server-16.tower-94.messagelabs.com!1479920204!118499930!1 X-Originating-IP: [195.215.56.170] X-StarScan-Received: X-StarScan-Version: 9.0.16; banners=-,-,- X-VirusChecked: Checked From: Marc Gonzalez Subject: [PATCH 6/6] Relax write accesses To: Mans Rullgard , Vinod Koul CC: , LKML , Sebastian Frias , Mason , Thibaud Cornic References: <5835C84A.6000706@sigmadesigns.com> Message-ID: <5835CA49.1010907@sigmadesigns.com> Date: Wed, 23 Nov 2016 17:56:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 MIME-Version: 1.0 In-Reply-To: <5835C84A.6000706@sigmadesigns.com> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit X-Originating-IP: [172.27.0.114] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 837 Lines: 25 --- drivers/dma/tango-dma.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/dma/tango-dma.c b/drivers/dma/tango-dma.c index 24e124942a2f..7049b7c3c0db 100644 --- a/drivers/dma/tango-dma.c +++ b/drivers/dma/tango-dma.c @@ -153,11 +153,9 @@ static void tangox_dma_pchan_detach(struct tangox_dma_pchan *pchan) static int tangox_dma_issue_single(struct tangox_dma_pchan *pchan, struct tangox_dma_sg *sg, int flags) { - writel(sg->addr, pchan->base + DMA_ADDR); - writel(sg->len, pchan->base + DMA_COUNT); - wmb(); - writel(DMA_MODE_SINGLE << 1 | flags, pchan->base + DMA_CMD); - wmb(); + writel_relaxed(sg->addr, pchan->base + DMA_ADDR); + writel_relaxed(sg->len, pchan->base + DMA_COUNT); + writel_relaxed(DMA_MODE_SINGLE << 1 | flags, pchan->base + DMA_CMD); return sg->len; } -- 2.9.0