Re: [PATCH 28/39] drm/i915: move and group power related members under display.power

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 11, 2022 at 06:07:39PM +0300, Jani Nikula wrote:
Move display related members under drm_i915_private display sub-struct.

Arguably chv_phy_control and chv_phy_assert could be placed in a phy
substruct, but they are only used in the power code.

Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx>
---
.../gpu/drm/i915/display/intel_display_core.h |  11 ++
.../drm/i915/display/intel_display_power.c    | 112 +++++++++---------
.../i915/display/intel_display_power_map.c    |   4 +-
.../i915/display/intel_display_power_well.c   |  56 ++++-----
.../i915/display/intel_display_power_well.h   |  12 +-
drivers/gpu/drm/i915/display/intel_dpio_phy.c |   2 +-
drivers/gpu/drm/i915/i915_debugfs.c           |   2 +-
drivers/gpu/drm/i915/i915_drv.h               |  20 +---
8 files changed, 110 insertions(+), 109 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display_core.h b/drivers/gpu/drm/i915/display/intel_display_core.h
index 066e7ee0b8df..19abdd05d413 100644
--- a/drivers/gpu/drm/i915/display/intel_display_core.h
+++ b/drivers/gpu/drm/i915/display/intel_display_core.h
@@ -16,6 +16,7 @@

#include "intel_cdclk.h"
#include "intel_display.h"
+#include "intel_display_power.h"
#include "intel_dmc.h"
#include "intel_dpll_mgr.h"
#include "intel_fbc.h"
@@ -326,6 +327,16 @@ struct intel_display {
		struct mutex comp_mutex;
	} hdcp;

+	struct {
+		struct i915_power_domains domains;

rename the struct to display_power_domains?



Reviewed-by: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>

for all patches til this, expect patch 5

Lucas De Marchi



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux