Skip to contentSkip to conversation

drm/amd: Add missing kernel doc for prepare_suspend()

PATCH In review Mario Limonciello 2 participants 2 messages Oct 17, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd: Add missing kernel doc for prepare_suspend()

prepare_suspend() is intended to be used for any IP blocks that must allocate memory during the suspend sequence.

Fixes cb11ca3233aa ("drm/amd: Add concept of running prepare_suspend() sequence for IP blocks")
---
 drivers/gpu/drm/amd/include/amd_shared.h | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/include/amd_shared.h +2 -0
index 98e60bc868dd..579977f6ad52 100644
@@ -271,6 +271,8 @@ enum amd_dpm_forced_level;
  * @hw_init: sets up the hw state
  * @hw_fini: tears down the hw state
  * @late_fini: final cleanup
+ * @prepare_suspend: handle IP specific changes to prepare for suspend
+ *                   (such as allocating any required memory)
  * @suspend: handles IP specific hw/sw changes for suspend
  * @resume: handles IP specific hw/sw changes for resume
  * @is_idle: returns current IP block idle status
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

[Public]

________________________________
From: amd-gfx <[email protected]> on behalf of Mario Limonciello <[email protected]>
Sent: Tuesday, October 17, 2023 3:37 PM
To: [email protected] <[email protected]>
Cc: Stephen Rothwell <[email protected]>; Limonciello, Mario <[email protected]>
Subject: [PATCH] drm/amd: Add missing kernel doc for prepare_suspend()

prepare_suspend() is intended to be used for any IP blocks that must allocate memory during the suspend sequence.

Fixes cb11ca3233aa ("drm/amd: Add concept of running prepare_suspend() sequence for IP blocks")
---
 drivers/gpu/drm/amd/include/amd_shared.h | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/include/amd_shared.h +2 -0
index 98e60bc868dd..579977f6ad52 100644
@@ -271,6 +271,8 @@ enum amd_dpm_forced_level;
  * @hw_init: sets up the hw state
  * @hw_fini: tears down the hw state
  * @late_fini: final cleanup
+ * @prepare_suspend: handle IP specific changes to prepare for suspend
+ *                   (such as allocating any required memory)
  * @suspend: handles IP specific hw/sw changes for suspend
  * @resume: handles IP specific hw/sw changes for resume
  * @is_idle: returns current IP block idle status

--
2.34.1