Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp249075ybi; Wed, 29 May 2019 20:37:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwClqe7Gvot6sMJ4PU/9JFTJY2hil+NTpp/JDfc8PVXuNDd7WpnJr9OwEm1P1ardgZWdFNL X-Received: by 2002:a17:902:56a:: with SMTP id 97mr1723742plf.20.1559187445479; Wed, 29 May 2019 20:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559187445; cv=none; d=google.com; s=arc-20160816; b=iBB/dxmz99Z+OuHAkeTvo54doMTvf64UqZ2yZdMEE9S1cB2BNMJTcyVGvowzKtECRO ykk3Ji9oOAj6K6M8ZaYUTb7TDwaPL6EM1tLQdp73cnW7ABfPacj4k8cyTj7JsoGxAtHl F8fsEk76YStpSE6KpEejjDdNPS0/AgwwsZH3E3lFv0HOSR9m0Lc6FftHLc3tbSGgXw1b MjSCsnCI9YBiWK+SeqlawL2HeZGAAm39Sjk90y4gEYvu5YUj+0LJi+n/rQ5EaLQN8IfQ BaNUd43mNNTYfBkX+t53SyXhUNpHKt27EdVJqqk07TRBbvH5VMSnZUZXg8QztWxLcfTX z5aA== 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=3ndhO0pVVcZ3sx1UEUQuuweF57cSSEWHOo4utcHNesE=; b=nv/PjnFDToeAzK1eI1ml0Dxnjer+FNqZqARFZXcql4C+5+TfUa4PdsnexjRXeuQSor yDoxYpcMjJbHnEHh3XffGAl+2oHaI916TVQySEIpm9Q562/UMQcHVx13Y6T0qNwmWwCg cbjLwkc/OVUP2fjNddzvzwCfDfAKvOYRdH4/c7QTLdcbrhr8eNpAatTTj7UMLSZHslhc S/fe2XUJV7MlWlnLSYQ+5NRqejk1jRlUTCDe/rgz408U4d4LEbK9tS4pXrlM/olZ02Pp P0g5FA1J1Lqlc/L0tYOyOk5fPoIh/DJNjRMDRiaBvXefCnKMwRcEEnOVHUNqbVyn3W9N Ao9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="YIaWTc/5"; 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 g3si1609246pjs.57.2019.05.29.20.37.08; Wed, 29 May 2019 20:37:25 -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="YIaWTc/5"; 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 S2387576AbfE3DZd (ORCPT + 99 others); Wed, 29 May 2019 23:25:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:50856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731572AbfE3DSb (ORCPT ); Wed, 29 May 2019 23:18:31 -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 8559424790; Thu, 30 May 2019 03:18:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186310; bh=08yPMXvX6Vggu36cK+hjFz+G6AYDSqGXrMEMxqNi2Ac=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YIaWTc/56qE4vXjzvprByRMOPxKCaAHkrR8WGQioRAIdB3fB1oWAkp/XMLI48ukSF 5CIUlyS6Q4blhPbRihcZj5OFqBu6s+dChMvjJDerAZaA3Ta6YXc1Fii9rRdE58/7HP extZWm02Wfq8M4ollFIzIqzV8VOKj07eRwS1QQYA= 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 010/193] mmc: sdhci-iproc: Set NO_HISPD bit to fix HS50 data hold time problem Date: Wed, 29 May 2019 20:04:24 -0700 Message-Id: <20190530030448.838388806@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 ec0970e0a1b2c807c908d459641a9f9a1be3e130 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. 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 @@ -209,7 +209,8 @@ static const struct sdhci_iproc_data ipr static const struct sdhci_pltfm_data sdhci_iproc_pltfm_data = { .quirks = SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK | - SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12, + SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12 | + SDHCI_QUIRK_NO_HISPD_BIT, .quirks2 = SDHCI_QUIRK2_ACMD23_BROKEN, .ops = &sdhci_iproc_ops, };