Commit dbac286d authored by Dani Liberman's avatar Dani Liberman Committed by Rodrigo Vivi

drm/xe: proper setting of irq enabled flag

IRQ enabled flag should be set only after request irq succeeds.
Reviewed-by: default avatarOhad Sharabi <osharabi@habana.ai>
Signed-off-by: default avatarDani Liberman <dliberman@habana.ai>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 08452333
...@@ -579,16 +579,14 @@ int xe_irq_install(struct xe_device *xe) ...@@ -579,16 +579,14 @@ int xe_irq_install(struct xe_device *xe)
return -EINVAL; return -EINVAL;
} }
xe->irq.enabled = true;
xe_irq_reset(xe); xe_irq_reset(xe);
err = request_irq(irq, irq_handler, err = request_irq(irq, irq_handler,
IRQF_SHARED, DRIVER_NAME, xe); IRQF_SHARED, DRIVER_NAME, xe);
if (err < 0) { if (err < 0)
xe->irq.enabled = false;
return err; return err;
}
xe->irq.enabled = true;
xe_irq_postinstall(xe); xe_irq_postinstall(xe);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment