From patchwork Thu Jul 14 16:39:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 975432 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6EGdAKR031666 for ; Thu, 14 Jul 2011 16:39:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932090Ab1GNQjJ (ORCPT ); Thu, 14 Jul 2011 12:39:09 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:57395 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932076Ab1GNQjI (ORCPT ); Thu, 14 Jul 2011 12:39:08 -0400 Received: from axis700.grange (dslb-178-006-253-037.pools.arcor-ip.net [178.6.253.37]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0M7Jw6-1RSL64353W-00wzlj; Thu, 14 Jul 2011 18:39:06 +0200 Received: by axis700.grange (Postfix, from userid 1000) id 6B85F189B6F; Thu, 14 Jul 2011 18:39:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id 68311189B6E; Thu, 14 Jul 2011 18:39:06 +0200 (CEST) Date: Thu, 14 Jul 2011 18:39:06 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: linux-mmc@vger.kernel.org cc: linux-sh@vger.kernel.org, Magnus Damm , "Rafael J. Wysocki" , Chris Ball , Ian Molton , Simon Horman Subject: [PATCH 1/2] mmc: tmio: fix a recently introduced bug in DMA code In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Provags-ID: V02:K0:euEGMDqS+3gBcY05pqhOTkERIOf7LEtgNny8NbD9dTb 0QTOhkhMkN8Wn+n8x1Kcctuu8xLqWSt1HvOs8+pws7EK/M59nr pM/brAEYLkIoLCER+iBFHXqgZ7EjKPfjSJhCpVEtRZ/DeuKFiZ mgc9CzWcBDT4xnOVdhqTWLmH5S+Yx+8hVlkxxidEAfD9htA1nm knjwF9XNMaoDzsS0FaKOV9bPX87rtm/Y5TowXmfY40= Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 14 Jul 2011 16:39:10 +0000 (UTC) A recent commit "mmc: tmio: Share register access functions" has swapped arguments of a macro and broken DMA with TMIO MMC. This patch fixes the arguments back. Signed-off-by: Guennadi Liakhovetski --- drivers/mmc/host/tmio_mmc_dma.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/tmio_mmc_dma.c b/drivers/mmc/host/tmio_mmc_dma.c index f24a029..7e86662 100644 --- a/drivers/mmc/host/tmio_mmc_dma.c +++ b/drivers/mmc/host/tmio_mmc_dma.c @@ -26,7 +26,7 @@ static void tmio_mmc_enable_dma(struct tmio_mmc_host *host, bool enable) { #if defined(CONFIG_SUPERH) || defined(CONFIG_ARCH_SHMOBILE) /* Switch DMA mode on or off - SuperH specific? */ - sd_ctrl_write16(host, enable ? 2 : 0, CTL_DMA_ENABLE); + sd_ctrl_write16(host, CTL_DMA_ENABLE, enable ? 2 : 0); #endif }