From patchwork Mon Sep 7 11:18:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 7133731 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 79B589F314 for ; Mon, 7 Sep 2015 11:24:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DE63620678 for ; Mon, 7 Sep 2015 11:24:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 103772041B for ; Mon, 7 Sep 2015 11:24:03 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZYuV6-0003gf-Fk; Mon, 07 Sep 2015 11:22:16 +0000 Received: from mail-pa0-f51.google.com ([209.85.220.51]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZYuUZ-00034q-3D for linux-arm-kernel@lists.infradead.org; Mon, 07 Sep 2015 11:21:43 +0000 Received: by padhk3 with SMTP id hk3so10025773pad.3 for ; Mon, 07 Sep 2015 04:21:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QtiYFPhKHcPp8KcVt1FlZLWKEjoHV0GZsPj9HYCv4W8=; b=QsCumejLQK1GKJm/IHQaRQyb5yfL5i1EGZjP5kjRV/iIn/8epaZvkktK0e8Kkww6lW ZWKgxLlPPq9rbvEPFsSSb4F/7BB6Sd1LxE9FlXk0Q5a32EcMDB3O88ykNV6VSabV+3Nr SzSL9ue+KfHX+acdp2WEUfP8Pa8dUGA4AQNv6YAVem8+5ZHEX1Nuz3VF1wbYp5ef98g3 lzplJQnubr8OS0X5Ol0dW8CzQw7Cbddgptp0R0w3LULHXvPRAJmiJtx9p0zpjD3xv9TE msdcP36LGXh6Zeai0mqbNeazR3Y2h4epr5qAL+lv3c5/VdFWupIzGb2fCPtj6HNBNCgL YjCw== X-Gm-Message-State: ALoCoQkMH1ArMnDw1eo+2eKL02wrB/LWDeqEDE8hE+qQVQ7G1LgJU+Ou2Cj4/OrPST84bzAZZiKl X-Received: by 10.68.233.167 with SMTP id tx7mr44075078pbc.75.1441624886958; Mon, 07 Sep 2015 04:21:26 -0700 (PDT) Received: from localhost.localdomain ([202.62.93.139]) by smtp.gmail.com with ESMTPSA id fm5sm11654737pbb.60.2015.09.07.04.21.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Sep 2015 04:21:25 -0700 (PDT) From: Vaibhav Hiremath To: linux-mmc@vger.kernel.org Subject: [PATCH-v2 7/7] mmc: sdhci: enable SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON for pxa1928 Date: Mon, 7 Sep 2015 16:48:41 +0530 Message-Id: <1441624721-15612-8-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441624721-15612-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1441624721-15612-1-git-send-email-vaibhav.hiremath@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150907_042143_261785_E605406D X-CRM114-Status: GOOD ( 12.21 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, ulf.hansson@linaro.org, linux-kernel@vger.kernel.org, Vaibhav Hiremath , robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Card power is dependent on bus power, without that card wouldn't respond (No CARD_INT). So this patch enables the quirk SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON. Signed-off-by: Vaibhav Hiremath --- drivers/mmc/host/sdhci-pltfm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 5788a8c..057190c 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c @@ -102,7 +102,8 @@ void sdhci_get_of_property(struct platform_device *pdev) host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL; if (of_device_is_compatible(np, "marvell,pxav3-1928-sdhci")) - host->quirks2 |= SDHCI_QUIRK2_MUST_SET_SDHCI_BUS_POWER; + host->quirks2 |= SDHCI_QUIRK2_MUST_SET_SDHCI_BUS_POWER | + SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON; clk = of_get_property(np, "clock-frequency", &size); if (clk && size == sizeof(*clk) && *clk)