Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp452997rdb; Thu, 5 Oct 2023 10:32:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXOO6FTUXIDEamuIFmLrp1HkWzYcE5MaO+3STfKljAjZMMaXpq/ZTCEJIsVgAO1T9B2ViO X-Received: by 2002:a05:6a20:3d29:b0:15d:7e2a:cc77 with SMTP id y41-20020a056a203d2900b0015d7e2acc77mr6759322pzi.48.1696527123727; Thu, 05 Oct 2023 10:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696527123; cv=none; d=google.com; s=arc-20160816; b=N5nL92ROVYctWkLB0ndmk5IWOsmofW1NfoZG05tPwZrQkEO/g5MzQIAU5CqBP6aYY7 FTREzsniB6FjMyAx3KK+vFxSNr7jY66T4jPwAzCnyxmz7e9rLwIjwb8EZHAzch7lAy3A oMwK31JAtPnVNSkE7KM7gzLQrrfUIBfbvOwqz4GJ5Vu6r6JihZkCuZI4xT8h6RXWdtWA ilDhz2FDA/+C0uqEp/Qyeekw0SFCpgrcL6yqm+wX9vTumysTDJoFbB4+IB47rF2LVoqb Htr62+7f05SspOK4V8zwWRRYp/bPKKCx+VCh08b50Qu2W6BvVrWC7lZfoDsw7vJk+f9v 2zYw== 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=ByGrroXOiJTfy8moAhWOIIoeCJ7aCJ2ajue+54ukm/8=; fh=q+6Yk7QMDKTMwWpDd2AXiTRzY32ikBzG77HpoVr5nTw=; b=DDRcL+/+OfFHAkOKivT694JNS+N/AfLMcYTG1MjsGlmTFJP1POdK9Lt9XZ7uH2XcNt bT8XpJjrNj0/rA+w3/Yn8ilzwSRbQwLBlx3/UVwGSQ8Tm7TpJeapm8YX/J1/3xXuFra7 Izk9QpoxpMqyBj5pwzYhtPCyboEBN9csNgWaBH636ZLN+bsla4+ddp8hcg7NROtpaXf7 axWNWdhEKu6wU9B4p89FHS5w1clJvOjU0/9/BpWjxYMESXspke+Um2CfZ1KlXXHqHxjc YQ0X7d4y/blNMkFVSlylT7Pb5jaV89g7H/GAJrllAkdCn8q00OFcaB6Hct1MU/KfGOpF k2Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XkBzTPjB; 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 ki11-20020a170903068b00b001b662f49f60si1857166plb.419.2023.10.05.10.32.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 10:32:03 -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=XkBzTPjB; 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 EDAF980BB6EB; Fri, 29 Sep 2023 03:30:51 -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 S233271AbjI2Kan (ORCPT + 99 others); Fri, 29 Sep 2023 06:30:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233220AbjI2K3m (ORCPT ); Fri, 29 Sep 2023 06:29:42 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EAEC19B4; Fri, 29 Sep 2023 03:29:18 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38TA7LfX019893; Fri, 29 Sep 2023 10:29:13 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=ByGrroXOiJTfy8moAhWOIIoeCJ7aCJ2ajue+54ukm/8=; b=XkBzTPjB7MZ1CkxB48pZT8ZHIZmQcQSdVobXdbS/rLO8jIuk1kHpsnXqyYGdzp6p/rrc XVRSc+oCLoKU4O+PimtV1azUNU9CqiYVwsVqCRJMjYSyk4/At2ltA+zGzoIYNVE6xKqa H/udWGoRI1EkRG1gSszixKgiO3pnvca37sMNhpeLHqpm8kqH0ni6anAiEaFKBJ8bC1ff zY8HZw4FJf5t+yKaBXNvNf7jz20ySygi2U30q3hYK7UihN4famptlD9PZM8YTyp+gUcA lhZGjkI8MwZtsJ0kerKV5dJeGYHc4Ojq8rN5ZDAiIToZHsOQCDqkUwkx1dBDgR7uyn2+ lQ== 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 3tdqmv8kw6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Sep 2023 10:29:12 +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 38TAT9vm021884; Fri, 29 Sep 2023 10:29:09 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3t9s3m2yhp-1; Fri, 29 Sep 2023 10:29:09 +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 38TAT9Ub021797; Fri, 29 Sep 2023 10:29:09 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 38TAT9ui021628; Fri, 29 Sep 2023 10:29:09 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 2339771) id 24C4052E7BC; Fri, 29 Sep 2023 15:59:08 +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 Subject: [PATCH V2 0/2] Add partial initialization support Date: Fri, 29 Sep 2023 15:58:29 +0530 Message-Id: <20230929102831.9702-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: pJhYWoxOk-9NFm1COcYThX8roP1T4_z_ X-Proofpoint-ORIG-GUID: pJhYWoxOk-9NFm1COcYThX8roP1T4_z_ 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_07,2023-09-28_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=536 spamscore=0 bulkscore=0 mlxscore=0 priorityscore=1501 suspectscore=0 malwarescore=0 impostorscore=0 clxscore=1011 adultscore=0 phishscore=0 lowpriorityscore=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 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]); Fri, 29 Sep 2023 03:30:52 -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 for qualcomm controllers. Sarthak Garg (2): mmc: core: Add partial initialization support mmc: sdhci-msm: Enable MMC_CAP2_SLEEP_AWAKE for Qualcomm controllers drivers/mmc/core/mmc.c | 162 +++++++++++++++++++++++++++++++++-- drivers/mmc/host/sdhci-msm.c | 1 + include/linux/mmc/card.h | 4 + include/linux/mmc/host.h | 2 + 4 files changed, 160 insertions(+), 9 deletions(-) -- 2.17.1