Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2244209rwj; Mon, 19 Dec 2022 01:34:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXv39aQpJfVm0ZXoW3zppJYyP0/fwQxHTBgB/4Dj5XcSpWL2DxB0UNpAHY8gfaxMdkcrTdZF X-Received: by 2002:a05:6a00:cb:b0:57f:ef11:acf6 with SMTP id e11-20020a056a0000cb00b0057fef11acf6mr753993pfj.8.1671442479479; Mon, 19 Dec 2022 01:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671442479; cv=none; d=google.com; s=arc-20160816; b=qYbD7iHwSVaRFNnsvAhA7yYweq4IPAiS5C7PSeiPFUKA71qIrMFzok730+/kda8Pau Zi3EIJdkrKjCIef9RfGa5APMlUYHZ1fp1X2Qai3D1RM2MmNrpmTrRTmLmERxrD4m4piL AF/vh77LarqR975fxd8xz+f3PzTJJKwjmYU0F8u0PDSUhcXxcz8YtHaC8cMc2WXYjtje 5OlIHS8/MQk3fVf7l/KUoi75vYItLj8lRtSgT5IGk29oiR1/QtdL7Y50UA+uXah1j+gO v5m0Sj+DU1/aZIxs/iZh09t7hX6KcVJFks/7mxA8EDeFLTy5+dzlui2jqTAJbJCg0j3a D6EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=eChxxRyj8DZkown0zGIg/I3MmW9IyuNgVFy0f8JNo0c=; b=ds+u9LaB/NQPy7H9/6aVIVEOEtwaBI3KHHqovzcrJaZcWY+sOYvzztWg/YesM4oXpJ rbBlREutx1XtbYqMdFOFMIPj4qnLqvy+uDoaL3ohTnf667lYD8yYCxz32BJEtDmAX0D7 NfDhGS/3sFgIVeH8fs0m7SX9HEC9XCA7A3NEmttt40Ja6Dhp6bD0RGt42T4kGVkmXLvr HGftE3EDdm5dl7thd6Y/ZUMioju5l92PL1Afbac8IfaYsRxf3OxnyD+BXkr0AhCvaaoC AefJzY1oFeFAeF2lEfphESqaujFoBs2WJk847FCCRwSMtdDNeKSDFZ62CpZaVD97KAPS 5rdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s187-20020a6377c4000000b004779a46d07csi10955299pgc.183.2022.12.19.01.34.30; Mon, 19 Dec 2022 01:34:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231715AbiLSItr (ORCPT + 70 others); Mon, 19 Dec 2022 03:49:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231709AbiLSItH (ORCPT ); Mon, 19 Dec 2022 03:49:07 -0500 Received: from SHSQR01.spreadtrum.com (mx1.unisoc.com [222.66.158.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1004D119; Mon, 19 Dec 2022 00:48:35 -0800 (PST) Received: from SHSend.spreadtrum.com (shmbx05.spreadtrum.com [10.29.1.56]) by SHSQR01.spreadtrum.com with ESMTP id 2BJ8mHoF075381; Mon, 19 Dec 2022 16:48:17 +0800 (+08) (envelope-from Wenchao.Chen@unisoc.com) Received: from xm13705pcu.spreadtrum.com (10.13.3.189) by shmbx05.spreadtrum.com (10.29.1.56) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Mon, 19 Dec 2022 16:48:16 +0800 From: Wenchao Chen To: , , , , CC: , , , , Subject: [PATCH] mmc: sdhci-sprd: disable polling scan for sdio card Date: Mon, 19 Dec 2022 16:47:54 +0800 Message-ID: <20221219084754.11070-1-wenchao.chen@unisoc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.13.3.189] X-ClientProxiedBy: SHCAS01.spreadtrum.com (10.0.1.201) To shmbx05.spreadtrum.com (10.29.1.56) X-MAIL: SHSQR01.spreadtrum.com 2BJ8mHoF075381 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable polling will increase the power consumption of the host. Fixes: fb8bd90f83c4 ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller") Signed-off-by: Wenchao Chen --- drivers/mmc/host/sdhci-sprd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci-sprd.c index 525f979e2a97..113a5c77578f 100644 --- a/drivers/mmc/host/sdhci-sprd.c +++ b/drivers/mmc/host/sdhci-sprd.c @@ -696,6 +696,10 @@ static int sdhci_sprd_probe(struct platform_device *pdev) if (ret) goto err_cleanup_host; + if ((host->mmc->caps2 & MMC_CAP2_NO_SD) && + (host->mmc->caps2 & MMC_CAP2_NO_MMC)) + host->mmc->caps &= ~MMC_CAP_NEEDS_POLL; + pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); -- 2.17.1