Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755594AbaJGX7w (ORCPT ); Tue, 7 Oct 2014 19:59:52 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:19964 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754820AbaJGX7t (ORCPT ); Tue, 7 Oct 2014 19:59:49 -0400 X-AuditID: cbfee68e-f79b46d000002b74-52-54347e73d6b9 Message-id: <54347E72.8010203@samsung.com> Date: Wed, 08 Oct 2014 08:59:46 +0900 From: Jaehoon Chung User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-version: 1.0 To: Doug Anderson , Sonny Rao Cc: "linux-mmc@vger.kernel.org" , Heiko Stuebner , Seungwon Jeon , Ulf Hansson , Eddie Cai , Addy Ke , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] mmc: dw_mmc: Reset DMA before enabling IDMAC References: <1412618020-22278-1-git-send-email-sonnyrao@chromium.org> In-reply-to: Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFIsWRmVeSWpSXmKPExsWyRsSkRLe4ziTEYN4vCYtl/78zWZxddpDN 4sukk6wW/x+9ZrXY9Pgaq8XlXXPYLI7872e0eHJmJqPFh/sXmS2Orw134PKY3XCRxePOtT1s HpuX1Hv8nbWfxaNvyypGj+3X5jF7fN4kF8AexWWTkpqTWZZapG+XwJXRcES64CxbxetWlgbG daxdjJwcEgImEmee3WeEsMUkLtxbz9bFyMUhJLCUUeLq/a/MMEUH7sxkhEgsYpTYvHExC4Tz mlHi6zGQFk4OXgEtib0rroKNZRFQlfi5o5EFxGYT0JHY/u04E4gtKhAmcahtHhNEvaDEj8n3 wGpEBHwkHh5eBbaNWaCTWeLyJ0MQW1jAUWLC0VYmiGU9jBKbVu8EK+IUCJY4PWEWVIO6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xCjAwajEw7tCyzhEiDWxrLgy9xCjBAezkghvZLRJiBBvSmJlVWpR fnxRaU5q8SFGU2AQTGSWEk3OB6anvJJ4Q2MTMyNLI3NDCyNjcyVx3oOt1oFCAumJJanZqakF qUUwfUwcnFINjOk2C2e1yKyZcI1p+fJNvzwem+sE7hdsWem+YMKFx0V3g1bzlLDeKDtfPn+N ean5jT/8/6v2O7hveWjj08Pew6sZe9a+5wO3/cn3ca73Dz0WrfeV6NLwebD/zO5fS5cJ75IK fizfGjLh/8Jt9XxtXN5Ftr4xF12quiy9k3dXxE2p1Hs+X/jreSWW4oxEQy3mouJEAHTQgU0X AwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Acked-by: Jaehoon Chung On 10/07/2014 03:11 AM, Doug Anderson wrote: > Sonny, > > On Mon, Oct 6, 2014 at 10:53 AM, Sonny Rao wrote: >> We've already got a reset of DMA after it's done. Add one before we >> start DMA too. This fixes a data corruption on Rockchip SoCs which >> will get bad data when doing a DMA transfer after doing a PIO transfer. >> >> We tested this on an Exynos 5800 with HS200 and didn't notice any >> difference in sequential read throughput. >> >> Signed-off-by: Sonny Rao >> Signed-off-by: Doug Anderson >> --- >> drivers/mmc/host/dw_mmc.c | 4 ++++ >> 1 file changed, 4 insertions(+) > > Reviewed-by: Doug Anderson > Tested-by: Doug Anderson > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/