Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932231AbcKWQ4W (ORCPT ); Wed, 23 Nov 2016 11:56:22 -0500 Received: from mail1.bemta8.messagelabs.com ([216.82.243.209]:15468 "EHLO mail1.bemta8.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752924AbcKWQ4T (ORCPT ); Wed, 23 Nov 2016 11:56:19 -0500 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRWlGSWpSXmKPExsVy+LrFKl3DU6Y RBpt6JSxWT/3LanF51xw2ix8PpzNZzOl/ymbR8nQGo8XLvv0sDmwe/es+s3os3vOSyePc+8lM Hm9On2L3+LxJLoA1ijUzLym/IoE14+Xl2ewFDzgqen+eYGlgvMzexcjFISSwjFFi8c5prF2Mn BxsAiYSN++fYwGxhQW0JRbNbmYGsUUEXCX+TFjIAtLALLCdUeJd52tGkISQgL7EtGnLgRIcHL wCuhKTt5aDhFkEVCXOb5kJNlNUIEHi09OfYDN5BQQlTs58AmZzChhIXF79nQnEZgYa07R1DjO ELS+x/S2ELQR0w/uNi8HmSAgoSEyd3Mo8gZF/FpJRs5C0z0LSvoCReRWjRnFqUVlqka6RqV5S UWZ6RkluYmaOrqGBhV5uanFxYnpqTmJSsV5yfu4mRmB41zMwMO5gfPrB9xCjJAeTkijv6Y2mE UJ8SfkplRmJxRnxRaU5qcWHGGU4OJQkeL+dAMoJFqWmp1akZeYAIw0mLcHBoyTCa3sSKM1bXJ CYW5yZDpE6xagoJc77FaRPACSRUZoH1waL7kuMslLCvIwMDAxCPAWpRbmZJajyrxjFORiVhHk dQcbzZOaVwE1/BbSYCWix5DdjkMUliQgpqQZG/1Ov5e5dv8vwn1VWVsrowqlTc/Nyfp8x4JIP zU7+NVNE+NAZpvKloTM+//5rV9u7ZtpqaVVfpSkZDPvVP7awRn7/WrjU1P/2B+bjqU+2RURzG i6cVR7doqjN/ILh0FPPtLeJjFzrvec/6KgTnJzYfq/LQyPqxxafx4qLbiV1rPvJXfE17CuPEk txRqKhFnNRcSIA1oPI0ekCAAA= X-Env-Sender: Marc_Gonzalez@sigmadesigns.com X-Msg-Ref: server-16.tower-94.messagelabs.com!1479920176!118499749!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 5/6] Fixup tangox_dma_reset To: Mans Rullgard , Vinod Koul CC: , LKML , Sebastian Frias , Mason , Thibaud Cornic References: <5835C84A.6000706@sigmadesigns.com> Message-ID: <5835CA2F.20100@sigmadesigns.com> Date: Wed, 23 Nov 2016 17:56:15 +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: 1120 Lines: 35 --- drivers/dma/tango-dma.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/dma/tango-dma.c b/drivers/dma/tango-dma.c index 5250c053a7b9..24e124942a2f 100644 --- a/drivers/dma/tango-dma.c +++ b/drivers/dma/tango-dma.c @@ -414,18 +414,14 @@ static void tangox_dma_desc_free(struct virt_dma_desc *vd) static void tangox_dma_reset(struct tangox_dma_device *dev) { - int i; + writel(0xffffffff, dev->sbox_base + SBOX_RESET); + writel(0xffffffff, dev->sbox_base + SBOX_RESET2); - for (i = 0; i < 2; i++) { - writel(0xffffffff, dev->sbox_base); - writel(0xff00ff00, dev->sbox_base); - writel(0xffffffff, dev->sbox_base + 4); - writel(0xff00ff00, dev->sbox_base + 4); - udelay(2); - } + writel(0xff00ff00, dev->sbox_base + SBOX_RESET); + writel(0xff00ff00, dev->sbox_base + SBOX_RESET2); - writel(0xffffffff, dev->sbox_base + 8); - writel(0xffffffff, dev->sbox_base + 12); + writel(0xffffffff, dev->sbox_base + SBOX_ROUTE); + writel(0xffffffff, dev->sbox_base + SBOX_ROUTE2); } static struct dma_chan *tangox_dma_xlate(struct of_phandle_args *dma_spec, -- 2.9.0