Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2690824yba; Mon, 6 May 2019 10:02:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxA0Ac4dCacOKHmrR/lvKwvirb4+PJ/UfLfUFRqerT/u50B+WDd8VSbanBnUQozOsMguybf X-Received: by 2002:a65:5c89:: with SMTP id a9mr33776728pgt.334.1557162176230; Mon, 06 May 2019 10:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557162176; cv=none; d=google.com; s=arc-20160816; b=uGooSXs6ZGixDASnY6/64bAPHXClsDIApVVeJwGRGxGp33Kqft/LpJF6M0fZIlmFoZ 6SxwZAebVJ1pRXGGpMebLWaTlLa5amHfk1QShgHocDaKTBt6pG9fziqX/plxzZkrdzL4 VD2yaU8EESCcfHy8b615CE7sVEnOoNP2Yq//zeycxJL0Ccd9KtNVpaXHskW+3WBpkvFc 9DX8fRBtZS8N/grDehGJEejDdDPtzD1PUFdrucGPjuiFerGKAAU/APv+wlmmmbvFtaOS EdJqJ21L0ninatJz07ZRTn3+WIYAFjeu/RtfG4uOJs5VVOpsLhBYZRejpTTeHkGHnjyE oAZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=zm81FW3KcENXa+XgLOmWMC1Drv2h8huE0OlhIp7SLHw=; b=b3A8qry9S4ExBgLA/71j67Jr0Xp6xleNZ7Cw0RSkqxLT9AawI4I23HaCQ3fii4EjPM H2bCrLDGwEYB47SAWeGYXjwOALbSxgjhfJMGo9SEiZsBBf5fcitQeV+66rw3R3jYSdZP 1kGf6fXyhXOCDFkWbqjv4nF7QVCIW/j6uUN8+L2vO+PTBG5vIPhijTmppDJXXTFOuKls 7i2uKQakLkSbzOkGD+vnhYLpAK35kX63FJAv20Gu0JpJTt+ST3+5ALBVtVS4KwPSlMwK pDau8JsZbDaZOYE+pZlW/lkarD3W7Xf93yJVnskubbulLJjqIqOmC2c8pYvnwHalcq9P 2d0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=RdGeecv8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a85si15787005pfj.12.2019.05.06.10.02.39; Mon, 06 May 2019 10:02:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=RdGeecv8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727052AbfEFRBh (ORCPT + 99 others); Mon, 6 May 2019 13:01:37 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:43027 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727021AbfEFRBg (ORCPT ); Mon, 6 May 2019 13:01:36 -0400 Received: by mail-pg1-f194.google.com with SMTP id t22so6738615pgi.10 for ; Mon, 06 May 2019 10:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zm81FW3KcENXa+XgLOmWMC1Drv2h8huE0OlhIp7SLHw=; b=RdGeecv84dfagcFaBy4oZ8KX4YElvSCjgZ4wewEOn11JljodjvXlkDUiIVZwXtqxJ8 SGycem6z7VwK/vXBklKJf0c5MRxBr4efE+k1J9U3I6eaHpraVQFRuTJFGElKI9V/elBe II6qQdUp0itHcwyvDHxXEp5ZOlY9zDetY/CDk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zm81FW3KcENXa+XgLOmWMC1Drv2h8huE0OlhIp7SLHw=; b=HaopiQfNHdBaZFrXViyk7zaK9VKGfxCEARl/+P4reGLg9xzH78AYln/VQeM6Tibuz3 nbniQQxBx6CD3GZt1M8KDuWhAGOtFBhhCUVOn5lE2bzzYN01foKDJSbwFSXtmANIeCcD CG3Py/qC42GR/oQ78BSyqkd3Q9daRjMFJ0NPbCRwb2AAfygwMUkbuU8Y5gzJZ3bZ20xI fHxTdW815on2WZg+6LuIsMyhyvCBDm+iKKqGhWD1Wa/uCZ8Eo/1WTgljlgfNY3X/eHET g9E8dKfyXSnw7ICRSwtBBlV+7o91CsndP7QGmDC/+u4eAJGyt3j+FCDhFJgArmFm0v4Z 9LoA== X-Gm-Message-State: APjAAAU2EkBhH0ImnWEqJmlFkwWZmc/W0zcIFWH232mPnNQjT1wymG/J eXRDrRz3nCj87OyJiAwn5hq7yw== X-Received: by 2002:a63:a18:: with SMTP id 24mr32875692pgk.332.1557162094885; Mon, 06 May 2019 10:01:34 -0700 (PDT) Received: from lbrmn-lnxub113.broadcom.net ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id l23sm4555644pgh.68.2019.05.06.10.01.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 10:01:34 -0700 (PDT) From: Scott Branden To: Adrian Hunter , Ulf Hansson , Ray Jui , Scott Branden , Stefan Wahren Cc: BCM Kernel Feedback , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Trac Hoang , Scott Branden Subject: [PATCH 1/2] mmc: sdhci-iproc: cygnus: Set NO_HISPD bit to fix HS50 data hold time problem Date: Mon, 6 May 2019 10:01:14 -0700 Message-Id: <20190506170115.10840-2-scott.branden@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190506170115.10840-1-scott.branden@broadcom.com> References: <20190506170115.10840-1-scott.branden@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Trac Hoang The iproc host eMMC/SD controller hold time does not meet the specification in the HS50 mode. This problem can be mitigated by disabling the HISPD bit; thus forcing the controller output data to be driven on the falling clock edges rather than the rising clock edges. This change applies only to the Cygnus platform. Fixes: c833e92bbb60 ("mmc: sdhci-iproc: support standard byte register accesses") Signed-off-by: Trac Hoang Signed-off-by: Scott Branden --- drivers/mmc/host/sdhci-iproc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c index 9d12c06c7fd6..9d4071c41c94 100644 --- a/drivers/mmc/host/sdhci-iproc.c +++ b/drivers/mmc/host/sdhci-iproc.c @@ -196,7 +196,8 @@ static const struct sdhci_ops sdhci_iproc_32only_ops = { }; static const struct sdhci_pltfm_data sdhci_iproc_cygnus_pltfm_data = { - .quirks = SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK, + .quirks = SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK | + SDHCI_QUIRK_NO_HISPD_BIT, .quirks2 = SDHCI_QUIRK2_ACMD23_BROKEN | SDHCI_QUIRK2_HOST_OFF_CARD_ON, .ops = &sdhci_iproc_32only_ops, }; -- 2.17.1