Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1680105pxb; Sat, 23 Apr 2022 13:56:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRdkxcW/VoufM4orYW35XzG9az8GOq7VD3cOMVc90eM37ymxDu9Xhmu/pwT1rR/O9o29q1 X-Received: by 2002:a05:6402:23a8:b0:425:d3f0:2f53 with SMTP id j40-20020a05640223a800b00425d3f02f53mr4228559eda.117.1650747414538; Sat, 23 Apr 2022 13:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650747414; cv=none; d=google.com; s=arc-20160816; b=nrB1Usl9/ROkdhkYex6U8C1F67AcyVcS5WqXqW5aVlrWsuXe08UJ/8RItOJEqTpIuu ilUVlssfLwDmdFULET1/+SBEHzhMrdv9MuTbQhvOhUvG9EOch1UaE49gCqfGEqJqJPyD GqXnrHbAozoEmDHsQWwJbnGJejYhoUkymxRoMLIub6dblRYtKdHBmkL7Cwb0dO3PDMfX 1QWXRpAZS/Mbb5YiqxG02NRw3HAp3vQtZz88Ub2aRHfiZ0KXV6y/R68GU3EmrtYEjRxd eDxc48NxqubGzRUJ6edKC3aX+lvbbYOSYU47+IpnUvBdTVCzzw0gBJyz+TE0xv7jSVp/ XMrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/iwJYjpEKoA6plPdui6mmgpoHQToHr4LWUTKUs1qAxo=; b=cZE/uM/xCWTjbcmH5VXyUfUP/nOMveDI31NGrNGhxt3bt/Ho1YE9djS8IiT6OKr9uH pWJ0IbtOqCuGYZKBFoPiR/ajY1VzPlkFcaQ6lkIS3gx3NMteCEioMKR7h/b0yqihOdzg VMg1JLZAYbQuQ0x6ZELcvgtPJVu2Q1esP8T4ChO1ftwaXdonP83lyaGcipuO4e6dYF71 PEaL9/QBsEJqJo+twkThM0nGgawyPZJmgUehpHsdOLpz9YAue38Je4Z0r2/MAf91o15p uzEDT7zKpTkJlhu4n4kT088Vpu+uX4HRPzzayhrB/HcT3THZaE0RVvht0ilGDH9JHwaF lA0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dylddhhN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn15-20020a1709070d0f00b006f361fc2eafsi5336284ejc.192.2022.04.23.13.56.00; Sat, 23 Apr 2022 13:56:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dylddhhN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232418AbiDWPVA (ORCPT + 99 others); Sat, 23 Apr 2022 11:21:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232088AbiDWPU6 (ORCPT ); Sat, 23 Apr 2022 11:20:58 -0400 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC55433A22 for ; Sat, 23 Apr 2022 08:18:01 -0700 (PDT) Received: by mail-oi1-x230.google.com with SMTP id z2so12289287oic.6 for ; Sat, 23 Apr 2022 08:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/iwJYjpEKoA6plPdui6mmgpoHQToHr4LWUTKUs1qAxo=; b=dylddhhNvs2jkPpVPnBIzSPhmkPkalbZNGB0P01HX8GsKkLQM5fOBgVq5b/Riv8umC wiP3f3ZQ5BL2dbtdhwV+Kpi7kCXlLS+xhzuz62T6mnY9v0GvYOAWIRjKubBwejLcmuaS XOM+0TelNX3pQZulsSGczgYxvRCqNp5Pis6kdBoBuY7PbqalYU5HtohKcNXiQTQZGh2m aWDDoe9cH7tsg6ev0+Gf18UmUWx/KfRzBLOdHhUm1SiNzOyxLC/Gl6WWr6wvJ6ZstuR0 pUUWGLXorhpI1D0gkDNcbQ/Tc/I1XEi0bsD/UaJJiLFwSMJPgYR9DdfyVJrMRzeP4sgQ KFlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/iwJYjpEKoA6plPdui6mmgpoHQToHr4LWUTKUs1qAxo=; b=L0rHr6UU00h12aIavhCgK4zhbPjymcKBWkRKT8qRsm6omdAxe2DM3l+Tp3W8WOFyc9 h/N7nsoR6gBVw1aS2mhPq5kEaiasqxm/YOgbLqb/V1TJhHaA2JwFIbZ4ikak0V66Xidl W8m2S0XgYbtap0629CO/5zRYhBlxMH0B/lS/6yZ8jMrq20p2b0SqfiP58EB0/7HXYTRN 1iAcESVRX7na3JIObk2M168/HFpqF3wGetFf0OgbQ4I5LXZNTgw/WVhBbp6UbWEZC9nV A3ZhwSqfsOLpZH4IZtUYu2ZzC1wvFs1JTxiFhpTZL4lFCKyVNzbxQnLuuf9rMMKq5QJG G1dQ== X-Gm-Message-State: AOAM531pdASJ0rLDXfz3wNBcUTWND0t2NY/Zth/S2/tkAUETtxf/i/MW NwI9PH/zTCCZa5W9rS4m2GvNVA== X-Received: by 2002:a05:6808:1486:b0:2f9:e821:51d9 with SMTP id e6-20020a056808148600b002f9e82151d9mr4827811oiw.253.1650727081197; Sat, 23 Apr 2022 08:18:01 -0700 (PDT) Received: from ripper ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id r8-20020a05683001c800b006059d4bc39dsm533504ota.6.2022.04.23.08.18.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Apr 2022 08:18:00 -0700 (PDT) Date: Sat, 23 Apr 2022 08:20:01 -0700 From: Bjorn Andersson To: Manivannan Sadhasivam Cc: martin.petersen@oracle.com, jejb@linux.ibm.com, avri.altman@wdc.com, alim.akhtar@samsung.com, linux-arm-msm@vger.kernel.org, quic_asutoshd@quicinc.com, quic_cang@quicinc.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, bvanassche@acm.org, ahalaney@redhat.com Subject: Re: [PATCH v2 5/5] scsi: ufs: qcom: Enable RPM_AUTOSUSPEND for runtime PM Message-ID: References: <20220423140245.394092-1-manivannan.sadhasivam@linaro.org> <20220423140245.394092-6-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220423140245.394092-6-manivannan.sadhasivam@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 On Sat 23 Apr 07:02 PDT 2022, Manivannan Sadhasivam wrote: > In order to allow the block devices to enter autosuspend mode during > runtime, thereby allowing the ufshcd host driver to also runtime suspend, > let's make use of the RPM_AUTOSUSPEND flag. > > Without this flag, userspace needs to enable the autosuspend feature of > the block devices through sysfs. > > Signed-off-by: Manivannan Sadhasivam Reviewed-by: Bjorn Andersson > --- > drivers/scsi/ufs/ufs-qcom.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c > index f47a16b7cff5..34c5970db445 100644 > --- a/drivers/scsi/ufs/ufs-qcom.c > +++ b/drivers/scsi/ufs/ufs-qcom.c > @@ -876,6 +876,7 @@ static void ufs_qcom_set_caps(struct ufs_hba *hba) > hba->caps |= UFSHCD_CAP_WB_EN; > hba->caps |= UFSHCD_CAP_CRYPTO; > hba->caps |= UFSHCD_CAP_AGGR_POWER_COLLAPSE; > + hba->caps |= UFSHCD_CAP_RPM_AUTOSUSPEND; > > if (host->hw_ver.major >= 0x2) { > host->caps = UFS_QCOM_CAP_QUNIPRO | > -- > 2.25.1 >