X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH 00/10] platform/x86/amd/hsmp: Split ACPI and plat device driver
@ 2024-06-27  5:39 Suma Hegde
  2024-06-27  5:39 ` [PATCH 01/10] platform/x86/amd/hsmp: Create hsmp/ directory Suma Hegde
                   ` (9 more replies)
  0 siblings, 10 replies; 22+ messages in thread
From: Suma Hegde @ 2024-06-27  5:39 UTC (permalink / raw)
  To: platform-driver-x86; +Cc: ilpo.jarvinen, hdegoede, Suma Hegde

This patch series splits the ACPI and platform device probing
in hsmp driver based on suggestion by Ilpo Jarvinen
https://lore.kernel.org/platform-driver-x86/20240607133405.1211929-1-suma.hegde@amd.com/T/#t

This change will help: 
 - Keep the probes clean of the if else ladder
 - use dev_groups in platform driver structure, instead of using
   devm_device_add_group()
 - use is_visible() to enable only the necessary sysfs entries.

Patch1-5 : Add smaller functions in preparation for the split
	   no logical change, code is re-structured to ease the
	   driver split.
Patch6   : Split ACPI and platform device based drivers as 2
           mutually exclusive drivers, only one of them can be enabled.
           Make Kconfig and Makefile changes to support this.
Patch7   : Add namespace to exported symbol hsmp_send_messag()
Patch8-9 : Remove dynamic creation and use dev_groups instead.
Patch 10 : Fix smatch error

Suma Hegde (10):
  platform/x86/amd/hsmp: Create hsmp/ directory
  platform/x86/amd/hsmp: Create wrapper function init_acpi()
  platform/x86/amd/hsmp: Move strcuture and macros to header file
  platform/x86/amd/hsmp: Move platform device specific code to plat.c
  platform/x86/amd/hsmp: Move ACPI code to acpi.c
  platform/x86/amd/hsmp: Create mutually exclusive ACPI and plat drivers
  platform/x86/amd/hsmp: Use name space while exporting module symbols
  platform/x86/amd/hsmp: Move read and is_visible to respective files
  platform/x86/amd/hsmp: Use dev_groups in the driver structure
  platform/x86/amd/hsmp: Fix potential spectre issue

 MAINTAINERS                            |   2 +-
 arch/x86/include/asm/amd_hsmp.h        |   2 +-
 drivers/platform/x86/amd/Kconfig       |  14 +-
 drivers/platform/x86/amd/Makefile      |   3 +-
 drivers/platform/x86/amd/hsmp.c        | 988 -------------------------
 drivers/platform/x86/amd/hsmp/Kconfig  |  40 +
 drivers/platform/x86/amd/hsmp/Makefile |  14 +
 drivers/platform/x86/amd/hsmp/acpi.c   | 410 ++++++++++
 drivers/platform/x86/amd/hsmp/hsmp.c   | 323 ++++++++
 drivers/platform/x86/amd/hsmp/hsmp.h   |  61 ++
 drivers/platform/x86/amd/hsmp/plat.c   | 368 +++++++++
 11 files changed, 1220 insertions(+), 1005 deletions(-)
 delete mode 100644 drivers/platform/x86/amd/hsmp.c
 create mode 100644 drivers/platform/x86/amd/hsmp/Kconfig
 create mode 100644 drivers/platform/x86/amd/hsmp/Makefile
 create mode 100644 drivers/platform/x86/amd/hsmp/acpi.c
 create mode 100644 drivers/platform/x86/amd/hsmp/hsmp.c
 create mode 100644 drivers/platform/x86/amd/hsmp/hsmp.h
 create mode 100644 drivers/platform/x86/amd/hsmp/plat.c

-- 
2.25.1


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

end of thread, other threads:[~2024-07-09 10:50 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-27  5:39 [PATCH 00/10] platform/x86/amd/hsmp: Split ACPI and plat device driver Suma Hegde
2024-06-27  5:39 ` [PATCH 01/10] platform/x86/amd/hsmp: Create hsmp/ directory Suma Hegde
2024-06-27  5:39 ` [PATCH 02/10] platform/x86/amd/hsmp: Create wrapper function init_acpi() Suma Hegde
2024-07-09 10:24   ` Ilpo Järvinen
2024-06-27  5:39 ` [PATCH 03/10] platform/x86/amd/hsmp: Move strcuture and macros to header file Suma Hegde
2024-06-27 19:30   ` Mario Limonciello
2024-07-09 10:21   ` Ilpo Järvinen
2024-06-27  5:39 ` [PATCH 04/10] platform/x86/amd/hsmp: Move platform device specific code to plat.c Suma Hegde
2024-07-09 10:20   ` Ilpo Järvinen
2024-06-27  5:39 ` [PATCH 05/10] platform/x86/amd/hsmp: Move ACPI code to acpi.c Suma Hegde
2024-07-09 10:09   ` Ilpo Järvinen
2024-07-09 10:50     ` Suma Hegde
2024-06-27  5:39 ` [PATCH 06/10] platform/x86/amd/hsmp: Create mutually exclusive ACPI and plat drivers Suma Hegde
2024-07-08 10:15   ` Ilpo Järvinen
2024-07-09  6:41     ` Suma Hegde
2024-06-27  5:39 ` [PATCH 07/10] platform/x86/amd/hsmp: Use name space while exporting module symbols Suma Hegde
2024-07-08 10:23   ` Ilpo Järvinen
2024-06-27  5:39 ` [PATCH 08/10] platform/x86/amd/hsmp: Move read and is_visible to respective files Suma Hegde
2024-06-27 19:48   ` Mario Limonciello
2024-06-28  3:50     ` Suma Hegde
2024-06-27  5:39 ` [PATCH 09/10] platform/x86/amd/hsmp: Use dev_groups in the driver structure Suma Hegde
2024-06-27  5:39 ` [PATCH 10/10] platform/x86/amd/hsmp: Fix potential spectre issue Suma Hegde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox