Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1454234ybv; Thu, 6 Feb 2020 04:28:17 -0800 (PST) X-Google-Smtp-Source: APXvYqzQbVqXOJe8lUwrHpP0Db0k1VCxZJB9/2ycOibHj7advHBNEvmmoVAzsOHz4UHUqzEBTSDV X-Received: by 2002:a05:6808:8d5:: with SMTP id k21mr6788666oij.121.1580992096839; Thu, 06 Feb 2020 04:28:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580992096; cv=none; d=google.com; s=arc-20160816; b=eeAB94kFBCZyeXCApCVA3E5KldW/mstgNuK/DW/lXy66SGcXXUJZF4+GxQPjAcI42V 9tHPLorGkVPtGJjCc9yYVHa7gJl4U74+EQYVs4lASgyRc60JVLfQ1y2RPwI8ccT7M/Jn N+pF7WvgbQr/gCXZOpkKioQmIgE9nCf5pMB84HPrBMG1Ei8FcvCkrge173T6ThPcEHd8 RRic8uucfJGurG93bJ+BouX2EABT55BHWSvlVvoQRoQTh+qP7cOmI4H7PHw6WH57rFvh s7fEnXBcGzj9+6lc2OEyvKJPQsg6lxB2zu3BCKHXVoS272IK2kM3iyyP2Hp/r9hi1fsT DIlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=E/x3i/iaulUnT8LXM/M4q99+Z5/PyLR5bOHEeAbYoCA=; b=mj7mM6Uw3aS//GWVMMVCzOGhRi02MPbkU4DGQLOkL2NDmJXRynS+elCxFE8CoP2hwS NZ13eUAI7k6fKlx3bRHagYLCPaHSHMBYwnIrMMthzlxR8EvcDafP1Qap/A7YdLdCGdO3 pYsl/7iclXjD8JisrTXXkSbhdjLUOwlUh/RsOH/ymh3qlOKHlIS1CdR603CCtcSFJFPJ OpUg6jkFuEEkos1X3wtPsdKsJAFb/k9YAfqzpBIBHMrolS6dzy/mb16XkdpOfD6etDy3 +aUCoIdjfe4FqN7h7foqJt+Wlq1Zf9hEalUz0MltJFlG2rAhKw79sAvPcm1MAOEZRAFb li3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J73kA2tt; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si1763863otc.86.2020.02.06.04.28.04; Thu, 06 Feb 2020 04:28:16 -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=pass header.i=@gmail.com header.s=20161025 header.b=J73kA2tt; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727532AbgBFLkG (ORCPT + 99 others); Thu, 6 Feb 2020 06:40:06 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:42025 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726687AbgBFLkG (ORCPT ); Thu, 6 Feb 2020 06:40:06 -0500 Received: by mail-lj1-f194.google.com with SMTP id d10so5741269ljl.9; Thu, 06 Feb 2020 03:40:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E/x3i/iaulUnT8LXM/M4q99+Z5/PyLR5bOHEeAbYoCA=; b=J73kA2ttGCREeSDP0w5WrBQcGL8kjwkCxPTMplLgzz2Q4XchBJipcRskkUjlhCxa5F zieZyUAhxHq2ZN6aoR9zsL1sug0ULnSi8aZmcHdxfyhhYXMyb+KcEKyoSYlr6KPAHRSP 85BjMnAlRHiV/CFg/uMiJpiRdEXRiqeqCiPdVX5A8MeQrNr1kyUnrxH5JNS9EBSzTIVi 3l0vy8By15ATWwYwYgIXFh6KRDMlDfN3votuYai3yIvbAs6KxZ43SztWT/rPPfbOhzrX VHm2CUgUdep7WqCHWQrCj8QYLxcu3gDiG2qHgPcgUsoUlMvI/PuKJeySUNYkGopKQGDt co2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E/x3i/iaulUnT8LXM/M4q99+Z5/PyLR5bOHEeAbYoCA=; b=KVRD93GegjZKQXaQSPXSOMbZbKO/L5F6qmJmnBrV+CBFghvumt7QToZNBwRFdWuXyw JyDQ0Tj44hYgUGSYr+vfIL4iQ7L34AO8Q8EFZb4P0RqiTXhgTxe3/X2gK/vr79jhOilD GapNUTy4sUWJ5LR42aD0Tr7IOXp4yN624M5aS7miwidFYTlGIVTfT4kTyT9c4rUEVIx/ 1DPAI4tJc4MyrVXlz8yUsGTrfiJ8/nxKcTNsFQL7KRMGV/32nB91PbwW4SwTGyuSa0uY KfIpt5M/AVVJnLiwYuCFzxfpsdbfmt3j51s/7ycCG/8QSQfc+U3a9WVrde5VpocB8AQ8 CoDw== X-Gm-Message-State: APjAAAVTyr1ugBQdZSanXvwcQ8p7M/EuyQnlHAibDNV3HapzBn0o8cKV DIUkFv05O6htgEHetwsw/d3vm/4ZsVbU3bDjpmU= X-Received: by 2002:a2e:b007:: with SMTP id y7mr1693153ljk.215.1580989203944; Thu, 06 Feb 2020 03:40:03 -0800 (PST) MIME-Version: 1.0 References: <1580640419-6703-1-git-send-email-avi.shchislowski@wdc.com> <20200202192105.GA20107@roeck-us.net> <94cb1e97-18ed-ebec-23c2-b4d87434726a@roeck-us.net> <20200203214733.GA30898@roeck-us.net> In-Reply-To: From: Julian Calaby Date: Thu, 6 Feb 2020 22:39:52 +1100 Message-ID: Subject: Re: [PATCH 0/5] scsi: ufs: ufs device as a temperature sensor To: Avi Shchislowski Cc: Avri Altman , Guenter Roeck , Alim Akhtar , "James E.J. Bottomley" , "Martin K. Petersen" , "linux-kernel@vger.kernel.org" , "linux-scsi@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Avi, On Thu, Feb 6, 2020 at 9:48 PM Avi Shchislowski wrote: > > As it become evident that the hwmon is not a viable option to implement ufs thermal notification, I would appreciate some concrete comments of this series. That isn't my reading of this thread. You have two options: 1. extend drivetemp if that makes sense for this particular application. 2. follow the model of other devices that happen to have a built-in temperature sensor and expose the hwmon compatible attributes as a subdevice It appears that option 1 isn't viable, so what about option 2? Thanks, -- Julian Calaby Email: julian.calaby@gmail.com Profile: http://www.google.com/profiles/julian.calaby/