From patchwork Fri May 18 22:03:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Branden X-Patchwork-Id: 10412383 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 85E256031B for ; Fri, 18 May 2018 22:05:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7170928A81 for ; Fri, 18 May 2018 22:05:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65F1E28AA8; Fri, 18 May 2018 22:05:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4A6F28A81 for ; Fri, 18 May 2018 22:05:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752204AbeERWFG (ORCPT ); Fri, 18 May 2018 18:05:06 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:33484 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752366AbeERWEP (ORCPT ); Fri, 18 May 2018 18:04:15 -0400 Received: by mail-qk0-f196.google.com with SMTP id c11-v6so7672517qkm.0 for ; Fri, 18 May 2018 15:04:15 -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=mUI+MKIONwWxbhO1ncGA/OdA+ZbFHjTa+ykVc5bLwNo=; b=d2GtW0kMPZfKX5vj37m8Q/yT6cl/lyy4ofDLeMdaoseDwZ9WVIJso43imT6dk/LjDc OWmoM2vSvdGj6EKAYbF5lbKSC3KRG7b43KzyIY36TlWC2QZ7XQ3NQEGcuBN3JSxY+Gqr TcmYHgdVnOihc2EE+vCH8F84hDAOlchd7V2Mw= 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=mUI+MKIONwWxbhO1ncGA/OdA+ZbFHjTa+ykVc5bLwNo=; b=eoPr9RMTKt3Vc9fBfRtHoExC0VryiVKIdKgkhB4bnBznQNV6KsdhuRuO/CWBUidBeY JGpdxYIeh+31CHTUlihocZZIJI2ppVYPcLhZ5x1uDQt/2/IsLtbTmUlXMxaMVKpa7xAw HoyBBX/8l1+EL5KPrKuQWf/TCbmg40zhDYs1+SftrM1gO4LMT0E9v8iM9xU4CujVjlWO +Yu2qXQBCT/5RlmUpj61dtFi93ps0OqcR98d71SzRh9+agEhY01nnfFhe5lvA1ADroHg cVbi7U703FhmczAe8cX5shBk5pVRVHHfxPKwnuONQwvjCTvG/mNV5/R81rSsZlinx4tv OCYQ== X-Gm-Message-State: ALKqPwfSeYQfE+Zquwy8Vzb1X/gaqZnb4nP7Y2uHXGX9hYcqoPfIuRmw xDZrqdckcQoI4jtDJ7uITTLjwA== X-Google-Smtp-Source: AB8JxZqEEcnqjin5FaAVSQ2Yikd0KepPGlLqID4IjIi4Ih6TUT4S7e298X/zAqnv08CQShN0cIeuQw== X-Received: by 2002:a37:24c2:: with SMTP id k63-v6mr10458183qkk.28.1526681054977; Fri, 18 May 2018 15:04:14 -0700 (PDT) Received: from lbrmn-lnxub113.ric.broadcom.com ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id m4-v6sm1829866qkf.91.2018.05.18.15.04.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 May 2018 15:04:14 -0700 (PDT) From: Scott Branden To: Adrian Hunter , Ulf Hansson Cc: BCM Kernel Feedback , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corneliu Doban , Scott Branden Subject: [PATCH 3/3] mmc: sdhci-iproc: add SDHCI_QUIRK2_HOST_OFF_CARD_ON for cygnus Date: Fri, 18 May 2018 15:03:57 -0700 Message-Id: <1526681037-2074-4-git-send-email-scott.branden@broadcom.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1526681037-2074-1-git-send-email-scott.branden@broadcom.com> References: <1526681037-2074-1-git-send-email-scott.branden@broadcom.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Corneliu Doban The SDHCI_QUIRK2_HOST_OFF_CARD_ON is needed for the driver to properly reset the host controller (reset all) on initialization after exiting deep sleep. Signed-off-by: Corneliu Doban Signed-off-by: Scott Branden Reviewed-by: Ray Jui Reviewed-by: Srinath Mannam --- drivers/mmc/host/sdhci-iproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c index 1f0ab08..d0e83db 100644 --- a/drivers/mmc/host/sdhci-iproc.c +++ b/drivers/mmc/host/sdhci-iproc.c @@ -186,7 +186,7 @@ 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, - .quirks2 = SDHCI_QUIRK2_ACMD23_BROKEN, + .quirks2 = SDHCI_QUIRK2_ACMD23_BROKEN | SDHCI_QUIRK2_HOST_OFF_CARD_ON, .ops = &sdhci_iproc_32only_ops, };