]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: cdn-dp: Load firmware if no monitor connected
authorGuenter Roeck <groeck@chromium.org>
Sun, 5 Feb 2017 07:54:57 +0000 (15:54 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Sun, 5 Feb 2017 08:29:39 +0000 (16:29 +0800)
commit4e627f220db2c14c4407fba9590bf97e03bc501d
tree0375c6b3b7da75e8aeff43c506b911ab3629bc6f
parented777500a5c4a8f3153f9ef0745f847e2e14536c
drm/rockchip: cdn-dp: Load firmware if no monitor connected

If no monitor is connected, suspend/resume cycles result in firmware
load errors because the driver attempts to load the firmware while
the system is in suspend state. This results in a kernel warning and
traceback.

Loading the firmware during boot fixes the problem. Note that we can not
just call schedule_work conditionally in cdn_dp_pd_event() if the insertion
status changed. The problem would still be seen if a monitor is connected
for the first time during suspend.

Signed-off-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
drivers/gpu/drm/rockchip/cdn-dp-core.c