From patchwork Tue Oct 22 09:11:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuvaraj CD X-Patchwork-Id: 3081571 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 725E89F2B7 for ; Tue, 22 Oct 2013 09:12:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5E8F120483 for ; Tue, 22 Oct 2013 09:12:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1F2622046F for ; Tue, 22 Oct 2013 09:12:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751174Ab3JVJMV (ORCPT ); Tue, 22 Oct 2013 05:12:21 -0400 Received: from mail-pb0-f52.google.com ([209.85.160.52]:51778 "EHLO mail-pb0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751126Ab3JVJMU (ORCPT ); Tue, 22 Oct 2013 05:12:20 -0400 Received: by mail-pb0-f52.google.com with SMTP id wy17so5300766pbc.25 for ; Tue, 22 Oct 2013 02:12:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=AtXl1XYXHzTeZqFiiaUw0abMAfWd1mjmCB5aqWriNWY=; b=M1aQ1aZiZQ00l7NxSb1TGepRBC2ByzuLXzsMLtXJHs7S1Qk7P5uFisWKulFOazMn7t wxWFeF/0vxDUXLhMewtesGrH7O/N8HoVh/J19lbZZ2cMGwDjFhTV4samtOM3uJV7SSYN IXC/EXFgEEliIi9biDryARAUIVCPgn6Tz8m7qkE+PygrmkhAMx5dmBWugHNJzluEQFiJ mcY9Wv/F9JbqAELR8F4wD/22qxhSUTa2n1jncSf6GaS0oS8hDuGlxXRozgx3oaq2Gyrx ntkBi8Voi28yNYJwAE9hPfvB7enYzElKu3FHCTpvm+DWhq3VwxN58MRHPB0dWfSD/N5h 3SiA== X-Received: by 10.68.185.68 with SMTP id fa4mr7438335pbc.136.1382433140289; Tue, 22 Oct 2013 02:12:20 -0700 (PDT) Received: from yuvaraj-ubuntu.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id pu5sm31856497pac.21.2013.10.22.02.12.16 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Oct 2013 02:12:19 -0700 (PDT) From: Yuvaraj Kumar C D To: cjb@laptop.org, jh80.chung@samsung.com, tgih.jun@samsung.com, linux-mmc@vger.kernel.org, thomas.ab@samsung.com, grundler@chromium.org Cc: dianders@chromium.org, sonnyrao@chromium.org, Yuvaraj Kumar C D Subject: [PATCH] mmc: dw_mmc: exynos: Revert the sdr_timing assignment Date: Tue, 22 Oct 2013 14:41:56 +0530 Message-Id: <1382433116-22180-1-git-send-email-yuvaraj.cd@samsung.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 commit 4ad602c9df1e3b04979c260b5612141b4b892257 was wrongly assigning ddr_timing value to sdr_timing.This patch fix's this by reverting the sdr_timing assignment statement to the earlier location. Signed-off-by: Yuvaraj Kumar C D Acked-by: Jaehoon Chung Reported-by: Grant Grundler Acked-by: Seungwon Jeon --- drivers/mmc/host/dw_mmc-exynos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c index d42e664..3423c5e 100644 --- a/drivers/mmc/host/dw_mmc-exynos.c +++ b/drivers/mmc/host/dw_mmc-exynos.c @@ -251,12 +251,13 @@ static int dw_mci_exynos_parse_dt(struct dw_mci *host) if (ret) return ret; + priv->sdr_timing = SDMMC_CLKSEL_TIMING(timing[0], timing[1], div); + ret = of_property_read_u32_array(np, "samsung,dw-mshc-ddr-timing", timing, 2); if (ret) return ret; - priv->sdr_timing = SDMMC_CLKSEL_TIMING(timing[0], timing[1], div); priv->ddr_timing = SDMMC_CLKSEL_TIMING(timing[0], timing[1], div); host->priv = priv; return 0;