Merge "msm: camera: clean up buffers before detach"
This commit is contained in:
commit
35ca83d6a7
1 changed files with 7 additions and 0 deletions
|
@ -876,6 +876,13 @@ static int cam_smmu_detach_device(int idx)
|
|||
{
|
||||
struct cam_context_bank_info *cb = &iommu_cb_set.cb_info[idx];
|
||||
|
||||
if (!list_empty_careful(&iommu_cb_set.cb_info[idx].smmu_buf_list)) {
|
||||
pr_err("Client %s buffer list is not clean!\n",
|
||||
iommu_cb_set.cb_info[idx].name);
|
||||
cam_smmu_print_list(idx);
|
||||
cam_smmu_clean_buffer_list(idx);
|
||||
}
|
||||
|
||||
/* detach the mapping to device */
|
||||
arm_iommu_detach_device(cb->dev);
|
||||
iommu_cb_set.cb_info[idx].state = CAM_SMMU_DETACH;
|
||||
|
|
Loading…
Add table
Reference in a new issue