<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#008000;margin:15pt;" align="Left">
[Public]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Vishwakarma, Pratik <Pratik.Vishwakarma@amd.com><br>
<b>Sent:</b> Monday, July 26, 2021 8:33 AM<br>
<b>To:</b> Deucher, Alexander <Alexander.Deucher@amd.com>; Lazar, Lijo <Lijo.Lazar@amd.com>; amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Vishwakarma, Pratik <Pratik.Vishwakarma@amd.com><br>
<b>Subject:</b> [PATCH] drm/amdgpu: Rename amdgpu_acpi_is_s0ix_supported</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Rename amdgpu_acpi_is_s0ix_supported to better explain<br>
functionality by renaming to amdgpu_acpi_is_s0ix_active<br>
<br>
Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/amdgpu.h      | 4 ++--<br>
 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 4 ++--<br>
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c  | 4 ++--<br>
 3 files changed, 6 insertions(+), 6 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h<br>
index dbaa79ddd468..d10baa3338bc 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h<br>
@@ -1390,12 +1390,12 @@ int amdgpu_acpi_smart_shift_update(struct drm_device *dev, enum amdgpu_ss ss_sta<br>
 int amdgpu_acpi_pcie_notify_device_ready(struct amdgpu_device *adev);<br>
 <br>
 void amdgpu_acpi_get_backlight_caps(struct amdgpu_dm_backlight_caps *caps);<br>
-bool amdgpu_acpi_is_s0ix_supported(struct amdgpu_device *adev);<br>
+bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev);<br>
 void amdgpu_acpi_detect(void);<br>
 #else<br>
 static inline int amdgpu_acpi_init(struct amdgpu_device *adev) { return 0; }<br>
 static inline void amdgpu_acpi_fini(struct amdgpu_device *adev) { }<br>
-static inline bool amdgpu_acpi_is_s0ix_supported(struct amdgpu_device *adev) { return false; }<br>
+static inline bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev) { return false; }<br>
 static inline void amdgpu_acpi_detect(void) { }<br>
 static inline bool amdgpu_acpi_is_power_shift_control_supported(void) { return false; }<br>
 static inline int amdgpu_acpi_power_shift_control(struct amdgpu_device *adev,<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c<br>
index bf59bb263816..0c281c7f5cea 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c<br>
@@ -1031,13 +1031,13 @@ void amdgpu_acpi_detect(void)<br>
 }<br>
 <br>
 /**<br>
- * amdgpu_acpi_is_s0ix_supported<br>
+ * amdgpu_acpi_is_s0ix_active<br>
  *<br>
  * @adev: amdgpu_device_pointer<br>
  *<br>
  * returns true if supported, false if not.<br>
  */<br>
-bool amdgpu_acpi_is_s0ix_supported(struct amdgpu_device *adev)<br>
+bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev)<br>
 {<br>
 #if defined(CONFIG_AMD_PMC) || defined(CONFIG_AMD_PMC_MODULE)<br>
         if (acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0) {<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c<br>
index af1710971ff3..bbc6bfadafd6 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c<br>
@@ -1468,7 +1468,7 @@ static int amdgpu_pmops_suspend(struct device *dev)<br>
         struct amdgpu_device *adev = drm_to_adev(drm_dev);<br>
         int r;<br>
 <br>
-       if (amdgpu_acpi_is_s0ix_supported(adev))<br>
+       if (amdgpu_acpi_is_s0ix_active(adev))<br>
                 adev->in_s0ix = true;<br>
         adev->in_s3 = true;<br>
         r = amdgpu_device_suspend(drm_dev, true);<br>
@@ -1484,7 +1484,7 @@ static int amdgpu_pmops_resume(struct device *dev)<br>
         int r;<br>
 <br>
         r = amdgpu_device_resume(drm_dev, true);<br>
-       if (amdgpu_acpi_is_s0ix_supported(adev))<br>
+       if (amdgpu_acpi_is_s0ix_active(adev))<br>
                 adev->in_s0ix = false;<br>
         return r;<br>
 }<br>
-- <br>
2.25.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>