From patchwork Thu Jan 14 13:38:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 567389 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 820441402DE for ; Fri, 15 Jan 2016 00:38:29 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b=PddTPT6e; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ECA58A7613; Thu, 14 Jan 2016 14:38:27 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TPO0-mEyn7lM; Thu, 14 Jan 2016 14:38:27 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 70500A74D6; Thu, 14 Jan 2016 14:38:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2D9EAA759A for ; Thu, 14 Jan 2016 14:38:24 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j7fFwUSGIwn3 for ; Thu, 14 Jan 2016 14:38:24 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by theia.denx.de (Postfix) with ESMTPS id F243EA74B7 for ; Thu, 14 Jan 2016 14:38:23 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id f206so43640141wmf.2 for ; Thu, 14 Jan 2016 05:38:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id; bh=kt3p+oZIkjXR9tNJJK2IK7mg3qyw2mHRgKrUUQ2m4tg=; b=PddTPT6eoiwUWXI7ApKJUQKxMmpKPigFJ9cQ9Z8Jii3DHiNMLuTorLXy4FTERBDfQc 6nbP9LQC2F3TsGF2rzTUDYEFAaMvKOXQmOUnVg+aujnK7KgbQL6iv0WlfJGKrz1DNtKr Gh2audCtUMtuVn/xAjBePhd+Tz943SiywRZ8UTSdn9DgvvOyJJzhBJNvkNFViDBiz35q MTVxsS6Kg6r/EbhyzxtWH83GGVz4mqRyUorBGc6S6sNyyWMN9nq0/wbpM1gZjgGvJKi9 WmKZYUy5chbGq1Po9sj++y0oTSZqzbEPzpJmm/46V04pcnFBvcu5VW+4rGTuAZfoC4gC KXTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=kt3p+oZIkjXR9tNJJK2IK7mg3qyw2mHRgKrUUQ2m4tg=; b=Ix4LbzpLRLY0KTwBYUHHfxkF8ZiHCmPSFEwznNFT1djjjj0hiVrpI+ymTemI4o0Jdx hspwW0GNTc7lvjdsTUhIE1mNfgL52zw5khHbuKVQcOJFprFGmt7R+N2p2tmuVbnJhbFO R88WvUMtqtzSpgBWbW42uehMo8g5Oba7pYejG8uVw+2TvGbXYrrsDHbMuhci/r44Z7kN ooixfhQQWTXksV4V19kvon+SoI9xdEOGnmAcJBYGrLsavHkrZaaMY889tKjq/tvxHIOr kfjAc1ybGm6aT7SDamd8ILWYJT8iawwF+BKoholZtkMv0riYYSqRACxlwl0lBkxv4ML8 usuA== X-Gm-Message-State: ALoCoQnYL0ssCbGFavr3VRV9tk5mAkDiXdyRB76P6C4CZNq/gd9bHmy1R1SKuverEUzZOzzm4MfHNqoFhGCi+KM4YdQsWIX15w== X-Received: by 10.194.88.130 with SMTP id bg2mr4101922wjb.162.1452778703624; Thu, 14 Jan 2016 05:38:23 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id w1sm7334196wmd.2.2016.01.14.05.38.22 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 14 Jan 2016 05:38:23 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de Date: Thu, 14 Jan 2016 14:38:21 +0100 Message-Id: <3e754bf8642f443ac8170742cdbb6eadfc23f4d0.1452778699.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 Cc: Pantelis Antoniou Subject: [U-Boot] [PATCH 1/2] mmc: sdhci: Clear high speed if not supported X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Siva Durga Prasad Paladugu Clear high speed bit if it was not supported by the driver. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Emil Lenchak Signed-off-by: Michal Simek --- drivers/mmc/sdhci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 02d71b934409..ff770b16e27a 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -530,6 +530,10 @@ int add_sdhci(struct sdhci_host *host, u32 max_clk, u32 min_clk) if (caps & SDHCI_CAN_DO_8BIT) host->cfg.host_caps |= MMC_MODE_8BIT; } + + if (host->quirks & SDHCI_QUIRK_NO_HISPD_BIT) + host->cfg.host_caps &= ~(MMC_MODE_HS | MMC_MODE_HS_52MHz); + if (host->host_caps) host->cfg.host_caps |= host->host_caps;