All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] platform/x86/amd/hsmp: split ACPI, Non-ACPI code
@ 2024-06-07 13:34 Suma Hegde
  2024-06-07 13:34 ` [PATCH 1/2] platform/x86/amd/hsmp: Create hsmp/ directory Suma Hegde
  2024-06-07 13:34 ` [PATCH 2/2] platform/x86/amd/hsmp: Split ACPI and non-ACPI code Suma Hegde
  0 siblings, 2 replies; 4+ messages in thread
From: Suma Hegde @ 2024-06-07 13:34 UTC (permalink / raw)
  To: platform-driver-x86; +Cc: ilpo.jarvinen, hdegoede, Suma Hegde

Split hsmp.c into 2 exclusive driver one for ACPI object based probing and
one probed as a platform device, provide Kconfig options to select one of
them.

Patch1: In preparation for the split. Create hsmp directory and necessary
Kconfig and Makefile and move hsmp.c file to hsmp/ directory.
There are no logical changes in this patch.

Patch2: Split hsmp.c code into acpi.c, core.c and plat.c files
acpi.c + core.c -> compile into ACPI based driver.
plat.c + core.c -> compile into plat device based driver.

Also, remove devm_* sysfs calls and uses dev_groups pointer
in platform_driver structure.

Suma Hegde (2):
  platform/x86/amd/hsmp: Create hsmp/ directory
  platform/x86/amd/hsmp: Split ACPI and non-ACPI code

 Documentation/arch/x86/amd_hsmp.rst    |  60 +-
 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  |  37 +
 drivers/platform/x86/amd/hsmp/Makefile |  13 +
 drivers/platform/x86/amd/hsmp/acpi.c   | 301 ++++++++
 drivers/platform/x86/amd/hsmp/core.c   | 284 +++++++
 drivers/platform/x86/amd/hsmp/hsmp.h   |  66 ++
 drivers/platform/x86/amd/hsmp/plat.c   | 392 ++++++++++
 12 files changed, 1152 insertions(+), 1010 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/core.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] 4+ messages in thread

end of thread, other threads:[~2024-06-10 16:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-07 13:34 [PATCH 0/2] platform/x86/amd/hsmp: split ACPI, Non-ACPI code Suma Hegde
2024-06-07 13:34 ` [PATCH 1/2] platform/x86/amd/hsmp: Create hsmp/ directory Suma Hegde
2024-06-07 13:34 ` [PATCH 2/2] platform/x86/amd/hsmp: Split ACPI and non-ACPI code Suma Hegde
2024-06-10 16:10   ` Ilpo Järvinen

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.