Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7567056ybi; Tue, 9 Jul 2019 00:28:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcRFlE5KKL48xVkKPsCFrBfLYV3USHLG0qRY2IL55paq1I9NmZ4Cw/bcaD/TXESkeJVrf7 X-Received: by 2002:a63:1045:: with SMTP id 5mr28775405pgq.165.1562657316187; Tue, 09 Jul 2019 00:28:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562657316; cv=none; d=google.com; s=arc-20160816; b=T18Xmqeh0vf3LTbPn0bvm4kFnAY3D5y2haZFPWoJWgjmNW9bwdBwUsck8iTIqVIgAE IaehbqEF7roNHQxr0hFGiOTTZABiauUIW7HKhCTRx1KWiQhybs0NoTa/FaapxYV/2sKn qjImZCQtte8XZQ0VHnuABR2kTEeFXirpFx6ueICAjyrLE2qLGBO6d7xVR6xbhIi1Wxtu v3gvOAE2PJDeQY02heVhTCn01NZ/JnlbY7g30+Q0lv1yf7mkud51061IkqPuHFcqNMnf FWcUEIJaYVRI/uQf/ufovu1DXGHMJUrt6O9BKC6Z0OPSgxRyxGZ4jefxxcuu8jGKLN5k kIUw== 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=7/bxfJbKg+kMsUtUJhrLaoqxMmi1kx1J4E3T3lScoo0=; b=X0jaRdqi/GMa+1jz77E2l9ZpT85RV0yijYSP0tdH/TjPvrXHV/rAXXqhdVH7GytMEc GSAMhEED+6Z1469yFYxNa15tFTThCC+raxiVeIlfbdCeQEiEOp7mnEJHpLY2HcHTrmVL cdvIOj9CRj4jPooGiJjbDCsPYZL0ZGWyOb7WCucyBvqa2TpaDiTdx2og6wPaFvmllKmK 6euHs5Vl9HiDNe6VGPFVmcwkcHNiNu+V6diFtz583qJCIsfv/E3ij/Iyp3kouRJaeXGj 4AWvjAWkQrN5xGSl6gLIXxoN8DPwJknOSwG8OcDdo0YHeO4yHXE2iZAb69UWzQDklb9T t02g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GOakA4Zo; 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 d23si286765pjv.56.2019.07.09.00.28.20; Tue, 09 Jul 2019 00:28:36 -0700 (PDT) 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=GOakA4Zo; 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 S1726057AbfGIH1x (ORCPT + 99 others); Tue, 9 Jul 2019 03:27:53 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:32891 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbfGIH1x (ORCPT ); Tue, 9 Jul 2019 03:27:53 -0400 Received: by mail-io1-f66.google.com with SMTP id z3so26078819iog.0; Tue, 09 Jul 2019 00:27:52 -0700 (PDT) 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=7/bxfJbKg+kMsUtUJhrLaoqxMmi1kx1J4E3T3lScoo0=; b=GOakA4Zoww6s4joBky8YC/xK0UEazAQk7KPL3KUJHoncRjeImmYNYvubz8ATIdzq5I NeTohecnwX5lJ1K5hOuADTnz184NCDeD6VIMzwoBGv6g/mXwIucINPxF75m3wpqRExJk burx/YVxHJZOK3KJDTZ7sNumyf9oZpv5Qrlkv3vDIoq41sP9LKvKtMEpmtCsCK/MdhUk EzFnDhRXfy4OAQsQYxzvigY7RjNGgZDl9+KFlt9CiWLd/+BucKQdD8pbq44DfuZor2KC QM4NcKPFMLXONQkiweyokGUuR+vtbJty1OFY8CgxFXPYes/jlUvfm3y35dXGyqhTX08n 3PPw== 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=7/bxfJbKg+kMsUtUJhrLaoqxMmi1kx1J4E3T3lScoo0=; b=qOOdXLuXsbWyRwv7FUpRgujp1sxgAUsyPVx+s+UrAVl67ILAvhl86cX3DwBpRn9NAT kRqE/6GnI47CdqAHnHm/JQ9itw1Qu5/FofssZRGjW54oN93gqQNVGr+GbqZN4rekGnZd /Uz4yIitvV0nbhCO3rqYOdTM5R36RUJT3bt0hz87u4abkFiE3D70f1jep7yWXf0OFTYm 0bexQDT2pNWwm3dzMj62OqeehTJ1kcEv/5hJA1xsTmwFLM01DV9cD2v3ctE/Rm5H8gmI ftAHBu0KShpBPkvcT3dZHK2rOetvAOd0C7hYFlddJ85mqlEDwqo7WncB/DH8OPvb+Isd cHTA== X-Gm-Message-State: APjAAAU529URz6wlJQhsaD1OAvb1oau6qAy2IeyFWR6Y+pgx8AZRTVni C+YT1mFz9TA3q1Yt6kj8OTZpEf2z/OjtgHvsaLI= X-Received: by 2002:a6b:b556:: with SMTP id e83mr22963512iof.94.1562657271913; Tue, 09 Jul 2019 00:27:51 -0700 (PDT) MIME-Version: 1.0 References: <20190612084404.21685-1-andrew.smirnov@gmail.com> <20190612084404.21685-2-andrew.smirnov@gmail.com> <20190627182725.v3mgmy35fxoogofe@earth.universe> In-Reply-To: <20190627182725.v3mgmy35fxoogofe@earth.universe> From: Andrey Smirnov Date: Tue, 9 Jul 2019 00:27:40 -0700 Message-ID: Subject: Re: [PATCH v4 1/1] power: supply: Add HWMON compatibility layer To: Sebastian Reichel Cc: Linux PM list , Guenter Roeck , Chris Healy , Cory Tusar , Lucas Stach , Fabio Estevam , linux-kernel 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 On Thu, Jun 27, 2019 at 11:27 AM Sebastian Reichel wrote: > > Hi, > > On Wed, Jun 12, 2019 at 01:44:04AM -0700, Andrey Smirnov wrote: > > Add code implementing HWMON adapter/compatibility layer to allow > > expositing various sensors present on power supply devices via HWMON > > subsystem. This is done in order to allow userspace to use single > > ABI/library(libsensors) to access/manipulate all of the sensors of the > > system. > > > > Signed-off-by: Andrey Smirnov > > Reviewed-by: Guenter Roeck > > Tested-by: Chris Healy > > --- > > Thanks, queued. > Hmm, I just realized that power supply exposing POWER_SUPPLY_PROP_TEMP will have a thermal zone created for it by default, which will expose said reading via thermal/HWMON integration layer. Do we want to do anything about this duplication of functionality? Maybe hide it here if desc->no_thermal is true? Or just drop reporting temperature from this patch? Thanks, Andrey Smirnov