Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2957837rdg; Mon, 16 Oct 2023 23:14:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE43/Yqfb+iaYD8zaP1+2U3CoLnHzrAKnobyg1PYF0Hsg/NWX1+VW7uT+usswlUZlf07B+D X-Received: by 2002:a17:902:d111:b0:1c5:6157:f073 with SMTP id w17-20020a170902d11100b001c56157f073mr1148431plw.11.1697523272938; Mon, 16 Oct 2023 23:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697523272; cv=none; d=google.com; s=arc-20160816; b=1C25Y3yRHqO1XUX/Mpf/+D1ve+zhf9iCpeiGrb5ZRmgDhjsNG+D7dFB28DFV+E6MwI dya8Jd2KMZ12NLyzttdrHP9CJ2c9/sbaYldeCfJNj3sB9xF8Nrmv7knPnmu24TLPodIV B6wezEczyfFcPRJ0u88Uy9ATY23cId2zB2vgpPRDzBpu36KmNyAenDEInlU2eWsTpyv4 TujkeWYYidrSDYE4pmobcU1BeiO5u2gyAesl/XvTsc3XoTMKjoHDqEv/ebSMjvJ97OXF lYERGsIIDaITZHPxrj58LJEIUfJkQ2iDcRgt9yed/BCNHf2U/VeObf5gNvuMp2nGDuGz +qrg== 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=CUQyzaS/rAzu/i//gN/H3XFAidpt6/VMRPrMfGI20Zw=; fh=+1BW3B+0cF0FnYo/AVD+jAbnJyubCjbsLHzH110HXmI=; b=kVnQ10D17A4lcuxUDLmzo5/wwpOHw9NwxNKF+kuLKxzHw7cYW6G8geKpT4TZjVbx2m +HIqUV3SPjpp1thJ8lleU1VjriceIgrygOSbPEqtomtc+dDR/YdDhnB5xLGFVMma66pC gZStOBNKiCP2S2gawiwhjd2YcZvjELXH2zhB+70I7miwIy205Qg5Tqv75EvbFbH5+SvR hPp/IwgQJ2rU1kwi+aQcYX/LyxkA3p+TTLS6Nc2qq3GUNjyIbCcJhKB4PKTYvY6Q0Rpi jfMM0gp3l1fuHSwHL5nfyRmid1jxWfBS12ZeCGYVvvtqk6mQlTcW887evgDeWxaaeIoZ Ue0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=KNEOJtIv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id s18-20020a17090330d200b001c0cb378f04si1003550plc.335.2023.10.16.23.14.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 23:14:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=KNEOJtIv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 8918A80B8DDD; Mon, 16 Oct 2023 23:14:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234574AbjJQGOC (ORCPT + 99 others); Tue, 17 Oct 2023 02:14:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234535AbjJQGN6 (ORCPT ); Tue, 17 Oct 2023 02:13:58 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B91ECAB; Mon, 16 Oct 2023 23:13:56 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39H4qhHo013255; Tue, 17 Oct 2023 06:13:51 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=CUQyzaS/rAzu/i//gN/H3XFAidpt6/VMRPrMfGI20Zw=; b=KNEOJtIvJAA8UyOirlkHCY18PZDnWVaUoZ29A+J3iTq89lQxJDokVECHI42mvnon5odO mYXqLSplcaKoleEvA/177fy0ouWyC3utunKip0H6ZgB3euBeDOZQRrq90JqYWf79V7KJ avWJ0F8W7dtIA8HODe9CF1ZKz7CLgOg/mvN2G7JFk233q+0B3ktlZPcccJtSvZJyUexV Dwui9YE9rdR7UIhCn8ksp31ZP/4LlOqUTdFOzL80XYKN64o+wdrZnCBea8ONwEReLlmk 1B44CDfUMmhs4B2byKP+LLgB+BeVsSux9FwpnET9qzJjfUi3qpSTaZ5FVLulSf6jebFU qg== 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 3tsaf0s7ry-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Oct 2023 06:13:51 +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 39H6DlAO029592; Tue, 17 Oct 2023 06:13:48 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3tqm2m0cc5-1; Tue, 17 Oct 2023 06:13:48 +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 39H6DmIT029600; Tue, 17 Oct 2023 06:13:48 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 39H6DlWo029599; Tue, 17 Oct 2023 06:13:48 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 2339771) id 59EBF57132F; Tue, 17 Oct 2023 11:43:47 +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 3/3] mmc: sdhci-msm: Enable MMC_CAP2_SLEEP_AWAKE for Qualcomm controllers Date: Tue, 17 Oct 2023 11:43:36 +0530 Message-Id: <20231017061336.9355-4-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: rCLz6Mac_WWNiJ_Lp2mQv3xIOlHvUHAA X-Proofpoint-ORIG-GUID: rCLz6Mac_WWNiJ_Lp2mQv3xIOlHvUHAA 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 clxscore=1015 suspectscore=0 priorityscore=1501 bulkscore=0 adultscore=0 mlxlogscore=959 malwarescore=0 mlxscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 phishscore=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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 16 Oct 2023 23:14:30 -0700 (PDT) Enable MMC_CAP2_SLEEP_AWAKE for Qualcomm controllers to let them use sleep/awake functionality for faster eMMC resume instead of doing full initialization. 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 93c662e28b3b..edcf18c02bf7 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -2628,6 +2628,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; + msm_host->mmc->caps2 |= MMC_CAP2_SLEEP_AWAKE; /* Set the timeout value to max possible */ host->max_timeout_count = 0xF; -- 2.17.1