All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Jones <lee@kernel.org>
To: Armin Wolf <W_Armin@gmx.de>
Cc: "Joshua Grisham" <josh@joshuagrisham.com>,
	"Kurt Borja" <kuurtb@gmail.com>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Hans de Goede" <hdegoede@redhat.com>,
	platform-driver-x86@vger.kernel.org,
	"Pavel Machek" <pavel@ucw.cz>,
	linux-leds@vger.kernel.org
Subject: Re: Adding a new platform driver samsung-galaxybook
Date: Mon, 2 Dec 2024 09:26:33 +0000	[thread overview]
Message-ID: <20241202092633.GA7451@google.com> (raw)
In-Reply-To: <b531a5a7-d96a-4840-9831-d01a2b77c000@gmx.de>

> > For specifically kbd_backlight and hwmon devices, I think it is more
> > likely that people will be making various scripts / config / etc that
> > do things like show the fan speeds in various widgets and/or control
> > the keyboard backlight via script, so it seems to me like it is even
> > better if these can be fixed names that anyone who uses these devices
> > will be able to use (e.g. "samsung-galaxybook::kbd_backlight" feels
> > better than something non-fixed based on ACPI device ID like
> > "SAM0429_00::kbd_backlight").
> > 
> > This feels a bit like sub-optimizing here, especially since pretty
> > much all of the other drivers I can see are hard-coding these kind of
> > names already as well.. is it ok to just leave hwmon and LED class
> > device names as hard-coded with prefix "samsung-galaxybook" and
> > if/when it comes along that someone has a problem with multiple
> > instances, it will fail with an error message in the kernel log and
> > they can submit a bug? (where we figure out what the right course of
> > action is exactly for that case)
> 
> I am CCing the LED maintainers so they can give us some advise on how to handle
> this the best way.

I'm only in receipt of a snippet of the conversation here and lack all
context, however I can speak generally.

It is unlikely that you find yourself in uncharted territory with
respect to device enumeration and future-proofing.  The kernel is
designed in such a way as to support subsequent versions of devices,
usually by versioning or literal enumeration (see PLATFORM_DEVID_AUTO as
an example of this).  Allowing future devices to break and subsequently
relying on users to submit bug reports sounds suboptimal.  If we can
prevent breakage rather than react to it, possibly after developers have
moved on to something else, then we should do that. Matching on known
ACPI implementations and providing support for that sounds sane.

-- 
Lee Jones [李琼斯]

  parent reply	other threads:[~2024-12-02  9:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-18 13:51 Adding a new platform driver samsung-galaxybook Joshua Grisham
2024-11-18 15:59 ` Ilpo Järvinen
2024-11-20 11:59 ` Armin Wolf
2024-11-22 17:29   ` Joshua Grisham
2024-11-22 20:25     ` Kurt Borja
2024-11-23 17:58       ` Joshua Grisham
2024-11-23 22:19         ` Armin Wolf
2024-11-25 14:16           ` Joshua Grisham
2024-11-25 17:20             ` Armin Wolf
2024-11-26 19:04               ` Joshua Grisham
2024-12-02  9:26               ` Lee Jones [this message]
2024-12-04 17:31 ` Hans de Goede
2024-12-04 20:33   ` Joshua Grisham
2024-12-04 22:00     ` Hans de Goede
2024-12-04 22:18       ` Armin Wolf
2024-12-05 20:40         ` Joshua Grisham
2024-12-05 20:49           ` Armin Wolf

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=20241202092633.GA7451@google.com \
    --to=lee@kernel.org \
    --cc=W_Armin@gmx.de \
    --cc=hdegoede@redhat.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=josh@joshuagrisham.com \
    --cc=kuurtb@gmail.com \
    --cc=linux-leds@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.