artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c54916e
)
drm/amd/display: enable_hpo_dp_link_output: Check link_res->hpo_dp_link_enc before...
author
jsg
<jsg@openbsd.org>
Fri, 11 Oct 2024 03:00:56 +0000
(
03:00
+0000)
committer
jsg
<jsg@openbsd.org>
Fri, 11 Oct 2024 03:00:56 +0000
(
03:00
+0000)
From Alex Hung
e0b065ec636d66022ab7057e1635e9a941a42820
in linux-6.6.y/6.6.55
d925c04d974c657d10471c0c2dba3bc9c7d994ee
in mainline linux
sys/dev/pci/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
b/sys/dev/pci/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
index
d0b0553
..
9a349de
100644
(file)
--- a/
sys/dev/pci/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
+++ b/
sys/dev/pci/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
@@
-110,6
+110,11
@@
void enable_hpo_dp_link_output(struct dc_link *link,
enum clock_source_id clock_source,
const struct dc_link_settings *link_settings)
{
+ if (!link_res->hpo_dp_link_enc) {
+ DC_LOG_ERROR("%s: invalid hpo_dp_link_enc\n", __func__);
+ return;
+ }
+
if (link->dc->res_pool->dccg->funcs->set_symclk32_le_root_clock_gating)
link->dc->res_pool->dccg->funcs->set_symclk32_le_root_clock_gating(
link->dc->res_pool->dccg,