Received: by 10.213.65.68 with SMTP id h4csp398381imn; Tue, 20 Mar 2018 06:11:22 -0700 (PDT) X-Google-Smtp-Source: AG47ELuw5rUlFAmjG928DLvwpPuZRjeAc5mtsVQJAQ6fMH9PEw0x1YnQUIA5Z2iZjuJpzB42gVse X-Received: by 2002:a17:902:bf03:: with SMTP id bi3-v6mr16468329plb.343.1521551482406; Tue, 20 Mar 2018 06:11:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521551482; cv=none; d=google.com; s=arc-20160816; b=B48QhBAim9jTLAKePhrsJtMNRtAIhRgEBcOTVf2X1m8Y43wquRQgUYLlZn11MAlQz7 1RJd9FYYpDcrIGGA1uMsXGUFLw+eU82IUOk+XpAIxcp3+CcJRGjMY8Ng9zzfyNoiRer1 oAMdxm7aIC25LBu8XLNS+6TivZslpnJT3Fn8fwoqV1xNDNJfktolcC4hu6khKs9sKyTv 6dP4i2WJTS/nNP1OiJ4YumLh6gvvPpoXqr3m1pcC5WkEwj4h97NEgpCPXTXSLNGbf/9o HMDnvmHFuZhtTsv2EPkT9O+hpVo4IqkfWG2sAZ//WunLaXSqherkiYX0ZyeH0AYVpH3Z 3GQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Vz7ZPFoh9gOq0d70HN+PHp9IEDseL3wfzbVzMw0wKJQ=; b=QnkRV+WGl4aOMNbDVESszuPp03o3ZtI+POrU4zce2ZnXV5M9ML7WzWKZHeAJJbjeWu KLiQm3t1dDuQKbsdGfvBplU+ORIM8mRjUSSxRF7R3D3qObtGxxVA1PjKFt6lVi+iUGCK sLcKcT2dYj2d0njqUx25soIr1dBomPqCGbHv5Bq0EQWfInTN8R10dnMHN1Qw+UQXc9Jw yBI8w1XgyIPoKmYq02rOrH3f+rpffNhLN/Nll+WoGsYNy7e2+/kKMeDYGshRXK9u8KyG v1dBeyrbIUeCz9t0LLh85Fw4TVW7CTlwkS/nnVxX2SXq82f5kw4aPYc+zt2pfPKlBKFL 2ELQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si1282022pfp.283.2018.03.20.06.11.07; Tue, 20 Mar 2018 06:11:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753573AbeCTNIh (ORCPT + 99 others); Tue, 20 Mar 2018 09:08:37 -0400 Received: from mga04.intel.com ([192.55.52.120]:45632 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753552AbeCTNIc (ORCPT ); Tue, 20 Mar 2018 09:08:32 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Mar 2018 06:08:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,335,1517904000"; d="scan'208";a="213218635" Received: from ahunter-desktop.fi.intel.com ([10.237.72.168]) by fmsmga005.fm.intel.com with ESMTP; 20 Mar 2018 06:08:29 -0700 From: Adrian Hunter To: Vinayak Holikatti , "Martin K. Petersen" , "James E.J. Bottomley" Cc: Stanislav Nijnikov , Jaegeuk Kim , Bart Van Assche , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Szymon Mielczarek , Alim Akhtar , Alex Lemberg , Vivek Gautam Subject: [PATCH V3 0/1] scsi: ufs: Add support for Auto-Hibernate Idle Timer Date: Tue, 20 Mar 2018 15:07:37 +0200 Message-Id: <1521551258-4027-1-git-send-email-adrian.hunter@intel.com> X-Mailer: git-send-email 1.9.1 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Here is V3, now re-based on top of patch "scsi: ufs: sysfs:reworking of the rpm_lvl and spm_lvl entries". MichaƂ Potomski has previously sent a patch for Auto-Hibernate, but this patch is slightly different, based on the latest ufs-sysfs changes, it also takes care to restore auto-hibernate during resume, and otherwise avoids updating the register if the device is runtime suspended. Also a default value of 150ms is set. Changes in V3: Return -EOPNOTSUPP from auto_hibern8_show() if Auto-Hibernate is not supported. Changes in V2: Re-based on top of (yet to be applied) patch "scsi: ufs: sysfs: reworking of the rpm_lvl and spm_lvl entries" Adrian Hunter (1): scsi: ufs: Add support for Auto-Hibernate Idle Timer Documentation/ABI/testing/sysfs-driver-ufs | 15 ++++++ drivers/scsi/ufs/ufs-sysfs.c | 77 ++++++++++++++++++++++++++++++ drivers/scsi/ufs/ufshcd.c | 26 ++++++++++ drivers/scsi/ufs/ufshcd.h | 3 ++ drivers/scsi/ufs/ufshci.h | 7 +++ 5 files changed, 128 insertions(+) Regards Adrian