Message ID | 20240117075154.58747-5-jagan@amarulasolutions.com |
---|---|
State | Accepted |
Commit | 054a0ca8c16a229c76de033b9d3c7375b1e0ed0f |
Delegated to: | Anatolij Gustschin |
Headers | show |
Series | video: dw_hdmi: Support Vendor PHY | expand |
On 17/01/2024 08:51, Jagan Teki wrote: > From: Jagan Teki <jagan@edgeble.ai> > > Add support for DW HDMI Read HPD status. > > Signed-off-by: Jagan Teki <jagan@edgeble.ai> > --- > Changes for v3: > - check hdmi->ops > Changes for v2: > - none > > drivers/video/dw_hdmi.c | 3 +++ > include/dw_hdmi.h | 1 + > 2 files changed, 4 insertions(+) > > diff --git a/drivers/video/dw_hdmi.c b/drivers/video/dw_hdmi.c > index 3a3b9b7a21..989b7ab2db 100644 > --- a/drivers/video/dw_hdmi.c > +++ b/drivers/video/dw_hdmi.c > @@ -946,6 +946,9 @@ int dw_hdmi_detect_hpd(struct dw_hdmi *hdmi) > return -ENODEV; > } > > + if (hdmi->ops && hdmi->ops->read_hpd) > + hdmi->ops->read_hpd(hdmi, true); > + > return 0; > } > > diff --git a/include/dw_hdmi.h b/include/dw_hdmi.h > index ba2ce5ea7f..a1f0e64507 100644 > --- a/include/dw_hdmi.h > +++ b/include/dw_hdmi.h > @@ -538,6 +538,7 @@ struct dw_hdmi; > > struct dw_hdmi_phy_ops { > int (*phy_set)(struct dw_hdmi *hdmi, uint mpixelclock); > + void (*read_hpd)(struct dw_hdmi *hdmi, bool hdp_status); > }; > > struct dw_hdmi { Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
diff --git a/drivers/video/dw_hdmi.c b/drivers/video/dw_hdmi.c index 3a3b9b7a21..989b7ab2db 100644 --- a/drivers/video/dw_hdmi.c +++ b/drivers/video/dw_hdmi.c @@ -946,6 +946,9 @@ int dw_hdmi_detect_hpd(struct dw_hdmi *hdmi) return -ENODEV; } + if (hdmi->ops && hdmi->ops->read_hpd) + hdmi->ops->read_hpd(hdmi, true); + return 0; } diff --git a/include/dw_hdmi.h b/include/dw_hdmi.h index ba2ce5ea7f..a1f0e64507 100644 --- a/include/dw_hdmi.h +++ b/include/dw_hdmi.h @@ -538,6 +538,7 @@ struct dw_hdmi; struct dw_hdmi_phy_ops { int (*phy_set)(struct dw_hdmi *hdmi, uint mpixelclock); + void (*read_hpd)(struct dw_hdmi *hdmi, bool hdp_status); }; struct dw_hdmi {