Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2957676rdg; Mon, 16 Oct 2023 23:14:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWiYkjG5yQpUAvI1nDWI+Mfok1zsn06kQirlXibNRfuJg2UbA3XgYBpAzf5W/lzX9XdgBZ X-Received: by 2002:a17:90b:2b47:b0:27d:27a7:b0b8 with SMTP id rr7-20020a17090b2b4700b0027d27a7b0b8mr1255962pjb.13.1697523240171; Mon, 16 Oct 2023 23:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697523240; cv=none; d=google.com; s=arc-20160816; b=wBfq/sMyjxsaQ0lXrzuRQBuZtnRaICe5/f+0dpGtJvJmGaZZwZzQ8vq6s5H7W8UZLe 1EUb1UW0Tp+ryA+PBQI6Lmg6V6FwQskq0DpU34l0JqP5yARaFM1bakc15PrS7qKbFDsS kndaa8g277i+cmhxVCKPAJpV2cbPia3NFEA1L0VV0QQ4oUNZ6x+VrZBvYd2NyonQK0vN oAST4V7apLOYG+4bQan3aSGzlZ9qvQ3ifZufgnOY9ezvBevuBt9y1EseD16xKRhtQrZb AFG+l3gvZMGwkfyOMdwCpsBXxh2Au6q2es501H/zzeN3GFIjQSJBV36Khc2AWyrLVlbI TzqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=w1Mol4MP7APj2xbyT9s28I1re0Vh9rW7ZHhQs98Rm90=; fh=+1BW3B+0cF0FnYo/AVD+jAbnJyubCjbsLHzH110HXmI=; b=ZS7AgGLwhm2+3ni7fyUdIqxEfQElUN/tBbeKn/JvewvSHNZeOqnJ4Ez5gq2hY7MAvg +a6CJGvc8fDJWpn03n7PK+J4lrGdxfUK7e8o62eiw/Bopk2XVKh7wOik2zqbGy8gd4Qs FzUl8Vu1f8yy0o9aXcA1q2zomXUmA7/ZJV4a11DUb3i/D2IIbjO07RCGyo3XAgSUwCgk +lz38lIj0SxUUvyr8llUgKe8m8X4v4LqOrk9jAzIFFUoueWtAqAXjQvnkg25VrFa0JDH 4HpOCTOY/5rvLBpgJIrTh4i3eJOnVySxtGOEpvbK8K7URJfAPqp/E4lgmwuRLeTgL4oo 7C9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OiIYU1Dq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id lx15-20020a17090b4b0f00b0027cef9ad081si8619791pjb.164.2023.10.16.23.13.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 23:14:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OiIYU1Dq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 5F938806E578; Mon, 16 Oct 2023 23:13:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234517AbjJQGN4 (ORCPT + 99 others); Tue, 17 Oct 2023 02:13:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234440AbjJQGNz (ORCPT ); Tue, 17 Oct 2023 02:13:55 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 558DCAB; Mon, 16 Oct 2023 23:13:54 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39H4mdLo016056; Tue, 17 Oct 2023 06:13:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id; s=qcppdkim1; bh=w1Mol4MP7APj2xbyT9s28I1re0Vh9rW7ZHhQs98Rm90=; b=OiIYU1Dqh7gIZ2o5cL370nHrWF/t7z3ZODP2hz5I01dhcce9ZBJGaFOQSojOTG9PM6pj bvu2pzQpfWi3izJNFW/BMG87IwWfTWG4P5/1rkyMwKhwLNxHvcx/B2kuRXyIhQ2jrill ej+lJF73rY1qHIbqSLscHEhpR4eWIKYgUWPHuYQX6eAVpTdG9UCXeuAlWgVq+KMUz+WC fQRtr3jz/u59/ew27Ze3ekJeuO1qw7Lc7OPS1CV+vLdVI3C2eQlYsxgPWrYoBA8BReGO lFInd8LlwMCsnRLtxYQ4W7qe6Rn8vA5rnWh5DtReTOXx8HLR6lIrWcmmiAojObDtH2pa 3A== 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 3ts49wac3d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Oct 2023 06:13:47 +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 39H6Dicd029560; Tue, 17 Oct 2023 06:13:44 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3tqm2m0cbj-1; Tue, 17 Oct 2023 06:13:44 +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 39H6Dixp029555; Tue, 17 Oct 2023 06:13:44 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 39H6DhKG029554; Tue, 17 Oct 2023 06:13:44 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 2339771) id 2978A57132F; Tue, 17 Oct 2023 11:43:43 +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 0/3] mmc: Add partial initialization support Date: Tue, 17 Oct 2023 11:43:33 +0530 Message-Id: <20231017061336.9355-1-quic_sartgarg@quicinc.com> X-Mailer: git-send-email 2.17.1 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: ksO7E3iGxCc4HGDtSEFQvulYDgbIc0bl X-Proofpoint-ORIG-GUID: ksO7E3iGxCc4HGDtSEFQvulYDgbIc0bl 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 phishscore=0 impostorscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 mlxscore=0 spamscore=0 lowpriorityscore=0 mlxlogscore=630 bulkscore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310170049 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 16 Oct 2023 23:13:59 -0700 (PDT) Add the ability to partially initialize the MMC device by using device sleep/awake sequence (CMD5). Device will be sent to sleep state during mmc runtime/system suspend and will be woken up during mmc runtime/system resume. By using this sequence the device doesn't need full initialization which gives 25% time reduction in system/runtime resume path. Also enable this feature along with mmc runtime PM for qualcomm controllers. Sarthak Garg (3): mmc: core: Add partial initialization support mmc: sdhci-msm: Enable MMC_CAP_AGGRESSIVE_PM for Qualcomm controllers mmc: sdhci-msm: Enable MMC_CAP2_SLEEP_AWAKE for Qualcomm controllers drivers/mmc/core/mmc.c | 163 +++++++++++++++++++++++++++++++++-- drivers/mmc/host/sdhci-msm.c | 2 + include/linux/mmc/card.h | 4 + include/linux/mmc/host.h | 2 + 4 files changed, 162 insertions(+), 9 deletions(-) -- 2.17.1