From: "Shreeya Patel" <shreeya.patel@collabora.com>
To: "Jonathan Cameron" <jic23@kernel.org>
Cc: lars@metafoo.de, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org, kernel@collabora.com,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Marek Vasut" <marex@denx.de>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>
Subject: Re: [PATCH] iio: light: ltrf216a: Document the device name
Date: Mon, 22 Jul 2024 15:31:20 +0100 [thread overview]
Message-ID: <337fb5-669e6d00-5-3b412bc0@82250038> (raw)
In-Reply-To: <20240720142236.22f8dbb2@jic23-huawei>
On Saturday, July 20, 2024 18:52 IST, Jonathan Cameron <jic23@kernel.org> wrote:
> On Mon, 15 Jul 2024 01:07:09 +0530
> Shreeya Patel <shreeya.patel@collabora.com> wrote:
>
> > Compatible 'ltr,ltrf216a' is used by Valve's Steamdeck device
> > via the ACPI + PRP0001 mechanism.
> > Document the device name alognside the compatible.
> >
> > Signed-off-by: Shreeya Patel <shreeya.patel@collabora.com>
> Hi Shreeya,
>
> I'm guessing you used get_maintainers for this. Always check that there
> isn't anyone else who should be added.
>
> Given the root of this was the discussion about dropping this undocumented
> binding the DT maintainers and list should definitely be CC'd + Marek
> who was part of the earlier discussion.
>
Sorry about that, I used get_maintainers like you said but I'll keep this in
mind next time.
> The fact that this isn't a typical ID from a Windows consumer device does
> change things a little, but I'd imagine a firmware update for the steamdeck
> is equally unlikely to happen in order to fix the vendor-id.
> (I was surprised to discover they provide windows drivers for it but
> not seeing the light sensor in the list)
>
> So my opinion is that we should keep this ID in place with an enhanced
> description.
>
> The other suggestion from the Krzysztof's thread was the risk of this getting
> abused. Perhaps we should specifically fail to probe if that ID is used and
> it's not an ACPI firmware?
>
Rob said in another thread that use of it can now not pass the validation
with dtschema. So I'm guessing we don't need to add any extra checks anymore?
However, I'll send a v2 with enhanced description alongside the ID.
Thanks,
Shreeya Patel
>
> > ---
> > drivers/iio/light/ltrf216a.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/iio/light/ltrf216a.c b/drivers/iio/light/ltrf216a.c
> > index 68dc48420a88..e97ff8f7ecd0 100644
> > --- a/drivers/iio/light/ltrf216a.c
> > +++ b/drivers/iio/light/ltrf216a.c
> > @@ -528,7 +528,7 @@ MODULE_DEVICE_TABLE(i2c, ltrf216a_id);
> >
> > static const struct of_device_id ltrf216a_of_match[] = {
> > { .compatible = "liteon,ltrf216a" },
> > - { .compatible = "ltr,ltrf216a" },
> > + { .compatible = "ltr,ltrf216a" }, /* For Valve's Steamdeck device */
>
> Add that the steamdeck is an ACPI platform using PRP0001 as that's
> the key part that is different from a normal 'wrong' of_device_id.
>
>
> > {}
> > };
> > MODULE_DEVICE_TABLE(of, ltrf216a_of_match);
>
next prev parent reply other threads:[~2024-07-22 14:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-14 19:37 [PATCH] iio: light: ltrf216a: Document the device name Shreeya Patel
2024-07-20 13:22 ` Jonathan Cameron
2024-07-20 14:43 ` Rob Herring
2024-07-22 14:31 ` Shreeya Patel [this message]
2024-07-22 19:42 ` 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=337fb5-669e6d00-5-3b412bc0@82250038 \
--to=shreeya.patel@collabora.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=conor+dt@kernel.org \
--cc=jic23@kernel.org \
--cc=kernel@collabora.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marex@denx.de \
--cc=robh@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