drm/amd/display: fix wrong index used in dccg32_set_dpstreamclk
authorjsg <jsg@openbsd.org>
Fri, 31 Mar 2023 01:56:10 +0000 (01:56 +0000)
committerjsg <jsg@openbsd.org>
Fri, 31 Mar 2023 01:56:10 +0000 (01:56 +0000)
From Hersen Wu
c590fce42c2117693bd0ee6646b3fc16a8f842ae in linux-6.1.y/6.1.22
4c94e57c258cb7800aa5f3a9d9597d91291407a9 in mainline linux

sys/dev/pci/drm/amd/display/dc/dcn32/dcn32_dccg.c

index e4472c6..3fb4bcc 100644 (file)
@@ -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,