From patchwork Sun Oct 4 12:04:13 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: 7323551 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 F17F39F1D5 for ; Sun, 4 Oct 2015 11:55:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0CA17203FB for ; Sun, 4 Oct 2015 11:55:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 26B9920456 for ; Sun, 4 Oct 2015 11:55:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751441AbbJDLzx (ORCPT ); Sun, 4 Oct 2015 07:55:53 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:34985 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751352AbbJDLzw (ORCPT ); Sun, 4 Oct 2015 07:55:52 -0400 Received: by pacfv12 with SMTP id fv12so151807453pac.2 for ; Sun, 04 Oct 2015 04:55:52 -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=vPKDs+tXg6KaJP3NsjRmOmHcLMlob5Lb6472yiNHQ2+c+rFEcc18UmPiD5olKD+mG6 S+UJaPiOeLh1CFg7AiY1b6x3Vl36XRmmitmVH2FtieloqMbWx/NrNCkuEV99vi5evBk/ Jaheie+RQtiiIXauOpQhrqygvMTqnvwLEiv+cbVKPQDNaDFj2jrTk9M2B3SwzHIL3oQN Q3MoiEfS0F3q7DP/QuV7roap/wnQDV/HRpfasXfSINihDmmdyI4BnDzg62xHsHOI7Vm1 VHRK4Q15VE5UDlpmcMpZbaf224ZROrTJ5JBQrRqJ446peas747kGr0pWhoaDwHHv/232 pUJQ== X-Received: by 10.66.136.102 with SMTP id pz6mr32835123pab.52.1443959752333; Sun, 04 Oct 2015 04:55:52 -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 gd2sm21803392pbb.41.2015.10.04.04.55.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Oct 2015 04:55:51 -0700 (PDT) From: Barry Song <21cnbao@gmail.com> To: ulf.hansson@linaro.org, linux-mmc@vger.kernel.org Cc: workgroup.linux@csr.com, Weijun Yang , Barry Song Subject: [PATCH v3 3/3] mmc: sirf: fix the capbility to support DDR50 Date: Sun, 4 Oct 2015 12:04:13 +0000 Message-Id: <1443960253-4082-3-git-send-email-21cnbao@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1443960253-4082-1-git-send-email-21cnbao@gmail.com> References: <1443960253-4082-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)) {