From patchwork Mon Sep 28 03:23:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Barry Song <21cnbao@gmail.com> X-Patchwork-Id: 7275001 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 91D4D9F36A for ; Mon, 28 Sep 2015 03:15:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BC4C9206C0 for ; Mon, 28 Sep 2015 03:15:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DCF37206B7 for ; Mon, 28 Sep 2015 03:15:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755562AbbI1DP1 (ORCPT ); Sun, 27 Sep 2015 23:15:27 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:33483 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755649AbbI1DP0 (ORCPT ); Sun, 27 Sep 2015 23:15:26 -0400 Received: by pacex6 with SMTP id ex6so160484934pac.0 for ; Sun, 27 Sep 2015 20:15:26 -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:in-reply-to:references; bh=CBJ5SBQ+5oM1SRIoAwn4/uFgWaBRBql4h+Nah1Lhg4Q=; b=pBamp664iFi06jElh9iVOh9L6BQ7h4x5gOMQ86TliYOTAPv4qQ2ZJXcUuddWAykvHY hMZWTfLYf0OuNb+gaMT7hGHv67Rb6od0gyAVtpsXWYd7S7Z6ujowiT41kF8n18NjMLrH ElVW0VCz+42PZ0tvUGaOCtZVBg+QJlt8MCN0QII6o9mzuoSGeMGA6aae0qTZbD/NAFvW lHhoa/XtaYWUMKyKgiqkP3XKDAIxuc5cHAmgObdELg7M1I0L6uQAvSGgcXl8L5CDd/UP 1jVMcLNbaLfOpeGbC6wZuUqXduwGZKzlZYx99DxU8DhbwxF6hwKatuxFhIiFZah0M0Iq k8lA== X-Received: by 10.66.219.195 with SMTP id pq3mr23473047pac.98.1443410126293; Sun, 27 Sep 2015 20:15:26 -0700 (PDT) Received: from ip-172-31-29-47.ap-northeast-1.compute.internal (ec2-54-65-106-64.ap-northeast-1.compute.amazonaws.com. [54.65.106.64]) by smtp.gmail.com with ESMTPSA id ej3sm16127153pbd.13.2015.09.27.20.15.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 27 Sep 2015 20:15:24 -0700 (PDT) From: Barry Song <21cnbao@gmail.com> To: ulf.hansson@linaro.org Cc: linux-mmc@vger.kernel.org, workgroup.linux@csr.com, Weijun Yang , Barry Song Subject: [PATCH v2 2/2] mmc: sirf: fix the capbility to support DDR50 Date: Mon, 28 Sep 2015 03:23:38 +0000 Message-Id: <1443410618-14763-2-git-send-email-21cnbao@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1443410618-14763-1-git-send-email-21cnbao@gmail.com> References: <1443410618-14763-1-git-send-email-21cnbao@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 From: Weijun Yang According to hardware spec, validate DDR50 mode for SDXC. Signed-off-by: Weijun Yang Signed-off-by: Barry Song --- drivers/mmc/host/sdhci-sirf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-sirf.c b/drivers/mmc/host/sdhci-sirf.c index 8842945..f5488c4 100644 --- a/drivers/mmc/host/sdhci-sirf.c +++ b/drivers/mmc/host/sdhci-sirf.c @@ -50,7 +50,8 @@ static u32 sdhci_sirf_readl_le(struct sdhci_host *host, int reg) if (unlikely((reg == SDHCI_CAPABILITIES_1) && (host->mmc->caps & MMC_CAP_UHS_SDR50))) { /* fake CAP_1 register */ - val = SDHCI_SUPPORT_SDR50 | SDHCI_USE_SDR50_TUNING; + val = SDHCI_SUPPORT_DDR50 | + SDHCI_SUPPORT_SDR50 | SDHCI_USE_SDR50_TUNING; } if (unlikely(reg == SDHCI_SLOT_INT_STATUS)) {