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)
return -EINVAL;
}
xe->irq.enabled = true;
xe_irq_reset(xe);
err = request_irq(irq, irq_handler,
IRQF_SHARED, DRIVER_NAME, xe);
if (err < 0) {
xe->irq.enabled = false;
if (err < 0)
return err;
}
xe->irq.enabled = true;
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