Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4162366ybl; Mon, 3 Feb 2020 13:49:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyqEbX5qcYD1vAC8Nt2L8ZwgcmPyozMlWaYEijgE5wlmrFIVq67f8Cf3W/w3o5vdxZ0jO2e X-Received: by 2002:aca:503:: with SMTP id 3mr889271oif.106.1580766583146; Mon, 03 Feb 2020 13:49:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580766583; cv=none; d=google.com; s=arc-20160816; b=wgZP1xrAiPQS3r6XQvhnZ8zNZbb7/pHw2UXEUx5Dt+CEaZB/Sm6gQR7EgGzXevOkir O2bqMnmfeUEcOVTRNJIyDPYNlo/4ttVT5n7C5N6JJyBfUeBVS2Wcj/IkpxoP02POR+Go dVkRBCr+JSHUrZ83b6vfy8xrb2A2Y3k98sxRh6m3fwaySlVhvj6HHLARd4Qr6OgTb4jS EzDNM6ltN12ZYbfdQB+nEcW5esqJAqHVJ/o8VqxF4YG12EFBMSRgZwB7BpiEgKWVjZ/j NGV3gHkDhxqt2yvYS3HoC2/EEukpVtVhkLvphlEfDxlQ4GRkGGG4YB79IFxpbbkB4q3J Jtjg== 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=RGNVxrU90gISQofDn3ld3ulUbE2HDozF3FT41GjKBOc=; b=CHia37rU+p8Em39X4kevmbxlShf4G4isyrklNczFQ5Y8nDdLMJGBOzHieFsTBG6Qkq uTY764EiZDsjr6dxxSKk6qJ0FZrR61pr7SvWxtGHpg2YionemiqQ51lAIJxaR9P8Q8SG 08SmabzqyBROhXLvLoLvNK63YU5DteT3jtzwP7hQjaDvPATto7dpCPKkR2Po2kyOSRAP 5uTGFyg4Okpw+8FujhVrMOLQKwOwQOhL5nBtkqr88rFfAfAV4nEd5DCQXd+kUzWUptr+ ztg64/luqAiMzuxpJN3C0piYIY/hQ00mhB9IOoRwqLfWJRwUYHs57G8LR3hXVXFkuDAX xBPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="qa78Up9/"; 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 b18si2957253otp.17.2020.02.03.13.49.30; Mon, 03 Feb 2020 13:49:43 -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="qa78Up9/"; 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 S1726928AbgBCVrg (ORCPT + 99 others); Mon, 3 Feb 2020 16:47:36 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:36950 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbgBCVrg (ORCPT ); Mon, 3 Feb 2020 16:47:36 -0500 Received: by mail-pg1-f193.google.com with SMTP id z12so1575629pgl.4; Mon, 03 Feb 2020 13:47:35 -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=RGNVxrU90gISQofDn3ld3ulUbE2HDozF3FT41GjKBOc=; b=qa78Up9/k/3UtY77zjTlle9nc7P1UzT1c2Cra4u53D3tWHUfXRBDjHKOK0h2wdB/+E krKxMv0aEhkqw4D2Bd86u2p7t6ZNiQhHxQBhOtYjQv++Mwfl1c386MfpxMJosK4pWhIe QNVPapK20oJaX+uc113uolkfTu4dSD4z4bz48PxwUyCRotTBth1ZBVb9gI4Vy2o8KjI6 TgYU6oS7wUtYNquVXi/+6A/xEztrcZFdSDW5/avgoK7+sVSzm92E1ruIT1uDl3KxwfPf ILIJqCmgoOK+i1qojy/rS3a7V29Rg2GVQpx3YOAsPGpv28UeSIhLURuYLrfpswk02ymq Ux2Q== 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=RGNVxrU90gISQofDn3ld3ulUbE2HDozF3FT41GjKBOc=; b=EWXJcqYf247iPB8zdoJS/VHKCSCFFxdOessYzfm8oXXZyaeg4rj573IufRSqthUjSr K1p8Yo4MUMPjopmvClPryzOewIEZdJ87IWLb0JCWGiAp+oJu6ijfruUeipdFJ6ZiBDWn lheaunyHiV4ltr/DgWqNnIxDYGYLBP+fscOwmnZIhzSTJf6fS03OowxNdI+aLBSuTEhh YZ55E/1xfp7kn+Z3ZoMqtexKQkMxY5LfKzgCrByQbjvw40wRpggdaTOg3u/D1fNkKoJY qiqoZWy4mEY69X4Mi5MJ3Hnv3dHkxanGoUjSmHNviP5Gh3LsU3/s/EmqW5EwDu5PqdfZ g1Hw== X-Gm-Message-State: APjAAAWNxwCoqOICbppu4zX8tZQtoga/wz8j/fZsroTH98QtuBkRTPln +zI+eK18iJg4RvjBV+w/PaE= X-Received: by 2002:a17:902:694b:: with SMTP id k11mr25457304plt.334.1580766455323; Mon, 03 Feb 2020 13:47:35 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id m101sm430819pje.13.2020.02.03.13.47.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Feb 2020 13:47:34 -0800 (PST) Date: Mon, 3 Feb 2020 13:47:33 -0800 From: Guenter Roeck To: Avri Altman Cc: Avi Shchislowski , Alim Akhtar , "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: <20200203214733.GA30898@roeck-us.net> References: <1580640419-6703-1-git-send-email-avi.shchislowski@wdc.com> <20200202192105.GA20107@roeck-us.net> <94cb1e97-18ed-ebec-23c2-b4d87434726a@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon, Feb 03, 2020 at 09:29:57PM +0000, Avri Altman wrote: > > >> 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 ? > > > Guenter hi, > Yeah - I see your point. But here is the thing - > UFS devices support only a subset of scsi commands. > It does not support ATA_16 nor SMART attributes. > Moreover, you can't read UFS attributes using any other scsi/ATA/SATA > Commands, nor it obey the ATA temperature sensing conventions. > So unless you want to totally break the newly born drivetemp - > Better to leave ufs devices out of it. > drivetemp is written with extensibility in mind. For example, Martin has a prototype enhancement which supports SCSI drive temperature sensors. As long as a device can be identified as ufs device, and as long as there is a means to pass-through commands, adding a new type would be easy. > Another option is to put a ufs module under hwmon. > Do you see why would that be more advantageous to using the thermal core? > Provided that you are not going to deprecate it (Intel's wifi card is still using it)... > Deprecate what, and what does this discussion have to do with Intel's wifi card ? Either case, the hardware monitoring subsystem provides standard attributes, and it provides a bridge to the thermal subsystem. The question should be why _not_ to use the hwmon subsystem, and this question should be answered as part of this patch series. Guenter