Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2982714ybl; Sun, 2 Feb 2020 11:22:15 -0800 (PST) X-Google-Smtp-Source: APXvYqyrsiKsHqVqlNTXp/5YFqNJu0A044hn4/z0ZIQO9V1AMUoJheyH7TfFUAqQ0BjR8fxtcb60 X-Received: by 2002:a9d:6f11:: with SMTP id n17mr15081099otq.126.1580671335227; Sun, 02 Feb 2020 11:22:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580671335; cv=none; d=google.com; s=arc-20160816; b=L3051jzQxrRAdHhhb/qW+xlKIqSZ34wy/wAJ+rZYdsEV4gdKGvDUR8OxntGx55nEo8 25Ylm6x6zcBEgNSP0ypf6VxFdeScy0yHNwhWQ4EW189ILl+adxLCjxeDq082ohsG8Qz+ tL423ocw39CtDO8kZDnibZnOdocvL0xiwOYEPvv7TekawuZZXLPg93SSi0qGTDHjqqq4 qrDfFiF29Vj8elHFjfwUa58NzWueqZ+463uD1pYpMzuMwdWjGtnDRJe8fkHnRBx8mEQW GnF8rRLDRPkTO1Vjp5VmeOv2hOWubeNfid0QpwlwkjZi1mIdQf44US7ruICwmn+1qmRm 8Ybg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WhbyccFYxDUetkxi0lachTOu0Psik/R8xkRSrrDTrL0=; b=aafUakRLgu8G738B+QSfaUvylVbzhWr3k0hUVKBnirWfwJbjukY2KtH4oJq6HmjBoO r+dn/Qjz7ry9UQYuZi5cjqG2achX44GPRCv09StFe4q9EvhrsXuOqu3yBX7qZz/J+fir aknYLUu7WU9y/qbPVE3QGOKSrCuA3j6eQ6s+rLXXiqOECpluAetDVl/iL2rdUhLeu+sE CI96bcL1wAsR4Lqp4PUamzMEjdsKRk9s2I673yXPrR4kLl+t2SfUoDtVQ3bWjymHNa4U Zp5H1g0aCKjPMtpMulcHNN7JVC49VXG6rl2mLtfRAqRvXpdyMAHIQ9s9qyOvr68SbAsd 8GWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="mZ/7jAOP"; 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 q195si4479010oic.83.2020.02.02.11.22.02; Sun, 02 Feb 2020 11:22:15 -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=@gmail.com header.s=20161025 header.b="mZ/7jAOP"; 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 S1726940AbgBBTVJ (ORCPT + 99 others); Sun, 2 Feb 2020 14:21:09 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:40644 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726893AbgBBTVJ (ORCPT ); Sun, 2 Feb 2020 14:21:09 -0500 Received: by mail-pg1-f195.google.com with SMTP id k25so6584326pgt.7; Sun, 02 Feb 2020 11:21:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=WhbyccFYxDUetkxi0lachTOu0Psik/R8xkRSrrDTrL0=; b=mZ/7jAOP/h6yiWmdHyEHMv0HBowYNttgAeAUTXLAm6ezCPizNZdVjJOyrwdBl8ZxcE 5CH/0sq9hlUJ+Gkc92w8zYXXP7/bEE5bbvAhFW/lN0wa3lVP40KJkS1AnxD6DnPL8etL 4WafobsrnwBFIjQbOs1rXo8iDuE3V5/G3wVYgZZaScqNyfAEBf/KVoqj390RMzBbMIj0 MP/uMRfuxOaWt2ZLgQy+GqzO/zqns9n1EdgCVz2e/kcWp43W5hoDKFYoUvDIVTUZLnQb //kcVt5fD6PxZKL/Ga9FN2PzUasEx1hvnnZGwS5c/awOyc1va2DQi5NGmhV2VmsLF6lG yScw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=WhbyccFYxDUetkxi0lachTOu0Psik/R8xkRSrrDTrL0=; b=jFcbdr4qAXIB16CWtEfGs1qJ6uPiHXbD1QWw+Vl+QGgv1/GlE2a6pggPxFVTepo1JH UMmOiMhKfU0iRk4uG97BWoQ29BJ6O/JCqEjqyGCA6jF1ZR9J4UbGZyUEjL7Nfm+sVQmL wzD5q3RJsfuBcXJU6b3EUIbHWKaJnnZrwyq3KzGzG/NAoURJWZ3F9djliVzbLcItXrSK +3ICa+IBjzTzVCnu10JAFGB2EdfnQvCwHEKe8UCrM1CiqsZc/gf/CjLINmIm+5XcTbz5 eSwo/mEETXfCtNnLNWZh4NWvWuRDEOPSfBxcpaxdZygp+V5t8VQQlWDyAWJmUtkVVeQd 9Tow== X-Gm-Message-State: APjAAAWVqxZ5H4y9Md2bUG9IV32dolwWndz7DUY7AjGXMrx8JAovXVj1 cd6bBvUNjy4q6m9dbufAbSo= X-Received: by 2002:a63:ba43:: with SMTP id l3mr7078662pgu.120.1580671266991; Sun, 02 Feb 2020 11:21:06 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id i68sm17605873pfe.173.2020.02.02.11.21.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Feb 2020 11:21:06 -0800 (PST) Date: Sun, 2 Feb 2020 11:21:05 -0800 From: Guenter Roeck To: Avi Shchislowski Cc: Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: Re: [PATCH 0/5] scsi: ufs: ufs device as a temperature sensor Message-ID: <20200202192105.GA20107@roeck-us.net> References: <1580640419-6703-1-git-send-email-avi.shchislowski@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1580640419-6703-1-git-send-email-avi.shchislowski@wdc.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 02, 2020 at 12:46:54PM +0200, Avi Shchislowski wrote: > UFS3.0 allows using the ufs device as a temperature sensor. The > purpose of this feature is to provide notification to the host of the > UFS device case temperature. It allows reading of a rough estimate > (+-10 degrees centigrade) of the current case temperature, And > setting a lower and upper temperature bounds, in which the device > will trigger an applicable exception event. > > We added the capability of responding to such notifications, while > notifying the kernel's thermal core, which further exposes the thermal > zone attributes to user space. UFS temperature attributes are all > read-only, so only thermal read ops (.get_xxx) can be implemented. > Can you add an explanation why this can't be added to the just-introduced 'drivetemp' driver in the hwmon subsystem, and why it make sense to have proprietary attributes for temperature and temperature limits ? Thanks, Guenter > Avi Shchislowski (5): > scsi: ufs: Add ufs thermal support > scsi: ufs: export ufshcd_enable_ee > scsi: ufs: enable thermal exception event > scsi: ufs-thermal: implement thermal file ops > scsi: ufs: temperature atrributes add to ufs_sysfs attributes