From patchwork Fri Sep 5 05:15:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 4849741 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E8D08C0338 for ; Fri, 5 Sep 2014 05:15:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3296C200E3 for ; Fri, 5 Sep 2014 05:15:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5CEB6200D0 for ; Fri, 5 Sep 2014 05:15:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751424AbaIEFPb (ORCPT ); Fri, 5 Sep 2014 01:15:31 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:36812 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751510AbaIEFPI (ORCPT ); Fri, 5 Sep 2014 01:15:08 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NBE00ID8X93CTD0@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Fri, 05 Sep 2014 14:15:03 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.116]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id EB.6D.04513.7D649045; Fri, 05 Sep 2014 14:15:03 +0900 (KST) X-AuditID: cbfee691-f79546d0000011a1-a0-540946d7a1aa Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id C2.C7.04943.6D649045; Fri, 05 Sep 2014 14:15:02 +0900 (KST) Received: from localhost.localdomain ([10.252.81.186]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NBE007OMX924670@mmp2.samsung.com>; Fri, 05 Sep 2014 14:15:02 +0900 (KST) From: Jaehoon Chung To: linux-mmc Cc: Chris Ball , Ulf Hansson , tgih.jun@samsung.com, Jaehoon Chung Subject: [PATCH 4/4] mmc: dw_mmc: fixed wrong condtion checking. Date: Fri, 05 Sep 2014 14:15:00 +0900 Message-id: <1409894100-4713-5-git-send-email-jh80.chung@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1409894100-4713-1-git-send-email-jh80.chung@samsung.com> References: <1409894100-4713-1-git-send-email-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsWyRsSkRPe6G2eIQesNVosJl7czWtz41cZq ceR/P6PFh/sXmS2Orw13YPW4c20Pm8eNVwuZPPq2rGL0+LxJLoAlissmJTUnsyy1SN8ugSvj 8+/VbAVz2CqeLL7H2sA4gbWLkYNDQsBE4sgX2S5GTiBTTOLCvfVsXYxcHEICSxkl9i9awwqR MJHoevIAKjGdUWLa0UNQThuTxLHW4ywgVWwCOhLbvx1nArFFBDQlOrevBCtiFmhnlOjqOQ82 SljAQWLR2+NsIDaLgKrEnVtHmEFsXgFXidcrL7FAnKQgMWeSDUiYU8BN4tGXLWDlQkAllyft YQGZKSHwn03i/vR2Vog5AhLfJh+C6pWV2HSAGeJqSYmDK26wTGAUXsDIsIpRNLUguaA4Kb3I VK84Mbe4NC9dLzk/dxMjMIxP/3s2cQfj/QPWhxgFOBiVeHh/fOUIEWJNLCuuzD3EaAq0YSKz lGhyPjBa8kriDY3NjCxMTUyNjcwtzZTEeXWkfwYLCaQnlqRmp6YWpBbFF5XmpBYfYmTi4JRq YBT1Xrx1yrJLv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S X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP DDR mode can use with 4bit or 8bit buswidth. Signed-off-by: Jaehoon Chung --- drivers/mmc/host/dw_mmc-exynos.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c index aee39bc..0884df6 100644 --- a/drivers/mmc/host/dw_mmc-exynos.c +++ b/drivers/mmc/host/dw_mmc-exynos.c @@ -190,8 +190,7 @@ static void dw_mci_exynos_set_ios(struct dw_mci *host, struct mmc_ios *ios) if (ios->timing == MMC_TIMING_MMC_DDR52) { mci_writel(host, CLKSEL, priv->ddr_timing); /* Should be double rate for DDR mode */ - if (ios->bus_width == MMC_BUS_WIDTH_8) - wanted <<= 1; + wanted <<= 1; } else { mci_writel(host, CLKSEL, priv->sdr_timing); }