Linux IIO development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: "Dmitry Maslov" <maslovdmitry@seeed.cc>
Cc: "Andy Shevchenko" <andy.shevchenko@gmail.com>,
	linux-iio <linux-iio@vger.kernel.org>,
	"Lars-Peter Clausen" <lars@metafoo.de>,
	north_sea@qq.com, baozhu.zuo@seeed.cc, jian.xiong@seeed.cc
Subject: Re: [PATCH v3] iio: light: ltr501: Added ltr303 driver support
Date: Wed, 3 Nov 2021 18:21:02 +0000	[thread overview]
Message-ID: <20211103182102.2232e680@jic23-huawei> (raw)
In-Reply-To: <6f764cb4.e6.17cdd1249ee.Coremail.maslovdmitry@seeed.cc>

On Tue, 2 Nov 2021 03:55:35 +0800 (GMT+08:00)
"Dmitry Maslov" <maslovdmitry@seeed.cc> wrote:

> > -----Original Messages-----
> > From: "Andy Shevchenko" <andy.shevchenko@gmail.com>
> > Sent Time: 2021-11-01 16:20:35 (Monday)
> > To: "Dmitry Maslov" <maslovdmitry@seeed.cc>
> > Cc: "Jonathan Cameron" <jic23@kernel.org>, linux-iio <linux-iio@vger.kernel.org>, "Lars-Peter Clausen" <lars@metafoo.de>, north_sea@qq.com, baozhu.zuo@seeed.cc, jian.xiong@seeed.cc
> > Subject: Re: Re: [PATCH v3] iio: light: ltr501: Added ltr303 driver support
> > 
> > On Mon, Nov 1, 2021 at 3:57 PM Dmitry Maslov <maslovdmitry@seeed.cc> wrote:  
> > > > From: "Andy Shevchenko" <andy.shevchenko@gmail.com>
> > > > Sent Time: 2021-10-31 22:07:09 (Sunday)
> > > > On Sun, Oct 31, 2021 at 6:46 PM Maslov Dmitry <maslovdmitry@seeed.cc> wrote:  
> > 
> > ...
> >   
> > > > > Signed-off-by: Maslov Dmitry <maslovdmitry@seeed.cc>  
> > > >
> > > > I believe it should be Dmitry Maslov, i.e. First name Last name.  
> > >
> > > I could change that, but I do not think there is an international standard for that. The reason I put Maslov Dmitry
> > > is to be in line with corporate email address, which belongs to a Chinese company - in China surname is put first
> > > on the legal documents.  
> > 
> > Hmm... You are right, there is no such requirement in the Submitting
> > Patches document.
> > ...
> >   
> > > > > @@ -1597,6 +1610,7 @@ static const struct acpi_device_id ltr_acpi_match[] = {
> > > > >         {"LTER0501", ltr501},
> > > > >         {"LTER0559", ltr559},
> > > > >         {"LTER0301", ltr301},
> > > > > +       {"LTER0303", ltr303},  
> > > >
> > > > Any evidence of this ACPI ID being in the wild, please?  
> > >
> > > I'm sorry, I do not exactly understand the question. Do you mean where that particular sensor is used?  
> > 
> > Can you provide a name of the machine which has this ID in its DSDT
> > table, please?  
> 
> We're submitting this patch specifically for reTerminal.
> Here is DTS file for the reTerminal, currently awaiting merge in Raspberry Pi Linux kernel
> repository.
> https://github.com/raspberrypi/linux/blob/6ef732875d705ff15cc4c25d4d0a0eee87dc2a58/arch/arm/boot/dts/overlays/seeed-reterminal-core-overlay.dts#L99
> 
> So, while at the moment ACPI part is not being used, later we might use this sensor for other, x86 based
> boards, for example ODYSSEY - X86J4125800.
> 
> Is there a particular reason you think this part should be omitted for LTR303?
> 
ACPI IDs are supposed to be made up of either a PNP id or ACPI ID registered with
UEFI forum.

A 4 letter version is an ACPI ID (3 letters in PNP), so it should be in this table
https://uefi.org/acpi_id_list

It's not.  So that means the proper process wasn't followed.  If you were using this
ID on a server, chances are we'd just tell you go fix your firmware (it's happened
to me and we fixed it).  However the sad truth is in consumer / embedded devices that
may not be a practical solution.  As such, if the ID was known to be in the wild
we would probably let it in.

Unfortunately I only really got familiar with ACPI specs in the last 4 years
and before that time I didn't know what the rules were - so let a load of IDs in.
Some of those IDs are in use on hardware that is out there so we have to continue
supporting them or introduce a regression on that hardware.

The process of applying for a PNP or ACPI ID isn't that bad for a company - you ask
for a particular ID and request is then sent for a round of 'has anyone an objection'
to the ASWG (I'm a rather inactive member so I see these every week or so).
Instructions at https://uefi.org/PNP_ACPI_Registry

Note that there would be two options for Seeed.  Either you persuade liteon to apply
and then issue an appropriate number (which may well not be the part number - often
people just start counting from 0, or assign ranges to different people in the company
so there doesn't need to be a central registry) or seeed applies for an ACPI or PNP ID
and then issues IDs for any part you want to support on an ACPI platform that doesn't
yet have an ID issued by the supplier.

Note that it's also common to use someone else's ID. Once it's assigned to a device
it can't be reused anyway so if say, Intel or Hisilicon had assigned one to a part
already then you could just reuse it for your ACPI platforms.

Hope that clears up how this is supposed to work.

Also note that every now and then we 'guess' that IDs are just cut and paste
jobs and remove them.  So far we've only hit ones that were in actual use a
few times - the majority of invalid ones weren't in use.

Jonathan


> 
> 
> 


  reply	other threads:[~2021-11-03 18:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-31 16:46 [PATCH v3] iio: light: ltr501: Added ltr303 driver support Maslov Dmitry
2021-10-31 20:07 ` Andy Shevchenko
2021-11-01 13:57   ` Dmitry Maslov
2021-11-01 14:20     ` Andy Shevchenko
2021-11-01 19:55       ` Dmitry Maslov
2021-11-03 18:21         ` Jonathan Cameron [this message]
2021-11-04 22:25           ` Dmitry Maslov
2021-11-05 17:06             ` Jonathan Cameron
2021-11-03 18:04       ` Jonathan Cameron

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=20211103182102.2232e680@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=andy.shevchenko@gmail.com \
    --cc=baozhu.zuo@seeed.cc \
    --cc=jian.xiong@seeed.cc \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=maslovdmitry@seeed.cc \
    --cc=north_sea@qq.com \
    /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