platform/x86: intel_pmc_ipc: add option to build without ACPI
Subsystems (2)
PATCH v2 1/1 platform/x86: intel_pmc_ipc: add option to build without ACPI
From: David E. Box <[email protected]>
Introduce a configuration option that allows users to build the intel_pmc_ipc driver without ACPI support. This is useful for systems where ACPI is not available or desired.
Based on the discussion from the patch [1], it was necessary to provide this option to accommodate specific use cases.
---
v2 Changes:
- Updated the patch description based on the comment
- Update the author correctly
- Used "#ifdef" instead of "#if" for CONFIG_ACPI
- Placed "#ifdef" inside the function
v1: https://patchwork.kernel.org/project/platform-driver-x86/patch/[email protected]/
---
--- include/linux/platform_data/x86/intel_pmc_ipc.h | 4 ++++ 1 file changed, 4 insertions(+)
include/linux/platform_data/x86/intel_pmc_ipc.h +4 -0
@@ -36,6 +36,7 @@ struct pmc_ipc_rbuf {*/ static inline int intel_pmc_ipc (struct pmc_ipc_cmd *ipc_cmd,struct pmc_ipc_rbuf *rbuf) { +#ifdef CONFIG_ACPI struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER ,NULL };union acpi_object params[PMC_IPCS_PARAM_COUNT ] = { {.type = ACPI_TYPE_INTEGER,},
@@ -89,6 +90,9 @@ static inline int intel_pmc_ipc(struct pmc_ipc_cmd *ipc_cmd, struct pmc_ipc_rbuf }return 0 ; +#else +return -ENODEV ; +#endif /* CONFIG_ACPI */ }#endif /* INTEL_PMC_IPC_H */
Signature · 1 line
2.34.1
Quoted 13 lines · Choong Yong Liang
From: David E. Box <[email protected]>
Introduce a configuration option that allows users to build the
intel_pmc_ipcdriver without ACPI support. This is useful for systems where ACPI is not available or desired.Based on the discussion from the patch [1], it was necessary to provide this option to accommodate specific use cases.
No blank line here, but I think Hans or Ilpo may tweak this when applying.
Otherwise LGTM,
Thanks!
Quoted 3 lines
Signed-off-by David E. Box <[email protected]>Co-developed-by Choong Yong Liang <[email protected]>Signed-off-by Choong Yong Liang <[email protected]>
Signature · 2 lines
With Best Regards, Andy Shevchenko
Ilpo Järvinen
maintainerQuoted 16 lines · Andy Shevchenko
Quoted 13 lines · Choong Yong Liang
From: David E. Box <[email protected]>
Introduce a configuration option that allows users to build the
intel_pmc_ipcdriver without ACPI support. This is useful for systems where ACPI is not available or desired.Based on the discussion from the patch [1], it was necessary to provide this option to accommodate specific use cases.
Quoted 5 lines
No blank line here, but I think Hans or Ilpo may tweak this when applying.
Otherwise LGTM,
Reviewed-by Andy Shevchenko <[email protected]>Thanks!
Hi both,
The original commit went through net-next tree so I cannot take this into pdx86 tree until after the merge window. It seems low impact enough that coordinating with the netdev might not be worth the effort.
To get it going through net-next tree, you'd need to submit v3 so that in addition to the current receipients, all relevant netdev people & ML are included as receipients. But I'd be fine if you leave it until after the merge window and I can then handle it then.
Quoted 3 lines
Quoted 3 lines
Signed-off-by David E. Box <[email protected]>Co-developed-by Choong Yong Liang <[email protected]>Signed-off-by Choong Yong Liang <[email protected]>
Signature · 1 line
i.
Quoted 11 lines · Ilpo Järvinen
Hi both,
The original commit went through net-next tree so I cannot take this into pdx86 tree until after the merge window. It seems low impact enough that coordinating with the netdev might not be worth the effort.
To get it going through net-next tree, you'd need to submit v3 so that in addition to the current receipients, all relevant netdev people & ML are included as receipients. But I'd be fine if you leave it until after the merge window and I can then handle it then.
Hi Ilpo,
I believe we can leave the patch until after the merge window.
This approach would simplify the merging process without needing assistance from the netdev maintainer for the platform code.
Thank you for your support.
Ilpo Järvinen
maintainerQuoted 8 lines · Choong Yong Liang
Introduce a configuration option that allows users to build the
intel_pmc_ipcdriver without ACPI support. This is useful for systems where ACPI is not available or desired.Based on the discussion from the patch [1], it was necessary to provide this option to accommodate specific use cases.
[...]
Thank you for your contribution, it has been applied to my local review-ilpo-fixes branch. Note it will show up in the public platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my local branch there, which might take a while.
The list of commits applied:
[1/1] platform/x86: intel_pmc_ipc: add option to build without ACPI
commit: d8455a63f731b4f585acc4d49fd7ad78db63b3d0
--
i.