mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 12:52:40 -04:00
drm/i915/irq: Uninstall should be called just once
There shouldn't be any path where the irq uninstall is called twice nowadays. So, remove the FIXME commend and change the check to a WARN. Suggested-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240916161937.537334-1-rodrigo.vivi@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
@@ -1422,13 +1422,7 @@ void intel_irq_uninstall(struct drm_i915_private *dev_priv)
|
||||
{
|
||||
int irq = to_pci_dev(dev_priv->drm.dev)->irq;
|
||||
|
||||
/*
|
||||
* FIXME we can get called twice during driver probe
|
||||
* error handling as well as during driver remove due to
|
||||
* intel_display_driver_remove() calling us out of sequence.
|
||||
* Would be nice if it didn't do that...
|
||||
*/
|
||||
if (!dev_priv->irqs_enabled)
|
||||
if (drm_WARN_ON(&dev_priv->drm, !dev_priv->irqs_enabled))
|
||||
return;
|
||||
|
||||
intel_irq_reset(dev_priv);
|
||||
|
||||
Reference in New Issue
Block a user