Skip to content

Commit 6217e9f

Browse files
jnikularodrigovivi
authored andcommitted
drm/i915/dsi: fix MIPI_BKLT_EN_1 native GPIO index
Due to copy-paste fail, MIPI_BKLT_EN_1 would always use PPS index 1, never 0. Fix the sloppiest commit in recent memory. Fixes: 963bbdb ("drm/i915/dsi: add support for ICL+ native MIPI GPIO sequence") Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221220140105.313333-1-jani.nikula@intel.com (cherry picked from commit a561933) Cc: stable@vger.kernel.org # 6.1 Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent 963bbdb commit 6217e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/display/intel_dsi_vbt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ static void icl_native_gpio_set_value(struct drm_i915_private *dev_priv,
430430
break;
431431
case MIPI_BKLT_EN_1:
432432
case MIPI_BKLT_EN_2:
433-
index = gpio == MIPI_AVDD_EN_1 ? 0 : 1;
433+
index = gpio == MIPI_BKLT_EN_1 ? 0 : 1;
434434

435435
intel_de_rmw(dev_priv, PP_CONTROL(index), EDP_BLC_ENABLE,
436436
value ? EDP_BLC_ENABLE : 0);

0 commit comments

Comments
 (0)