From patchwork Tue Aug 11 08:42:47 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: 6989731 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8B4FAC05AC for ; Tue, 11 Aug 2015 08:36:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C8E9C20650 for ; Tue, 11 Aug 2015 08:36:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EBE072064F for ; Tue, 11 Aug 2015 08:36:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755185AbbHKIgJ (ORCPT ); Tue, 11 Aug 2015 04:36:09 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:34697 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755149AbbHKIgI (ORCPT ); Tue, 11 Aug 2015 04:36:08 -0400 Received: by pawu10 with SMTP id u10so159569708paw.1 for ; Tue, 11 Aug 2015 01:36:05 -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=OlNE/Z2yDCfeBOh9/Ajz0xkwOqGQ+M9FNMVTv7wPcVM=; b=M5tlV9KfGUmMRfivIpo5q13hOqueWpUxrUz8CgWBHY5FSEl4q7RDZAsFOSzYd2M/Wy asUF24WLnVgXLKHTFx7aPE7kc9obqKF1jqHJNaO9wNohj9RPWUleDh1BVXKfVmVAOe75 NwLcu5eZnavWvGHqPPbBOOpqbHeOb3UPvRVBVrOqKZPIGKfpjGU+W/ybHZHQpdqyrwG9 QZMexhvbQhFc2IImk/gNdIaZTHiTlAe3yHvcF+YbJtANGCRoxnsjNJTFHBqEh60iRhOf RNWpYTSMgH4hrET5ICPEqVMLZpB4I+FG9WaWQtKMYKuEbis1YEpUW2RxuGauQ5bq3Ob8 G0YQ== X-Received: by 10.66.65.234 with SMTP id a10mr54371382pat.2.1439282165838; Tue, 11 Aug 2015 01:36:05 -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 y2sm1640816pdi.80.2015.08.11.01.36.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Aug 2015 01:36:04 -0700 (PDT) From: Barry Song <21cnbao@gmail.com> To: ulf.hansson@linaro.org, linux-mmc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, workgroup.linux@csr.com, Weijun Yang , Barry Song Subject: [PATCH 2/2] mmc: sirf: fix the capbility to support DDR50 Date: Tue, 11 Aug 2015 08:42:47 +0000 Message-Id: <1439282567-6362-1-git-send-email-21cnbao@gmail.com> X-Mailer: git-send-email 1.9.1 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.0 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 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 0110bae..03efcfc 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)) {