Merge "msm: camera: clean up buffers before detach"

This commit is contained in:
Linux Build Service Account 2017-05-31 17:57:55 -07:00 committed by Gerrit - the friendly Code Review server
commit 35ca83d6a7

View file

@ -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;