On Wed, Sep 09, 2015 at 06:54:17PM +0000, Rodrigo Vivi wrote: > Reviewed-by: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx> > > On Fri, Sep 4, 2015 at 6:37 AM Sonika Jindal <sonika.jindal@xxxxxxxxx> > wrote: > > > From: Shashank Sharma <shashank.sharma@xxxxxxxxx> > > > > This patch adds the intel_connector initialized to intel_hdmi > > display, during the init phase, just like the other encoders do. > > This attachment is very useful when we need to extract the connector > > pointer during the hotplug handler function > > > > Signed-off-by: Shashank Sharma <shashank.sharma@xxxxxxxxx> Queued for -next, thanks for the patch. -Daniel > > --- > > drivers/gpu/drm/i915/intel_drv.h | 1 + > > drivers/gpu/drm/i915/intel_hdmi.c | 1 + > > 2 files changed, 2 insertions(+) > > > > diff --git a/drivers/gpu/drm/i915/intel_drv.h > > b/drivers/gpu/drm/i915/intel_drv.h > > index c61ba47..b6c2c20 100644 > > --- a/drivers/gpu/drm/i915/intel_drv.h > > +++ b/drivers/gpu/drm/i915/intel_drv.h > > @@ -667,6 +667,7 @@ struct intel_hdmi { > > enum hdmi_force_audio force_audio; > > bool rgb_quant_range_selectable; > > enum hdmi_picture_aspect aspect_ratio; > > + struct intel_connector *attached_connector; > > void (*write_infoframe)(struct drm_encoder *encoder, > > enum hdmi_infoframe_type type, > > const void *frame, ssize_t len); > > diff --git a/drivers/gpu/drm/i915/intel_hdmi.c > > b/drivers/gpu/drm/i915/intel_hdmi.c > > index ed25f64..5bdb386 100644 > > --- a/drivers/gpu/drm/i915/intel_hdmi.c > > +++ b/drivers/gpu/drm/i915/intel_hdmi.c > > @@ -2107,6 +2107,7 @@ void intel_hdmi_init_connector(struct > > intel_digital_port *intel_dig_port, > > > > intel_connector_attach_encoder(intel_connector, intel_encoder); > > drm_connector_register(connector); > > + intel_hdmi->attached_connector = intel_connector; > > > > /* For G4X desktop chip, PEG_BAND_GAP_DATA 3:0 must first be > > written > > * 0xd. Failure to do so will result in spurious interrupts being > > -- > > 1.7.10.4 > > > > _______________________________________________ > > Intel-gfx mailing list > > Intel-gfx@xxxxxxxxxxxxxxxxxxxxx > > http://lists.freedesktop.org/mailman/listinfo/intel-gfx > > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@xxxxxxxxxxxxxxxxxxxxx > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx