mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
ODROID-COMMON: drm/bridge: prevent panic when HDMI is not initialized in U-Boot
Rockchip added to set BIT 21 in register VIDEO_INTERFACE_CONFIG0 when
HDMI is initialized, but reading a value from the register misleads
functions since the register contains more information and HDMI is not
initialized in U-Boot.
[1] c3c147361d
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I29912c23c8857f04ac5398edec2c7295938e4348
This commit is contained in:
@@ -3757,7 +3757,7 @@ __dw_hdmi_probe(struct platform_device *pdev,
|
||||
hdmi_writel(hdmi, 428571429, TIMER_BASE_CONFIG0);
|
||||
hdmi->logo_plug_out = false;
|
||||
if (hdmi->phy.ops->read_hpd(hdmi, hdmi->phy.data) == connector_status_connected &&
|
||||
hdmi_readl(hdmi, I2CM_INTERFACE_CONTROL0)) {
|
||||
(hdmi_readl(hdmi, I2CM_INTERFACE_CONTROL0) & BIT(21))) {
|
||||
hdmi->initialized = true;
|
||||
hdmi->disabled = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user