Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp295986ybi; Wed, 29 May 2019 21:39:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxo4ZrHGUDhUNZ5BIGHhA3RYlnYRrGZCQoVrZHau+aL0c7pj+u+L0gVj3Vvvh6SJRKf1tyF X-Received: by 2002:a63:fd52:: with SMTP id m18mr1939805pgj.267.1559191180160; Wed, 29 May 2019 21:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559191180; cv=none; d=google.com; s=arc-20160816; b=mrSSaLXTUzvYnRAzpOhl4xZ+RnzMNovsiB/XFkxabfwUW26x2ME1H1oag7mxxg1j2j CE+n3FaAjl31iPSsj7tH3wY+usblg1KJjW39cP5dmyKdi+e2EO7u95kq9hXQxl5kHwyR lJqS/HfLCh/kRFkSz6jEcNd1M/aiDGPNLku7dZj8Z0Dyo3lxu5BKADQhRzhlj7/stIoI raQMFwZ+8UvGtw3yLXjX3JhUwFXQcngDo/2+d3cJIPkMwPP4miIC64YYgIt3p862usKF WId8X+xsIzL126oNjSBNHKlXexV1BBqgfq7ShtTaNzrZLjO/MkHqbnOGPDfnImAp8cEq yetw== 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=3Rl9aOUoN4QcKGDh/sIJASRPM+CYhSm5cDhnSDtnsww=; b=f5tQeojKlFu0+0ucCIf9bI2Zu8riPsLIpFnxzuK8W/8TpUhTPldLCvwuWbd6//MAl9 G9XUN4y8DmjWK1sTYi0N/PPdgm1LCvUZWbIeQuFLGeTEvx/c4p+nx3S/FDiWkCumahAu EKLZKWgaiCRwNOzKZY2Da/vxTeKtS1/tTMK/pRNrPcCycvTBLrtNm8U4mOnDhcUqWs7Y M9ji3DRXKe+0mU60G2n9RBFcYHFNUbQRPNrT5RbEMP0B5y+CO8Th01pATYp3+MlNmrwq 1hLhbxsEtfym92d+bcvCdpIvWVXZ3OEvpaRcGq88QcLqmbhXmY4KPZhPQ3+nGdZDm3d5 h73A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=k8dngso5; 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 h7si2068270pgk.379.2019.05.29.21.39.24; Wed, 29 May 2019 21:39:40 -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=k8dngso5; 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 S2388358AbfE3Egs (ORCPT + 99 others); Thu, 30 May 2019 00:36:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:56934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729302AbfE3DM6 (ORCPT ); Wed, 29 May 2019 23:12:58 -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 6F8AC2449A; Thu, 30 May 2019 03:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559185977; bh=6RPWTBSids8jpnfkiKL3ALT3grkFLg/V1aA0rerayp4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k8dngso5q64tAU8HsvHur0rkbaHFtf14m3YbFHLniNWDFzkj8LLIbz8L05H28Jg8S ryeLf2tZK7m8kIR1ck2IbKsEKD/uHVzYlTvVGwhg+n+akFLq5h+VXJgkBadNqK9E/B sDE/eCgomOzl4jCslj9KH82V3hA6E5vvSqZO8psU= 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 5.0 010/346] mmc: sdhci-iproc: cygnus: Set NO_HISPD bit to fix HS50 data hold time problem Date: Wed, 29 May 2019 20:01:23 -0700 Message-Id: <20190530030541.050502306@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030540.363386121@linuxfoundation.org> References: <20190530030540.363386121@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 @@ -196,7 +196,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, };