[PATCH] drm: drop DRIVER_HAVE_IRQ flag for some drivers

Russell King - ARM Linux linux at armlinux.org.uk
Fri Aug 12 14:03:31 UTC 2016


On Fri, Aug 12, 2016 at 01:15:37PM +0800, Shawn Guo wrote:
> The drm driver feature flag DRIVER_HAVE_IRQ is used to indicates whether
> the driver has an IRQ handler managed by the DRM core.  Some drivers,
> armada, etnaviv, kirin and sti, set this flag without .irq_handler setup
> in drm_driver.  These drivers manage IRQ handler by themselves and the
> flag DRIVER_HAVE_IRQ makes no sense there.

It's worth noting that DRIVER_HAVE_IRQ was required prior to:

commit 4984979b9b9025a1cb9a9bea089d31a3e01ccff1
Author: Daniel Vetter <daniel.vetter at ffwll.ch>
Date:   Wed Aug 28 15:02:37 2013 +0200

    drm/irq: simplify irq checks in drm_wait_vblank

to have working vblank.  As this is no longer the case, this change
looks sane.

> 
> Drop the flag for these drivers to avoid confusion.
> 
> Signed-off-by: Shawn Guo <shawnguo at kernel.org>
> ---
>  drivers/gpu/drm/armada/armada_drv.c             | 2 +-
>  drivers/gpu/drm/etnaviv/etnaviv_drv.c           | 3 +--

For both of these,

Acked-by: Russell King <rmk+kernel at armlinux.org.uk>

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.


More information about the dri-devel mailing list