Hi Shawn, Thank you for the patch.
On Tuesday 07 Feb 2017 17:16:14 Shawn Guo wrote: > From: Shawn Guo <shawn....@linaro.org> > > Core code already makes drm_driver.get_vblank_counter hook optional by > letting drm_vblank_no_hw_counter be the default implementation for the > function hook. So the drm_vblank_no_hw_counter assignment in the driver > code becomes redundant and can be removed now. > > Signed-off-by: Shawn Guo <shawn....@linaro.org> > Cc: Alexey Brodkin <abrod...@synopsys.com> > Cc: Liviu Dudau <liviu.du...@arm.com> > Cc: Mali DP Maintainers <mal...@foss.arm.com> > Cc: Russell King <li...@armlinux.org.uk> > Cc: Boris Brezillon <boris.brezil...@free-electrons.com> > Cc: Inki Dae <inki....@samsung.com> > Cc: Stefan Agner <ste...@agner.ch> > Cc: Xinliang Liu <z.liuxinli...@hisilicon.com> > Cc: Daniel Vetter <daniel.vet...@intel.com> > Cc: Philipp Zabel <p.za...@pengutronix.de> > Cc: CK Hu <ck...@mediatek.com> > Cc: Neil Armstrong <narmstr...@baylibre.com> > Cc: Rob Clark <robdcl...@gmail.com> > Cc: Marek Vasut <ma...@denx.de> > Cc: Ben Skeggs <bske...@redhat.com> > Cc: Tomi Valkeinen <tomi.valkei...@ti.com> > Cc: Laurent Pinchart <laurent.pinch...@ideasonboard.com> > Cc: Mark Yao <mark....@rock-chips.com> > Cc: Benjamin Gaignard <benjamin.gaign...@linaro.org> > Cc: Maxime Ripard <maxime.rip...@free-electrons.com> > Cc: Jyri Sarha <jsa...@ti.com> > Cc: Eric Anholt <e...@anholt.net> > --- > drivers/gpu/drm/arc/arcpgu_drv.c | 1 - > drivers/gpu/drm/arm/hdlcd_drv.c | 1 - > drivers/gpu/drm/arm/malidp_drv.c | 1 - > drivers/gpu/drm/armada/armada_drv.c | 1 - > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 1 - > drivers/gpu/drm/exynos/exynos_drm_drv.c | 1 - > drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 1 - > drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 1 - > drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 1 - > drivers/gpu/drm/i915/i915_irq.c | 1 - > drivers/gpu/drm/imx/imx-drm-core.c | 1 - > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 1 - > drivers/gpu/drm/meson/meson_drv.c | 1 - > drivers/gpu/drm/msm/msm_drv.c | 1 - > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 1 - > drivers/gpu/drm/nouveau/nouveau_drm.c | 1 - > drivers/gpu/drm/omapdrm/omap_drv.c | 1 - > drivers/gpu/drm/rcar-du/rcar_du_drv.c | 1 - > drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 1 - > drivers/gpu/drm/shmobile/shmob_drm_drv.c | 1 - > drivers/gpu/drm/sti/sti_drv.c | 1 - > drivers/gpu/drm/sun4i/sun4i_drv.c | 1 - > drivers/gpu/drm/tilcdc/tilcdc_drv.c | 1 - > drivers/gpu/drm/vc4/vc4_drv.c | 1 - > drivers/gpu/drm/zte/zx_drm_drv.c | 1 - > 25 files changed, 25 deletions(-) [snip] > diff --git a/drivers/gpu/drm/i915/i915_irq.c > b/drivers/gpu/drm/i915/i915_irq.c index 47d6131e977f..5aab08172faf 100644 > --- a/drivers/gpu/drm/i915/i915_irq.c > +++ b/drivers/gpu/drm/i915/i915_irq.c > @@ -4218,7 +4218,6 @@ void intel_irq_init(struct drm_i915_private *dev_priv) > if (IS_GEN2(dev_priv)) { > /* Gen2 doesn't have a hardware frame counter */ > dev->max_vblank_count = 0; > - dev->driver->get_vblank_counter = drm_vblank_no_hw_counter; > } else if (IS_G4X(dev_priv) || INTEL_INFO(dev_priv)->gen >= 5) { > dev->max_vblank_count = 0xffffffff; /* full 32 bit counter */ > dev->driver->get_vblank_counter = g4x_get_vblank_counter; On an unrelated note, for security reasons we should try to make the driver structure static, or at least move ops to a static structure. Anyway, for this patch, Reviewed-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com> -- Regards, Laurent Pinchart _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel