Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2835569ybl; Sun, 2 Feb 2020 07:50:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxMX6FibaTeoI/c6+QD10Ogj6DnhcG48jlLdC4uV/DrDBesOHyj9xuc5DIlmmSKVCTNqVBX X-Received: by 2002:aca:b70a:: with SMTP id h10mr12787259oif.20.1580658636927; Sun, 02 Feb 2020 07:50:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580658636; cv=none; d=google.com; s=arc-20160816; b=V9A86cmPjioJ2ndheWUoRmuVt2a1yjZv/euL57sTswx3yHkqtcOEe72fYI5R/Zdv3t 7Kh7ZV2a6rsxdj3/vQ5OY4frByQQRAEtxC4qvyLaCR3cKTV9KFcElf/89rsulgwQDXCs JerxvINGLLBVX9wMvScV4OkepNoeCwQv9U7dGVl+v0KmmCYzgOFWHdImWwVEHXeOKJus 1AQHC9iqZ4RsNidaUhjDTfZk7QY0TYno1f1cjgZEWLCSMURldNN8icqAUJy0hOgTc8uo 4O+EM0PL1FuBeBRYqjAsyAJQmt+SWpfR5+kncm3aUUSP0ktC91Wa99837stJbgzuq2rC kpww== 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=zEbl+T6UpCtxppCM2/IK8mPJ0L92VsnyiOC6FV4pLmzDJwIRYlGKWH4qVSbpci/p0B UD0vMyLN/IPy7ncCjKhqqgz7TPhrOr55m8au3TBzCf4IEyzDtg9lQBVvUI4h/99lHaEL jOZyq1oAjEpYYE18AsosZT7NAD146X9ZZ7lMb/zRMf9i0mw+Cx9sjLXVl2HbiyptHa67 T4yYLQ4aXGE4/Q2EOyoYzez1p46dQI8v/Zf6xB62GcpXcO8Vn/Tv7wJNhB4lXWBkB/j0 pa6Rm9hv403fcX4w0OY1TiZqCxpVLgyByRPUYbPVNq9dwpORn/GEfmayFoJryD5MVZmQ jOfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=B8LQ0Ab8; 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 v26si8354865otj.0.2020.02.02.07.50.24; Sun, 02 Feb 2020 07:50:36 -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=B8LQ0Ab8; 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 S1727102AbgBBPrw (ORCPT + 99 others); Sun, 2 Feb 2020 10:47:52 -0500 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:15703 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726880AbgBBPru (ORCPT ); Sun, 2 Feb 2020 10:47:50 -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=1580658469; x=1612194469; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=L4nAHFKokWMKbsmdb2ayPfvOB5mMFhDgRN9aEfo+7Pk=; b=B8LQ0Ab8juFgT6O0o1eiSBsibVHOSCCE9lD92k/QpRQ113sij3m9Wxqo E2D0FXIk7SBBK7TQW3yPztd4/+EFltfJeFW9iHRpfwNZSNfYEzKjJwpbv 7CQr3wTRR8odDkrixXqWR1b8uh94zCKIoU4j2vqsg5ykOQ4a81YB/ZnUR 1dxm4xMFXwQqMz6lnUF+WIXJdSbGF8GwwE3CyH0feKyJuass3pECBcFuw rIPLOmFfcDkSdBBEIW+wy/fhfLaWw5TxFiS0VDheDN+xR1CTDqLVHZlFe pD3tqr8OkRjfj7stoTAjNQAA58JmJVE4XVh1b8fTh1gkXOxrp0BGcPe7A w==; IronPort-SDR: vNC5X6Fb38EIFUvcooGcESefuoTsuEs9aoUqvF5/4e6fneZKZNtKCyRsvoi12QB9zAtyZrJKJ7 wXRLGArNBZhLR/z1xTrL5B0kKaEqjL03BIs1VmuubpfndL3QD57ExrUJ7EW+XNTRt1RVhDsHp9 CUqodYu5SyiqoODKZ6Dp9foQUaFNNSjNPkeEv2IKJgkLV/2rZhNGkNJjrwHVzzul/lzvqif4iX hqNPHWh8g6IcGQRPzk+A2RFoeuzvXjIdcbBb3bkB8aTz6bwjUeMXTC4k1OeRrgZ/eNTby1U/j+ 29w= X-IronPort-AV: E=Sophos;i="5.70,394,1574092800"; d="scan'208";a="128932829" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 02 Feb 2020 23:47:49 +0800 IronPort-SDR: bnnmQnV+pzldgFGq94O11ekWuPWQV4Kmtm14iZaHSGbepA9ekMmQxjEbGX9VDBXSgrs3/wmEOm frDgUw+Hiu3rcYFsXDhC9CiHQCN2x8oR9YYSB2HIPQVLRpIu7ZoeC3UE26wUsKyteHnuoDR9zr y8LsM+IMGE4FV0Xe7elaqEkmonmS0LaVb0QEEqpSSnACjshiKyzD1GZw99Qa4GcU2YQMjSxPT3 fq6cAMMV1grkfez6h8RVv+0OVAIgyVhWoCpevXnO4otDK2Ryjf2EK1m2oXyg4ZKHf4hF8qj4bJ LwoGTkcCwt0dxl79+uEElFEB Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2020 07:40:56 -0800 IronPort-SDR: B/r68EzglUPwQie2uuavU0xLfRZSP17qXm4qK2q3ppnX+zvaMBeE+Fc8reU7gPvMBfnkad2JwM xJWe6FHyxNPxDwY6Us00hzU+XCv/TYytmYmUu69+mt8fN+azunSPqanWnXeaEZaLoHpNXMkHX1 7UbmdRuVuGTnfEwbccXfoeqCA0vNl2l0Jvewx1qExj4iskpxWGdSyjYk1bbNqURHvLizmwYEH/ vIq5hqVxwp8lBHP+xM7OfKWz/W+MgYt3GRUroAfKLFDkyWuWhbRchoiX9+198O1BA5U4sZaKw0 GqA= WDCIronportException: Internal Received: from kfae419068.sdcorp.global.sandisk.com ([10.0.231.195]) by uls-op-cesaip02.wdc.com with ESMTP; 02 Feb 2020 07:47:47 -0800 From: Avi Shchislowski To: alim.akhtar@samsung.com, avri.altman@wdc.com, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, linux-kernel@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 17:47:25 +0200 Message-Id: <1580658445-15232-6-git-send-email-avi.shchislowski@wdc.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1580658445-15232-1-git-send-email-avi.shchislowski@wdc.com> References: <1580658445-15232-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