Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2619669ybl; Sun, 2 Feb 2020 02:49:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxTzV67TljUy2rtN6nfriIQg9ABjG3s3+/QRkJVpWo+ZYq0A/S5LX//h+DBC0GGxxCBK1Lq X-Received: by 2002:aca:2813:: with SMTP id 19mr11745482oix.76.1580640549851; Sun, 02 Feb 2020 02:49:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580640549; cv=none; d=google.com; s=arc-20160816; b=aKYBlFd+cTtjGIFsF/0eZIyxm0KTGs97ORDmULnKT71ntkDimVqBBhdN0FRZEZlGf/ KFpagnHs9DGNHO4KDtuddLoUvGDA8JRcSgv51YwGimk6bCGfhXsqw2qK/hFxBZYjAVwf XY7aMyfKMq34ISopXNPGKFJKu9I0LO+uTMzwGbERc7Xw5uESLFBlprLmLh/80ACl12wd EvhDtDNxaaqn0DLRRn/3R9jA361GONPD17sepTqfWKm83zTZokiqYke+zOpa+EhGG90B iRpsgIOpcS6Kl4vyzj3N+4xEOOPZv7vRrK4KrY8wKMDzkZDWbrIrRJzJjV6BnDGsJFKf Uzdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:wdcironportexception:ironport-sdr:ironport-sdr :ironport-sdr:dkim-signature; bh=GRRTM6WSxOQHvNSsDgQR1YzlnNKyGJup69w29Qy9y1s=; b=jCbrsooWOJDyMJSDYi45DNc8GknG5rJD7tfFtVTWzzIkCmnMf9CY0KYhXimExmSAaR tghi6G9Qb9aB42AgOiZ3wfGehY2rlsNUgE4x83yrUx7PocKW0KQlotkguGLrGQ1ds0ft NAPQeZQtu0uYW4itJdpCPAUo9vmS4sKKFVKHMEcAU9oIGMjuHlqI041Vs1jKjjIhC+jh TrL/obsaYJ+C6fRaYxA4gwOlvtCVJ1kKYqPgzFX28doA4OevCZb2uh3b/gNPX/bDE7dS E1QtkoSX7Q/PBAPj3Llb4CI7/pNiN4TTpbEBO8/QjsIBtJDudumezfGKYUSCMjx+sfzr 2G0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=BvDdVHUM; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h203si7100995oif.3.2020.02.02.02.48.58; Sun, 02 Feb 2020 02:49:09 -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=BvDdVHUM; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725988AbgBBKr0 (ORCPT + 99 others); Sun, 2 Feb 2020 05:47:26 -0500 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:8763 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727034AbgBBKrX (ORCPT ); Sun, 2 Feb 2020 05:47:23 -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=1580640443; x=1612176443; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=L4nAHFKokWMKbsmdb2ayPfvOB5mMFhDgRN9aEfo+7Pk=; b=BvDdVHUMrTolEoYuxCjFwtBuAIt/kqNjt0mcIQ1NTet3epRQ0xli1lcV 0LWxqshpn91ycBuWu2/ayl+/zJCFRjT3MFP7p+NSs+n5FcqkIPaVUOO+C hK3xDpTJyKhp/5lnkTwruzjvrD7PKaNpnkWTlDK1p2Fgq94wtH1YZMqxs TwFroUwTceI5q3/FT510Q6IttaqmImICGFBOwcOFNGfKBmP7B2UYNRwD4 ykHJKuULz1+B26WzQC4ywkbt2tjj6Mjcj/+V83OTntYbx4BPBcIH9PNOr gIwZdq+3y+jedvOLhC4YSysrTx+dr/MguSpvr5/rskhsytZeXVMVpkFKQ w==; IronPort-SDR: qDSOw3JcaXxn21mJEceTM+MjOfYbvY7bLZUXvuBN/SH5qW7XZzS0OBxZVNh28N2iFZpWjc5sgb C6l3ngAxwyDUltg8z0KqdhlsNsNkBp8ZYVP9q9zOqNMg+lKcHHS7HcOO1oFlyA/yyY+uuzjtqt uV0OitUImLIk4UiXrX4JFHUcmT4m8+H+qxJjZR9UBnAtg3AGEC5A5bL/NYBJwzhrJU/dej+Ff5 hUy3dUkJ0vv9mTmzt+3w1hz3L0IfIS+lokGl0yK1G0Zr/9AzrYV7ufExOMfdaOeDf5Ctwf3S2i 58o= X-IronPort-AV: E=Sophos;i="5.70,393,1574092800"; d="scan'208";a="128925975" 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; 02 Feb 2020 18:47:23 +0800 IronPort-SDR: TlAOPE+RWUw3Uh8SbQhreOBfF8GKvc3K8Di7cMB6tZVeLQClNPzVhV2KNoHup71vOfB5C56H0y +npCWMKHXi37THqu+gIzHWlOzSAz725WB5jduv2oZP4V673yPk4evRtas3RrhtJ4hxbfsMeEZj FpqkjUUAkn+PVvCNu5lxENmSJn794ZyInycam0ft7pZS6yboUuEvdFnN6foudmDF5o94JvmwKw nWxqffyb1fumgJWUk9hmY8peBczfraTbIOkBpTGDRkHPKOpVJwfSKs23KDYpPwA32XHXLOAiZm 6RGPVDsfmCrxljYAbdwfs1uY Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2020 02:40:29 -0800 IronPort-SDR: Hc51kDLCNGUTtubZS79q+bfxzteXY0gCd4WUdkyFsyegZbNfIKWWcoYpb7ehaZCxM4jeAonfet 3Ra6faP15GbG6QYH5dHb8g575pUGmZ/bDY9vPU9rLVXCwsbF+vTqynjxVVPbshNt/x3SzA1Lvo qmJ53tdFOjPW4FZKbkZHBudMbGIIMCO7izXStMLkC4IzHDP1Nd+Xy6wyYAhBAOIo38uqrAuAnF QDU69SlSaAbmwcOVlviW8XELM1H+oOc2KJJ8JsubdV081KvzsBUIuP4xyETzEvHOCtQCMpfJzI P+s= WDCIronportException: Internal Received: from kfae419068.sdcorp.global.sandisk.com ([10.0.231.195]) by uls-op-cesaip01.wdc.com with ESMTP; 02 Feb 2020 02:47:20 -0800 From: Avi Shchislowski To: Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Avi Shchislowski , Uri Yanai , Avi Shchislowski Subject: [PATCH 5/5] scsi: ufs: temperature atrributes add to ufs_sysfs Date: Sun, 2 Feb 2020 12:46:59 +0200 Message-Id: <1580640419-6703-6-git-send-email-avi.shchislowski@wdc.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1580640419-6703-1-git-send-email-avi.shchislowski@wdc.com> References: <1580640419-6703-1-git-send-email-avi.shchislowski@wdc.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Avi Shchislowski Signed-off-by: Uri Yanai Signed-off-by: Avi Shchislowski --- drivers/scsi/ufs/ufs-sysfs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/scsi/ufs/ufs-sysfs.c b/drivers/scsi/ufs/ufs-sysfs.c index dbdf8b0..180f4db 100644 --- a/drivers/scsi/ufs/ufs-sysfs.c +++ b/drivers/scsi/ufs/ufs-sysfs.c @@ -667,6 +667,9 @@ static DEVICE_ATTR_RO(_name) UFS_ATTRIBUTE(ffu_status, _FFU_STATUS); UFS_ATTRIBUTE(psa_state, _PSA_STATE); UFS_ATTRIBUTE(psa_data_size, _PSA_DATA_SIZE); +UFS_ATTRIBUTE(rough_temp, _ROUGH_TEMP); +UFS_ATTRIBUTE(too_high_temp, _TOO_HIGH_TEMP); +UFS_ATTRIBUTE(too_low_temp, _TOO_LOW_TEMP); static struct attribute *ufs_sysfs_attributes[] = { &dev_attr_boot_lun_enabled.attr, @@ -685,6 +688,9 @@ static DEVICE_ATTR_RO(_name) &dev_attr_ffu_status.attr, &dev_attr_psa_state.attr, &dev_attr_psa_data_size.attr, + &dev_attr_rough_temp.attr, + &dev_attr_too_high_temp.attr, + &dev_attr_too_low_temp.attr, NULL, }; -- 1.9.1