Received: by 10.223.185.116 with SMTP id b49csp7272373wrg; Thu, 1 Mar 2018 02:50:05 -0800 (PST) X-Google-Smtp-Source: AG47ELuSageuiEm6NN/fT2+b+4S49n2tKXDSvGLebqCQDa4CoHemuj6PIFf+C/49OPig2Q2T8Jgs X-Received: by 10.98.246.16 with SMTP id x16mr108818pfh.81.1519901405661; Thu, 01 Mar 2018 02:50:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519901405; cv=none; d=google.com; s=arc-20160816; b=x2NMS0oimcZsOdIAlFe83zebxudWZdIJZVwwad97jfVMMr0KjqBpGDztjE6b7PZeHD bFHWXJYfTcBxIZdN4CbLg4kYJwAZ8cRNenowBc2aPj+i0/8mUO8xB0ub1KkQ9JivNFvs G/BgmuNyWj/oR0gP9Uuic3agsXGNWuIwGJxMsmEe/95efDoYCTM0/uPw5oBT5+ec+OEE W9OS4Klkh3DnyKl2pUurea+kzEqdAuwKWU1DNJUp7LLEccJxoeT/THo5Vefnc+QVAEHw 7WXrOYFYXFD2Z2oCf9ReQ6yu55h6eAv+1XgdIlJ2Br0GXJ17sQtITtR91y+XXP86PQPW SAog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=KQ9992WSDwJo2Q/yZF5j9pQz8SJ1eP5jApWmtdYaexM=; b=jDPBcMwFIzVDGDav/XPePZf7R3U4PlNAsYlF12/bYTPqxMQb6xsRowTFp+SomHExZ+ 8Ui4KY5PknjvJiW8oL9JkwVeZPKlK6Myfp2URCr3br2odEtZwS+P6sIDEHTlKtXAm1NZ HhftLMessLD4GvdPqD+SMKSqz3FTtLTjwkxO/8OgJimucVYJk69Gw81fEI1rsQmVj+g7 MPZElcNOQSG5oBD0Qu8ulTCQ40nL0fKsZikMWHZe057eNl3OVk0RAOAfZsfRWrlMNsXS BsQkNx4UhvAOgjFoDF3cjgFYeeoI+uAVnswWn/efx7FMyDSCoOn9RaUZWV5fRI/F3afK Bfbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=lGeq9FV7; 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 34-v6si2876445plc.368.2018.03.01.02.49.51; Thu, 01 Mar 2018 02:50:05 -0800 (PST) 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; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=lGeq9FV7; 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 S967547AbeCAKsT (ORCPT + 99 others); Thu, 1 Mar 2018 05:48:19 -0500 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:23736 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966573AbeCAKsQ (ORCPT ); Thu, 1 Mar 2018 05:48:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1519901960; x=1551437960; h=from:to:cc:subject:date:message-id; bh=+CsRwrIkKR1b+F0zGQ6dnsbfu1QeCyqgSmcLpVOhJ48=; b=lGeq9FV7DLu05aa9AFa9U/v8tDxKq6JEuMFVLvkKQrAWkfpKo7Vi/BB/ s+YQ7mTzPobfelvc+ebgPkw1GoMwp66pYgWQ4ueTtJmtG3owPwpOMK6MW qnGNbhE1/sm50IEZmwbbulaLxB3OgTCws+OTHNeQywwDIO78M5JH51xps /lxZ+mL4ms++Uy73JjJgR3Sh4CgXauSgstDOeb+Lxw5v9mVeNluNXH6y8 WNI4eb9zXTXlxOOV7LtUAOvNWJ7U7bj4QMOxx9C1OPe8TEm2Gb8Feo+HR zb6fOJubllaZvcAa4XOsNgcumXmkebfcPgfS9tVvAxvG84dFPA2KRugE6 A==; X-IronPort-AV: E=Sophos;i="5.47,408,1515427200"; d="scan'208";a="169144581" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 01 Mar 2018 18:59:13 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 01 Mar 2018 02:42:16 -0800 Received: from ilb000042.sdcorp.global.sandisk.com ([10.0.231.79]) by uls-op-cesaip02.wdc.com with ESMTP; 01 Mar 2018 02:48:10 -0800 From: Stanislav Nijnikov To: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, subhashj@codeaurora.org Cc: alex.lemberg@wdc.com, Stanislav Nijnikov Subject: [PATCH] scsi: ufs: sysfs: reworking of the rpm_lvl and spm_lvl entries Date: Thu, 1 Mar 2018 12:48:05 +0200 Message-Id: <1519901286-17496-1-git-send-email-stanislav.nijnikov@wdc.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The functions related to the rpm_lvl and spm_lvl sysfs entries were moved to a separate file as part of UFS device management patchset. During the review phase I was pointed that these entries implementaion could be improved. The each file output was split to three parts: rmp_lvl - rpm_lvl, rpm_target_dev_state, rpm_target_link_state smp_lvl - spm_lvl, spm_target_dev_state, spm_target_link_state. Each new entry has a single value output and doesn't reqire additional parsing. The information about new entries and possible power management levels was added to the corresponding ABI file. The on-write behaviour of these entries wasn't changed. Stanislav Nijnikov (1): scsi: ufs: sysfs: reworking of the rpm_lvl and spm_lvl entries Documentation/ABI/testing/sysfs-driver-ufs | 67 ++++++++++++++++++++++ drivers/scsi/ufs/ufs-sysfs.c | 92 +++++++++++++++--------------- 2 files changed, 114 insertions(+), 45 deletions(-) -- 2.7.4