Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/display: Initialize phy and ch variables
@ 2025-09-03 12:01 Mika Kahola
  2025-09-03 12:17 ` ✓ CI.KUnit: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Mika Kahola @ 2025-09-03 12:01 UTC (permalink / raw)
  To: intel-gfx, intel-xe; +Cc: Mika Kahola

phy and ch variables are potentially used uninitialized.
To make absolutely sure that these variables are not used
uninitialized let's initialize these with known values as
DPIO_PHY0 and DPIO_CH0, respectively.

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c
index 8ea96cc524a1..45b67a3716e9 100644
--- a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c
+++ b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c
@@ -2174,8 +2174,8 @@ static bool bxt_ddi_pll_get_hw_state(struct intel_display *display,
 	struct bxt_dpll_hw_state *hw_state = &dpll_hw_state->bxt;
 	enum port port = (enum port)pll->info->id; /* 1:1 port->PLL mapping */
 	intel_wakeref_t wakeref;
-	enum dpio_phy phy;
-	enum dpio_channel ch;
+	enum dpio_phy phy = DPIO_PHY0;
+	enum dpio_channel ch = DPIO_CH0;
 	u32 val;
 	bool ret;
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-09-05  9:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-03 12:01 [PATCH] drm/i915/display: Initialize phy and ch variables Mika Kahola
2025-09-03 12:17 ` ✓ CI.KUnit: success for " Patchwork
2025-09-03 12:18 ` [PATCH] " Jani Nikula
2025-09-03 12:22   ` Kahola, Mika
2025-09-03 12:40     ` Jani Nikula
2025-09-05  9:18       ` Kahola, Mika
2025-09-03 12:51 ` ✓ Xe.CI.BAT: success for " Patchwork
2025-09-03 20:00 ` ✓ Xe.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox