clk: qcom: gpucc-lagoon: Fix regulator corner mapping

Correct the voltage corner arrays for vdd_gx and vdd_mx. The previous
mapping swapped the corner arrays, causing vdd_gx to request invalid
voltages and leading to a kernel panic during clock registration due
to memory corruption when building with clang-r547379 or newer.

Fixes: dee2d5eb88 ("clk: qcom: gpucc: Add support for GPUCC clock driver for LAGOON")
Change-Id: Ie093e4acd6e7b29b96a627de13ec6ae2fe6a3e1e
This commit is contained in:
Michael Bestas committed 2026-01-16 23:42:27 +02:00
1 parent 0632e7cfb2
commit 6d39072bc6
1 file changed
+2 -2
+2 -2
View File
@@ -21,8 +21,8 @@
#include "vdd-level-lagoon.h"
static DEFINE_VDD_REGULATORS(vdd_cx, VDD_NUM, 1, vdd_corner);
static DEFINE_VDD_REGULATORS(vdd_gx, VDD_GX_NUM, 1, vdd_corner);
static DEFINE_VDD_REGULATORS(vdd_mx, VDD_NUM, 1, vdd_gx_corner);
static DEFINE_VDD_REGULATORS(vdd_gx, VDD_GX_NUM, 1, vdd_gx_corner);
static DEFINE_VDD_REGULATORS(vdd_mx, VDD_NUM, 1, vdd_corner);
#define CX_GMU_CBCR_SLEEP_MASK 0xF
#define CX_GMU_CBCR_SLEEP_SHIFT 4