mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
For hotplug device the crtc->primary->fb should be equal to fb_helper->fb, otherwise the following path will return false and lead to connect state error: ->hotplug ->output_poll_changed() ->drm_fb_helper_hotplug_event() ->drm_fb_helper_is_bound() after user space beging, the above path can return false, because sometimes user space wants everything disabled, don't steal the display if there's a master, so we set crtc->primary->fb point to the original fb when drm_open. Change-Id: I5343978ce602324dbdc3125b6b98a7b4233149ab Signed-off-by: Sandy Huang <hjc@rock-chips.com>