accel/ivpu: Assure device is off if power up sequence fail
authorStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Sat, 28 Oct 2023 15:59:30 +0000 (17:59 +0200)
committerStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Tue, 31 Oct 2023 14:53:19 +0000 (15:53 +0100)
commita06eb9be49a66e16e0c7819c630c1267c25b36dc
treebf863148d14bc65760b23966eec9cc1afd1f3700
parentbfc87f90614523612ae7e94d06798e82bc78ade6
accel/ivpu: Assure device is off if power up sequence fail

We should not leave device half enabled if there is failure somewhere
it power up sequence. Fix device init and resume paths.

Reviewed-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231028155936.1183342-3-stanislaw.gruszka@linux.intel.com
drivers/accel/ivpu/ivpu_drv.c
drivers/accel/ivpu/ivpu_pm.c