drm/i915: Fix wrong condition in bxt_set_cdclk for DG2
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Sat, 6 May 2023 14:42:17 +0000 (17:42 +0300)
committerStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Mon, 8 May 2023 09:21:35 +0000 (12:21 +0300)
commitb9279e9b28bb8754495f66d70902fa35c8fa7f53
tree3c8b6510175c4e8a1e1fa1e3a99372bc1d7ec468
parentdafa65d185fa0e946e602b53cb7f9694b7584456
drm/i915: Fix wrong condition in bxt_set_cdclk for DG2

By my own mistake, after adding !IS_DG2 into wrong branch,
bxt_set_cdclk started to execute code intended for platforms
gen < 11, which is wrong.
Move IS_DG2 check to better place.

Fixes: ceb0cc3b4288 ("drm/i915: Communicate display power demands to pcode")
Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230506144217.26075-1-stanislav.lisovskiy@intel.com
drivers/gpu/drm/i915/display/intel_cdclk.c