Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2957750rdg; Mon, 16 Oct 2023 23:14:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGY6PzBBa7NNs220jAEDjc+ODrJHzclz0OdvJ7giflqgaMP2Yx59VN/MNy4QagS+y2/1seL X-Received: by 2002:a05:6830:901:b0:6c0:f451:ab6a with SMTP id v1-20020a056830090100b006c0f451ab6amr1817748ott.8.1697523254528; Mon, 16 Oct 2023 23:14:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697523254; cv=none; d=google.com; s=arc-20160816; b=a6BBAlfzR9OTEGhOJfumIGVWyGhx5oOmm4O+AU/dsvgI2eeu2Hq4DLf3MS50PFoUJr fVV6NwzAfVoR7w13RSwOLhWAGCo9/AF5Qqq5ZZ1uxyhBgpDhMwWoanfvxKvovjQbQPOB FCj+vRN5/xGizihQZ4SX0AsqXrFDeWTQ5sJ36D3Vo2P7VKZA7Fr96EAyXx6i8R9510Nr gyYVoulG4+Y3Gg2Txt30BrDXN/wK81ly95Dz2FmxdmFP2hL6OlK9Ty/Xr9K4suTkBAbp bH9fIgOZ4BtFBwwR/FlH41raUZfQfhCqW+wiIIRav8kZ/Gj85eVkTlJ32vFW5Nj6YSPS iSUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=lOh2h2VUuJAbBLtWT8HpptGpl3RAbbEMN0WxCz7fKz0=; fh=+1BW3B+0cF0FnYo/AVD+jAbnJyubCjbsLHzH110HXmI=; b=qJI4EjTJ+xQR04cqBrHAWXhQNy6LU0fg6QTehEHLQB26dSRhrEeZhKwyZtC/DhKGKC wYGYIc/sl07ZVf6cz41gtTiaU7AqEfY8VpJqBOQgs9edZYPXHfRXUFlyB2XkjLdHuS2Z JB72fUJ8io+g8z/DGeuDZML//6uXmdI/uocjd/jaNwf/tH3nw/SOUYlwNjrWOzEYd5Hh nqgjfbkTDsZlbgN/vANBkWf2y4HCeKU5n4nOwghn691S6jkAD/Y6K45HKDDVvhp0LlIk nG8YAE5QyOkVnF4urhegRrWy3tmX5eYejpfQg1DxrA0/8GpNCiJiwaEIU3WyHVQknydz 8UOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lVALy4Y2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id b1-20020a056a00114100b0068fac3509a9si965830pfm.350.2023.10.16.23.14.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 23:14:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lVALy4Y2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 1EF4080440E8; Mon, 16 Oct 2023 23:14:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234541AbjJQGN6 (ORCPT + 99 others); Tue, 17 Oct 2023 02:13:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234460AbjJQGNz (ORCPT ); Tue, 17 Oct 2023 02:13:55 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD20CB6; Mon, 16 Oct 2023 23:13:54 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39H5oBXJ030110; Tue, 17 Oct 2023 06:13:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=qcppdkim1; bh=lOh2h2VUuJAbBLtWT8HpptGpl3RAbbEMN0WxCz7fKz0=; b=lVALy4Y2P7a5XATu1ZY8RYS+Smowkr5gsJeIyZgBJPA7wCBNwXeKp7Zv6sz96kGkb1nA BFLei2wfA8XnRg8plPFeBTst3WuBsktZ1+NvxhZGmADRnvl2cwTFPum7eCR/MdUg2vuu DwLD6b/uLjqFBf6tYElxgvk5NxwoDqclMADO4AC8iSgxDQc7ZLOEfS11GUQhUCbZ6wLj T5ygl1ILuihm8IoBYonrRPJPuGB8nvZygLGEjJL2gGzJqojuPu6pSgBsvta0CO4ZjPKD HhCe8oQ2gwcgnuepM6Izi6JeY3lKLiAYJqQ7EEYnOVmRIfB9OWEwvpW2PHwS8p1ZoeOC qQ== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tryn12whg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Oct 2023 06:13:50 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 39H6DlAN029592; Tue, 17 Oct 2023 06:13:47 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3tqm2m0cby-1; Tue, 17 Oct 2023 06:13:47 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39H6Dl7G029584; Tue, 17 Oct 2023 06:13:47 GMT Received: from hu-maiyas-hyd.qualcomm.com (hu-sartgarg-hyd.qualcomm.com [10.213.105.147]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 39H6Dk1r029582; Tue, 17 Oct 2023 06:13:46 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 2339771) id 2C7D757132F; Tue, 17 Oct 2023 11:43:46 +0530 (+0530) From: Sarthak Garg To: Ulf Hansson , Andy Gross , Bjorn Andersson , Konrad Dybcio , Adrian Hunter Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, quic_cang@quicinc.com, quic_nguyenb@quicinc.com, quic_rampraka@quicinc.com, quic_pragalla@quicinc.com, quic_sayalil@quicinc.com, quic_nitirawa@quicinc.com, quic_sachgupt@quicinc.com, quic_bhaskarv@quicinc.com, quic_narepall@quicinc.com, kernel@quicinc.com, Sarthak Garg Subject: [PATCH V3 2/3] mmc: sdhci-msm: Enable MMC_CAP_AGGRESSIVE_PM for Qualcomm controllers Date: Tue, 17 Oct 2023 11:43:35 +0530 Message-Id: <20231017061336.9355-3-quic_sartgarg@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231017061336.9355-1-quic_sartgarg@quicinc.com> References: <20231017061336.9355-1-quic_sartgarg@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: R4PUwJl4tP58dqZHYDkyPzJbq942INFW X-Proofpoint-ORIG-GUID: R4PUwJl4tP58dqZHYDkyPzJbq942INFW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-16_13,2023-10-12_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=987 spamscore=0 bulkscore=0 phishscore=0 impostorscore=0 clxscore=1015 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310170049 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 16 Oct 2023 23:14:12 -0700 (PDT) Enable MMC_CAP_AGGRESSIVE_PM to enable mmc runtime PM functionality for qualcomm controllers. Signed-off-by: Sarthak Garg --- drivers/mmc/host/sdhci-msm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index 668e0aceeeba..93c662e28b3b 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -2627,6 +2627,7 @@ static int sdhci_msm_probe(struct platform_device *pdev) } msm_host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_NEED_RSP_BUSY; + msm_host->mmc->caps |= MMC_CAP_AGGRESSIVE_PM; /* Set the timeout value to max possible */ host->max_timeout_count = 0xF; -- 2.17.1