FROMLIST: drm/rockchip: cdn-dp: Load firmware if no monitor connected
authorGuenter Roeck <groeck@chromium.org>
Tue, 22 Nov 2016 20:50:06 +0000 (15:50 -0500)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 20 Dec 2016 11:54:27 +0000 (19:54 +0800)
commitd53b218c10429c9b570eab6b8ffadfc46649bb8f
treece99068e2374ff5a8410fc782532da4115f6c937
parent152af2e38eda7388acc821ef47f9fbb3b4ef9702
FROMLIST: 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.

(am from https://patchwork.kernel.org/patch/9442145)
Signed-off-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Change-Id: I86eb7c41624be1a8f5952ba7709e623a70941b8c
drivers/gpu/drm/rockchip/cdn-dp-core.c