From: jsg Date: Fri, 31 Mar 2023 01:56:10 +0000 (+0000) Subject: drm/amd/display: fix wrong index used in dccg32_set_dpstreamclk X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=adac78ace2aa0521416c58f1bf50df81d8567153;p=openbsd drm/amd/display: fix wrong index used in dccg32_set_dpstreamclk From Hersen Wu c590fce42c2117693bd0ee6646b3fc16a8f842ae in linux-6.1.y/6.1.22 4c94e57c258cb7800aa5f3a9d9597d91291407a9 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/display/dc/dcn32/dcn32_dccg.c b/sys/dev/pci/drm/amd/display/dc/dcn32/dcn32_dccg.c index e4472c6be6c..3fb4bcc3435 100644 --- a/sys/dev/pci/drm/amd/display/dc/dcn32/dcn32_dccg.c +++ b/sys/dev/pci/drm/amd/display/dc/dcn32/dcn32_dccg.c @@ -271,8 +271,7 @@ static void dccg32_set_dpstreamclk( dccg32_set_dtbclk_p_src(dccg, src, otg_inst); /* enabled to select one of the DTBCLKs for pipe */ - switch (otg_inst) - { + switch (dp_hpo_inst) { case 0: REG_UPDATE_2(DPSTREAMCLK_CNTL, DPSTREAMCLK0_EN,