Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5295595yba; Wed, 8 May 2019 10:51:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwy+BjfKLpxeoe7tHc1VGGHbnah3rU6CYJjEYMe3FWWr67Fox/X/vc20CSBsKPSfeip6o9U X-Received: by 2002:aa7:93a7:: with SMTP id x7mr50874191pff.196.1557337888331; Wed, 08 May 2019 10:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557337888; cv=none; d=google.com; s=arc-20160816; b=z/5QbGfKFmZcldx2inGlEJwKX+Wof1QIhYixrWi+60EpdtONGW6NtnRwD9vLI3jWpW dFRo4+3igh0xghOosqCSgbKbzI5aNxTPlcyF/jGz7zKnjUuzkUA4W1GhFN3UhGYZAVDv rerPrP9v+hjFlnvJimW29cu0DG8viiFpbIhVLSDzm66brW+V+8nI39lxMs5Hd6Wz0Ifs GoBoiyzj51lnVHhNbkh9YAZ/mgLH8OOapipFZE0BBckYxZB88G9SKvnJxH23adBG6/T8 B854rYWNn3jzRlGv3JQVo+BOGzYKGVA4WLI05bddXt9SWAa+VAmEnJP9mp5tBeYsKphd WZXA== 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=Xa6DtNP/MsKA3xKlWUlfMOa1BuQnbHXWgUsbk88eqkY=; b=nMyI5nfEfugVdnTS1VkI3IpEmKh+odZTJ0FcwwdZXGU8ynss+7Y2hLc9X9l1dwdf4r Ij4uwCDqAa7HAeqzL0f3coyRDONe6DNz4M1QtifNMlqCB8UMat9K06e4uwn5jKJb99Bv sSOFf0ARpMZBT+dyguuljxd8sR8eNrn1qskYVplQSNV2gz65HmKa0otUUDkLxWkd2nW3 DG//N4yhLxmwv0Fdfq6H+xFm2cSv+DL5YYIkZBazj6EguOdU4Ej3KO+JzK3sVHEwxZb3 bxF4SprTY+uMqm1VoeI85/xWPOke5QQ5mqour7K4gO4asa3wta4eYx1yYkJ6EO6Lw6q8 NuTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=GcFcfdz9; 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 o64si23452368pfa.274.2019.05.08.10.51.12; Wed, 08 May 2019 10:51:28 -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=GcFcfdz9; 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 S1728443AbfEHQlB (ORCPT + 99 others); Wed, 8 May 2019 12:41:01 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:37243 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727560AbfEHQk7 (ORCPT ); Wed, 8 May 2019 12:40:59 -0400 Received: by mail-yw1-f66.google.com with SMTP id 186so7925639ywo.4 for ; Wed, 08 May 2019 09:40:59 -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=Xa6DtNP/MsKA3xKlWUlfMOa1BuQnbHXWgUsbk88eqkY=; b=GcFcfdz920X4hAX7aP+vIaiyEOWH4ow01gaSLiNFw/lkDgzf3WlT0694nzdDi/gyFN Fc8v+7pLhnyHv2+P+5XPjJnwYWdmqdr85JV9OFtuv496D5IUyQgG7lZpBoCeTxt53pw7 PXnXA/FoWK1dK4Mwg211m0vncobkAkEZctTw4= 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=Xa6DtNP/MsKA3xKlWUlfMOa1BuQnbHXWgUsbk88eqkY=; b=r3ZvKtwQvuuBJ/lxVVgg3/JEGjGXFw2qaUGOSOL1Z25lSMK2zmQmlnbDwYwJZOALem Hb6VDYqM4rxsOoin8+8bZ8sZQy0Uvp16rkvbvcq5bGsOWxBPcNOW3yrE84jJthOnpRhq QmzYf1B/cKpTDLLVKUCLWXSvj+90XtuEelj0ku9lB4knSWNmEozJN46Hy2n3Jujc4oW/ gAXsDv9jtKwtK/CafyrzqomFMUqDh6EsvEL/ExeXyXSCRh1iMhLAabTysVQo6hgNb3/a VvzIWEnSNq+kMXVlrIhrKvj5eDaJxLpFTeRAStEHqRibJo4vmxcOjZjnjuj3riXFziUf Wd5A== X-Gm-Message-State: APjAAAXk4b6uDlm+E0A39JVgQhK8vizePHBv2AbsLc9tNe+iiTk5V3oI FvgmxWtL1fKPnHGQ1RDXTGz2VQ== X-Received: by 2002:a81:2717:: with SMTP id n23mr12899509ywn.511.1557333658983; Wed, 08 May 2019 09:40:58 -0700 (PDT) Received: from lbrmn-lnxub113.broadcom.net ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id u6sm4671081ywl.71.2019.05.08.09.40.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 09:40:58 -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 , stable@vger.kernel.org, Scott Branden Subject: [PATCH v2 1/2] mmc: sdhci-iproc: cygnus: Set NO_HISPD bit to fix HS50 data hold time problem Date: Wed, 8 May 2019 09:40:43 -0700 Message-Id: <20190508164044.22451-2-scott.branden@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190508164044.22451-1-scott.branden@broadcom.com> References: <20190508164044.22451-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. Cc: stable@vger.kernel.org # v4.12+ Signed-off-by: Trac Hoang Signed-off-by: Scott Branden Acked-by: Adrian Hunter --- 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