From patchwork Fri Sep 29 10:28:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sarthak Garg X-Patchwork-Id: 146501 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3954751vqu; Fri, 29 Sep 2023 04:32:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE7Te0qsKU/nnQOhywuQvx69DalntbYBUeEERBCr1J9mv0v2tVBldlEXDXgMoGOGm0sCcT+ X-Received: by 2002:a05:6e02:ee8:b0:34f:1e9c:45e0 with SMTP id j8-20020a056e020ee800b0034f1e9c45e0mr3349325ilk.3.1695987177916; Fri, 29 Sep 2023 04:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695987177; cv=none; d=google.com; s=arc-20160816; b=VVUn/Ogc8UxaiSDR6h+k5DO1khJyFvF24O76wX8/XMUEkg9pwsSJjMB3nvUlrVAGmr EVmbkwpJSCVEPNhG7sAQQHHLyfSxFAnioC5lE1MVZMpo7ijJYk8JbYdwEqemW4AujQD2 y46cDLzc9Ak3RkPIxS9fntPtBrsJNQEA4rxfOLWZwjulhozNMv4IFR2rWJgRcQ+jJJ+7 T7szG7Xz4taZ6y22UPEAvqoryDP8NNXuI/oLOJCmaLWc0VH052Zm5qL3HFqf83UkNvBt 8F2zROKHgWs3pjDABM4zn8GntqHaY9xbJMZWxEobaVwr9Pic91ARlpcJqIfn1PQ+mDo5 wyDA== 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=n7hcHUVR/OWXnLjxkN8OiLQ2qhs0ktac2pOc1OwC1oU=; fh=WFUo3ipj2p1w1A8GCBlROPM8dQ/HgY5IqL7brTBBuPE=; b=T4RFfHl04wNcMJzHIR+SyyM/hbkoOOmcuUzJwHKHNsFog9Mp8IHS02E9kN0OawdGex L4zzxxfLwrOHtnXE0pUPahNSDlLQLmkT73ZDipTsdA9e5rZEj/WZNO0s0pXw3ngE+I6W JzwHKqGobM0Pa9uiok5y5/BkKgxJDj0T5F0LusurOcLTMvCF7EBSY7atce6lu5veuL3f NbfKP9kN09xUOesptW+OKIEhgQF8Os1V4lFbQp+barO3UqzyiJs20HtdiI0ND5yce7FF mKVuARtgniT4Jd7wtn2PSVEf0YYHsKkoB5+4jc1UFISad7HQP3cbtPHEaU/1gpabgsgm SG5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FJE2EtZ3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id n13-20020a65488d000000b00578c64433c9si21643449pgs.894.2023.09.29.04.32.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 04:32:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FJE2EtZ3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 5FCC781CEB07; Fri, 29 Sep 2023 03:31:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233046AbjI2KbQ (ORCPT + 20 others); Fri, 29 Sep 2023 06:31:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233041AbjI2Kas (ORCPT ); Fri, 29 Sep 2023 06:30:48 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C5261735; Fri, 29 Sep 2023 03:29:52 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38TA1PsJ000803; Fri, 29 Sep 2023 10:29:45 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=n7hcHUVR/OWXnLjxkN8OiLQ2qhs0ktac2pOc1OwC1oU=; b=FJE2EtZ3LOhUZT4erLe35NQ0s5f6AipJ4QFWmFf3X5Mbfw1B9esXz0zq+V9SI3FpgGR2 43FvSkPwea3uRP9iVnkjtEzTKHJwbfFqr6btFSB5QQcW83aAKSYhNHHTXrBXl4XKnCJM X+1fq5enlj/aGraC5wX6/NGpsy9fw7ZAIwBMOCOg9tdUxDa0Ui50JQ2OPr/wy1ss1QD3 7QBzEQWUd3aG4BxxMzAMafDI82wkawrOZyQYeVxIlEte8DBJ4YFSmwVM7XeYq1qJckiu Lz1zITq1sxk+zh/0JV8oxXWnZFsZSRXUiWACVaoGTbabDIITZ13looqmT6snWg3W2itY Zg== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3td8wdtf54-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Sep 2023 10:29:44 +0000 Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 38TATfXA022565; Fri, 29 Sep 2023 10:29:41 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3t9s3m2yk9-1; Fri, 29 Sep 2023 10:29:41 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 38TARZXY020699; Fri, 29 Sep 2023 10:29:41 GMT Received: from hu-maiyas-hyd.qualcomm.com (hu-sartgarg-hyd.qualcomm.com [10.213.105.147]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 38TATeUF022559; Fri, 29 Sep 2023 10:29:41 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 2339771) id 0230252E7BC; Fri, 29 Sep 2023 15:59:40 +0530 (+0530) From: Sarthak Garg To: adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, 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, Sarthak Garg , Andy Gross , Bjorn Andersson , Konrad Dybcio Subject: [PATCH V2 2/2] mmc: sdhci-msm: Enable MMC_CAP2_SLEEP_AWAKE for Qualcomm controllers Date: Fri, 29 Sep 2023 15:58:31 +0530 Message-Id: <20230929102831.9702-3-quic_sartgarg@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230929102831.9702-1-quic_sartgarg@quicinc.com> References: <20230929102831.9702-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-ORIG-GUID: IWzlINpXe09ykq0jZtKfnjxFn81T2JSV X-Proofpoint-GUID: IWzlINpXe09ykq0jZtKfnjxFn81T2JSV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-29_08,2023-09-28_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=851 malwarescore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 mlxscore=0 clxscore=1011 suspectscore=0 bulkscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309290090 X-Spam-Status: No, score=-0.9 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 29 Sep 2023 03:31:34 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778371450675628406 X-GMAIL-MSGID: 1778371450675628406 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(+) -- 2.17.1 diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index 668e0aceeeba..be44a6851fc9 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->caps2 |= MMC_CAP2_SLEEP_AWAKE; /* Set the timeout value to max possible */ host->max_timeout_count = 0xF;