Skip to content

Commit

Permalink
drivers: drm: dw-hdmi-qp: Apply ddc-i2c-rxfilter only if DT prop exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Riek committed Dec 26, 2023
1 parent 408b805 commit f726d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ static void dw_hdmi_i2c_init(struct dw_hdmi_qp *hdmi)
hdmi_writel(hdmi, 0x01, I2CM_CONTROL0);

/* Configure I2CM hold time and rxfilter */
if (device_property_read_u32(hdmi->dev, "ddc-i2c-rxfilter", &ddc_i2c_rxfilter))
if (device_property_read_u32(hdmi->dev, "ddc-i2c-rxfilter", &ddc_i2c_rxfilter) == 0)
hdmi_writel(hdmi, ddc_i2c_rxfilter, I2CM_CONFIG0);

hdmi_modb(hdmi, 0, I2CM_FM_EN, I2CM_INTERFACE_CONTROL0);
Expand Down

0 comments on commit f726d3f

Please sign in to comment.