From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B177C4363A for ; Mon, 5 Oct 2020 11:07:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 34D0F20774 for ; Mon, 5 Oct 2020 11:07:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726087AbgJELHb (ORCPT ); Mon, 5 Oct 2020 07:07:31 -0400 Received: from mga09.intel.com ([134.134.136.24]:22140 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbgJELH0 (ORCPT ); Mon, 5 Oct 2020 07:07:26 -0400 IronPort-SDR: Hl5Q02DD5lngTsL/Rv0fYnPGIyTMd9mah+hfhnH/QWFFrWmHhaShliafZvyOPVfMYHWE17XMk7 socz/5/Bto7g== X-IronPort-AV: E=McAfee;i="6000,8403,9764"; a="164225480" X-IronPort-AV: E=Sophos;i="5.77,338,1596524400"; d="scan'208";a="164225480" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2020 04:07:24 -0700 IronPort-SDR: MbbapK5I+cnXEdDPbNqLEG1OtYLKK524tJ9A1r6870P9S2FrhFm4IFBjSrSiFF/gXkEnzqNDlJ 05PAFJJZ74YA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,338,1596524400"; d="scan'208";a="516688856" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.190]) ([10.237.72.190]) by fmsmga005.fm.intel.com with ESMTP; 05 Oct 2020 04:07:21 -0700 Subject: Re: [PATCH 1/2] scsi: ufs: Add DeepSleep feature To: Avri Altman , "Martin K . Petersen" , "James E . J . Bottomley" Cc: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Alim Akhtar References: <20201002124043.25394-1-adrian.hunter@intel.com> <20201002124043.25394-2-adrian.hunter@intel.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Mon, 5 Oct 2020 14:06:42 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/10/20 12:51 pm, Avri Altman wrote: >> >> >> On 5/10/20 11:02 am, Avri Altman wrote: >>> HI, >>> >>>> Drivers that wish to support DeepSleep need to set a new capability flag >>>> UFSHCD_CAP_DEEPSLEEP and provide a hardware reset via the existing >>>> ->device_reset() callback. >>> I would expect that this capability controls sending SSU 4, but it only controls >> the sysfs entry? >> >> The sysfs entry is the only way to request DeepSleep. > Some chipset vendors use their own modules, or even the device tree > to set their default rpm_lvl / spm_lvl. I would not expect them to set it wrongly but what are you suggesting?