Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp266068ybi; Wed, 29 May 2019 21:00:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxP9SVk5I7ta1bGR/Yfe8qczLCYzw85uFQSiq/iBNxYOl7+rqUEG7roQBwdIt3xL+qTv+G X-Received: by 2002:a17:90a:344c:: with SMTP id o70mr1537173pjb.21.1559188809768; Wed, 29 May 2019 21:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559188809; cv=none; d=google.com; s=arc-20160816; b=Ex7wJZ07NDKZLe+xyVzh2unkl+1b7dV/dLgp8D9gLSNbKxGosFuBALmrmhw88X2Vc2 jjJytpHOI1x9zVu0qeq/4lIi/+BcxNzLTiWnqKGmUam03K4Ri5QbWo6X05NHrioN+rSk E3+ESxbZ7HUzrkZfPAaZskQQmb2nechatEFR+7LJmCRoPINRHnxUKDGuVaZacAOKu9Y4 7jtA/IfhT0lEGkafQYKeEJefGT6tNUGlkXjRr0HrUb6subzmOyByUs/BxpX88kYgijWJ bu6HhjR3YwTL0YFCkIthcm7hUBTnKSAA8jEw9jriNOMYZVbzWY4zwAeeeM1mp4GwnYEg 7TtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DBWHzaXqaQRJ0Vafo38SkFTM5IIQ/fRLRPgOfjSnGF4=; b=0nmz5aUrvWudBh3CIurdbF/EoYnp9BGM2a1CouldEuDFCIgO0+Vu6FeeZKffA2TZr4 ZRftcgEATbw9qagsgH+0kxeHVdsWDNaR4QMcAsRQQLCGrlg0I2WR9/zhpneqtwhOqf83 xb2f84fG/4Io7IBDwVTXB7QkQiPVtHdVvAVf/uW4YS18kf+W0rEqiylOQ+8GOVJXdwZd fSIwYSfmWiNW5msIggdw95i33lRRtp8fTvouNdTdAkM7+g/aVTyyis6BBVtFJoF+v4sx qMfPajDnix7YUAv1Wd6k+ptPDnsXBUEHFNVJXW8rN0MmsvYQeKbgpJsCa05kODGMNRMN 4VxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=M9A2KlnZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si2096291pgd.243.2019.05.29.20.59.54; Wed, 29 May 2019 21:00:09 -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=@kernel.org header.s=default header.b=M9A2KlnZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732058AbfE3D6x (ORCPT + 99 others); Wed, 29 May 2019 23:58:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:52164 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729926AbfE3DSk (ORCPT ); Wed, 29 May 2019 23:18:40 -0400 Received: from localhost (ip67-88-213-2.z213-88-67.customer.algx.net [67.88.213.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A9C8F24773; Thu, 30 May 2019 03:18:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186319; bh=jf+s4SK7RpMzJsq9FgaAX31/M1NUE6wB1p0wg35hEgQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M9A2KlnZTfWCor6J9I0NzNpkKQqCxOpUmvOX+50KDKdLzZpV9MiT8kEs6kxHXnCni eIx0r3E057RHIExRIm9qR5ajLq/DFNQIjrXUusdFCzNLtxkWw6xghnAv+obxA/bOXT phCZDquopq0CedgDqmcqqS8+qPQHdSGov6aiPou4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Trac Hoang , Scott Branden , Adrian Hunter , Ulf Hansson Subject: [PATCH 4.14 009/193] mmc: sdhci-iproc: cygnus: Set NO_HISPD bit to fix HS50 data hold time problem Date: Wed, 29 May 2019 20:04:23 -0700 Message-Id: <20190530030448.503973559@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030446.953835040@linuxfoundation.org> References: <20190530030446.953835040@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Trac Hoang commit b7dfa695afc40d5396ed84b9f25aa3754de23e39 upstream. 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. Stable tag (v4.12+) chosen to assist stable kernel maintainers so that the change does not produce merge conflicts backporting to older kernel versions. In reality, the timing bug existed since the driver was first introduced but there is no need for this driver to be supported in kernel versions that old. Cc: stable@vger.kernel.org # v4.12+ Signed-off-by: Trac Hoang Signed-off-by: Scott Branden Acked-by: Adrian Hunter Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/sdhci-iproc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/mmc/host/sdhci-iproc.c +++ b/drivers/mmc/host/sdhci-iproc.c @@ -185,7 +185,8 @@ static const struct sdhci_ops sdhci_ipro }; 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, };