public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: mark gross <mgross@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: "Limonciello, Mario" <Mario.Limonciello@dell.com>,
	Divya Bharathi <divya27392@gmail.com>,
	"dvhart@infradead.org" <dvhart@infradead.org>,
	LKML <linux-kernel@vger.kernel.org>,
	"platform-driver-x86@vger.kernel.org" 
	<platform-driver-x86@vger.kernel.org>,
	"Bharathi, Divya" <Divya.Bharathi@Dell.com>,
	Andy Shevchenko <andy.shevchenko@gmail.com>,
	"Ksr, Prasanth" <Prasanth.Ksr@dell.com>
Subject: Re: [PATCH v5] Introduce support for Systems Management Driver over WMI for Dell Systems
Date: Thu, 1 Oct 2020 12:04:58 -0700	[thread overview]
Message-ID: <20201001190458.GC25055@mtg-dev.jf.intel.com> (raw)
In-Reply-To: <42f8e710-38f7-6f80-9f4a-af68cd376538@redhat.com>

On Thu, Oct 01, 2020 at 11:26:36AM +0200, Hans de Goede wrote:
> Hi,
> 
> On 9/30/20 11:02 PM, Limonciello, Mario wrote:
> > > > +		possible_values:	A file that can be read to obtain the possible
> > > > +					values of the <attr>. Values are separated using
> > > > +					semi-colon (``;``).
> > > why not use set notation from math classes assuming intergers?  i.e.
> > > (a, b)  all integers beween a and b but not including a or b (open set)
> > > or
> > > [a, b] all integerger betwen a and b including and b?  (closed set)
> > > 
> > > Anyway its ambiguous if the the extremes are included in the set of possible
> > > values as written.
> > > 
> > 
> > Enumeration attributes mean that there are fixed values, specifically not integers.
> > Integers are in the "integer" type and explained below.
> > 
> > An example value that would be seen here is possible_values:
> > 
> > Enabled;Disabled;
> 
> That might not be the best example, because in that case arguably we
> could export it as a boolean type (except that the WMI interface does
> not give us boolean as an explicit / separate type).
> 
> Mark these enum attributes are really like enums in C, so we
> have a fixed set of possible values which are described by
> strings, since using integers for it makes no sense from a human
> interaction pov. E.g. on the Lenovo X1C8 I have some attributes
> have the following possible value sets:
> 
>                 Package (0x03)
>                 {
>                     "High",
>                     "Normal",
>                     "Silent"
>                 },
> 
>                 Package (0x02)
>                 {
>                     "LCD",
>                     "ExternalDisplay"
>                 },
> 
>                 Package (0x02)
>                 {
>                     "Independent",
>                     "Synchronized"
>                 },
> 
> I hope this helps clarify things.
It does.  Please ignore my comment on this topic then.

thanks

--mark


  reply	other threads:[~2020-10-01 19:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-29  2:55 [PATCH v5] Introduce support for Systems Management Driver over WMI for Dell Systems Divya Bharathi
2020-09-29 10:30 ` Hans de Goede
2020-09-30  0:23 ` mark gross
2020-09-30 21:02   ` Limonciello, Mario
2020-10-01  9:26     ` Hans de Goede
2020-10-01 19:04       ` mark gross [this message]
2020-10-01 19:02     ` mark gross
2020-10-01 18:20 ` Hans de Goede
2020-10-01 19:37   ` Limonciello, Mario
2020-10-09  7:46     ` Hans de Goede
2020-10-06  8:37   ` Bharathi, Divya
2020-10-09  7:56     ` Hans de Goede
2020-10-06  8:46   ` Bharathi, Divya
2020-10-09  7:58     ` Hans de Goede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201001190458.GC25055@mtg-dev.jf.intel.com \
    --to=mgross@linux.intel.com \
    --cc=Divya.Bharathi@Dell.com \
    --cc=Mario.Limonciello@dell.com \
    --cc=Prasanth.Ksr@dell.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=divya27392@gmail.com \
    --cc=dvhart@infradead.org \
    --cc=hdegoede@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox