Firstly, the upstream patch for sun4i-drm ensures the HDMI output is initialized successfully. Secondly, patching drm_atomic_helper_connector_hdmi_check() avoids a null pointer dereference at shutdown or reboot