]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
accel/qaic: Leverage DRM managed APIs to release resources
authorPranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Fri, 8 Dec 2023 16:34:56 +0000 (09:34 -0700)
committerJeffrey Hugo <quic_jhugo@quicinc.com>
Wed, 20 Dec 2023 18:13:12 +0000 (11:13 -0700)
commit22ec9a3b73ddf5debf186a8041ad6c00a7b82b9c
tree07409abcd86891f5e2cebe51e26bc53c80fb2661
parent0547692ac14650d0574e065094891bed31e37007
accel/qaic: Leverage DRM managed APIs to release resources

Offload the balancing of init and destroy calls to DRM managed APIs.
mutex destroy for ->cntl_mutex is not called during device release and
destroy workqueue is not called in error path of create_qdev(). So, use
DRM managed APIs to manage the release of resources and avoid such
problems.

Signed-off-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231208163457.1295993-7-quic_jhugo@quicinc.com
drivers/accel/qaic/qaic.h
drivers/accel/qaic/qaic_drv.c