Hi, On Fri, May 31, 2024 at 11:07:26PM GMT, Dmitry Baryshkov wrote: > +static int drm_bridge_connector_clear_infoframe(struct drm_connector *connector, > + enum hdmi_infoframe_type type) > +{ > + struct drm_bridge_connector *bridge_connector = > + to_drm_bridge_connector(connector); > + struct drm_bridge *bridge; > + > + bridge = bridge_connector->bridge_hdmi; > + if (!bridge) > + return -EINVAL; > + > + if (bridge->funcs->hdmi_clear_infoframe) > + return bridge->funcs->hdmi_clear_infoframe(bridge, type); > + else > + return 0; > +} > + > +static int drm_bridge_connector_write_infoframe(struct drm_connector *connector, > + enum hdmi_infoframe_type type, > + const u8 *buffer, size_t len) > +{ > + struct drm_bridge_connector *bridge_connector = > + to_drm_bridge_connector(connector); > + struct drm_bridge *bridge; > + > + bridge = bridge_connector->bridge_hdmi; > + if (!bridge) > + return -EINVAL; > + > + return bridge->funcs->hdmi_write_infoframe(bridge, type, buffer, len); > +} Sorry, I didn't notice it before, but I think it would be good to try to make clear_infoframe mandatory just like write_infoframe. It wasn't possible for the main helpers because we didn't have enough info for some drivers, but I think we should try to make it mandatory, and be prepared to relax it if needs be. With that fixed: Acked-by: Maxime Ripard <mripard@xxxxxxxxxx> Maxime
Attachment:
signature.asc
Description: PGP signature