msm: camera: common: Change shutdown sequence for subdevices

In subdev close call if CRM is still active wait for shutdown
from CRM [media device]. Remove subdevice check for active
handles, shutdown to happen irrespective of any active context.

If CRM is not active, subdevice shutdown should ensure there is
no access to kernel allocated buffers since at this point
memmgr is de-initialized.

As part of ICP close, remove usage of HFI queues, trigger PIL
to transfer FW memory ownership back to HLOS and power off ICP.

CRs-Fixed: 2976107
Change-Id: Ib05b3fbdcc33f4072da7ef77cf0118a807860e8c
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
This commit is contained in:
Karthik Anantha Ram
2021-06-24 15:09:00 -07:00
부모 1c49642a1f
커밋 d785949196
40개의 변경된 파일85개의 추가작업 그리고 397개의 파일을 삭제

파일 보기

@@ -134,9 +134,8 @@ int cam_unregister_subdev(struct cam_subdev *sd);
*
* @brief: This common utility function returns the crm active status
*
* @dev_id: device id type
*/
bool cam_req_mgr_is_open(uint64_t dev_id);
bool cam_req_mgr_is_open(void);
/**
* cam_req_mgr_is_shutdown()