Skip to content

platform/x86/amd/hsmp: split ACPI, Non-ACPI code

Suma Hegde platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2platform/x86/amd/hsmp: Create hsmp/ directorydrivers/platform/x86/amd/Kconfig drivers/platform/x86/amd/Makefile drivers/platform/x86/amd/hsmp/Kconfig +2 more+27 -150 replies
2/2platform/x86/amd/hsmp: Split ACPI and non-ACPI codeDocumentation/arch/x86/amd_hsmp.rst MAINTAINERS arch/x86/include/asm/amd_hsmp.h +8 more+1129 -9991 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchNaveen Krishna Chatradhi
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] platform/x86/amd/hsmp: split ACPI, Non-ACPI code

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
Signature · 1 line
2.25.1