Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/hdlcd|mali: Drop drm_vblank_cleanup

IRQs are properly shut down, so it almost works as race-free shutdown.
Except the irq is stopped after the vblank stuff, so boom anyway.
Proper way would be to call drm_atomic_helper_shutdown before any of
the kms things gets stopped. So no harm in removing the
drm_vblank_cleanup here really.

Same story for both hdlcd and mali.

v2: Move misplaced malidp hunk to this patch (Liviu).

Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Brian Starkey <brian.starkey@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170524145212.27837-17-daniel.vetter@ffwll.ch

-4
-2
drivers/gpu/drm/arm/hdlcd_drv.c
··· 340 340 } 341 341 err_fbdev: 342 342 drm_kms_helper_poll_fini(drm); 343 - drm_vblank_cleanup(drm); 344 343 err_vblank: 345 344 pm_runtime_disable(drm->dev); 346 345 err_pm_active: ··· 367 368 } 368 369 drm_kms_helper_poll_fini(drm); 369 370 component_unbind_all(dev, drm); 370 - drm_vblank_cleanup(drm); 371 371 pm_runtime_get_sync(drm->dev); 372 372 drm_irq_uninstall(drm); 373 373 pm_runtime_put_sync(drm->dev);
-2
drivers/gpu/drm/arm/malidp_drv.c
··· 652 652 drm_kms_helper_poll_fini(drm); 653 653 fbdev_fail: 654 654 pm_runtime_get_sync(dev); 655 - drm_vblank_cleanup(drm); 656 655 vblank_fail: 657 656 malidp_se_irq_fini(drm); 658 657 malidp_de_irq_fini(drm); ··· 691 692 } 692 693 drm_kms_helper_poll_fini(drm); 693 694 pm_runtime_get_sync(dev); 694 - drm_vblank_cleanup(drm); 695 695 malidp_se_irq_fini(drm); 696 696 malidp_de_irq_fini(drm); 697 697 component_unbind_all(dev, drm);