All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] platform/x86: firmware_attributes_class: Add a high level API
@ 2025-05-17  8:51 Kurt Borja
  2025-05-17  8:51 ` [PATCH v2 1/5] platform/x86: firmware_attributes_class: Add device initialization methods Kurt Borja
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Kurt Borja @ 2025-05-17  8:51 UTC (permalink / raw)
  To: Hans de Goede, Ilpo Järvinen, Thomas Weißschuh,
	Joshua Grisham, Mark Pearson, Armin Wolf, Mario Limonciello
  Cc: Antheas Kapenekakis, Derek J. Clark, Prasanth Ksr, Jorge Lopez,
	platform-driver-x86, linux-kernel, Dell.Client.Kernel, Kurt Borja

Hi all,

These series adds the _long awaited_ API for the Firmware Attributes
class.

You'll find all the details in the commit messages and kernel-doc.

I think it's easier to understand by example, so I used the
samsung-galaxybook driver for this purpose (last patch). IMO code
readibility, simplicity, maintainability, etc. is greatly improved, but
there is still room for improvement of the API itself. For this reason I
submitted this as an RFC.

As always, your feedback is very appreciated :)

Overview
========

Patch 1-2: New API with docs included.
  Patch 3: New firwmare attributes type
  Patch 4: Misc Maintainers patch
  Patch 5: samsung-galaxybook example

Signed-off-by: Kurt Borja <kuurtb@gmail.com>
---
Changes in v2:

[Patch 1]
 - Include kdev_t.h header

[Patch 2]
 - Use one line comments in fwat_create_attrs()
 - Check propagate errors in fwat_create_attrs()
 - Add `mode` to fwat_attr_config and related macros to let users
   configure the `current_value` attribute mode
 - Use defined structs in fwat_attr_ops instead of anonymous ones
 - Move fwat_attr_type from config to ops

[Patch 5]
 - Just transition to new API without chaing ABI

- Link to v1: https://lore.kernel.org/r/20250509-fw-attrs-api-v1-0-258afed65bfa@gmail.com

---
Kurt Borja (4):
      platform/x86: firmware_attributes_class: Add a high level API
      platform/x86: firmware_attributes_class: Add a boolean type
      MAINTAINERS: Add FIRMWARE ATTRIBUTES CLASS entry
      platform/x86: samsung-galaxybook: Transition to new firmware_attributes API

Thomas Weißschuh (1):
      platform/x86: firmware_attributes_class: Add device initialization methods

 .../ABI/testing/sysfs-class-firmware-attributes    |   1 +
 MAINTAINERS                                        |   7 +
 drivers/platform/x86/firmware_attributes_class.c   | 454 +++++++++++++++++++++
 drivers/platform/x86/firmware_attributes_class.h   | 276 +++++++++++++
 drivers/platform/x86/samsung-galaxybook.c          | 308 ++++++--------
 5 files changed, 861 insertions(+), 185 deletions(-)
---
base-commit: 9f080c9f2099b5a81c85b3b7f95fd11fad428cc8
change-id: 20250326-fw-attrs-api-0eea7c0225b6
-- 
 ~ Kurt


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-06-09 19:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-17  8:51 [PATCH v2 0/5] platform/x86: firmware_attributes_class: Add a high level API Kurt Borja
2025-05-17  8:51 ` [PATCH v2 1/5] platform/x86: firmware_attributes_class: Add device initialization methods Kurt Borja
2025-05-17  8:51 ` [PATCH v2 2/5] platform/x86: firmware_attributes_class: Add a high level API Kurt Borja
2025-05-17  8:51 ` [PATCH v2 3/5] platform/x86: firmware_attributes_class: Add a boolean type Kurt Borja
2025-05-17  8:51 ` [PATCH v2 4/5] MAINTAINERS: Add FIRMWARE ATTRIBUTES CLASS entry Kurt Borja
2025-05-17  8:51 ` [PATCH v2 5/5] platform/x86: samsung-galaxybook: Transition to new firmware_attributes API Kurt Borja
2025-06-07 16:38 ` [PATCH v2 0/5] platform/x86: firmware_attributes_class: Add a high level API Joshua Grisham
2025-06-09  1:30   ` Kurt Borja
2025-06-09  9:29     ` Ilpo Järvinen
2025-06-09 19:03       ` Kurt Borja
2025-06-09 13:03     ` Joshua Grisham
2025-06-09 19:00       ` Kurt Borja

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.