Skip to content

Commit 2f499be

Browse files
topdjgodjamess-huang
authored andcommitted
[Camera] workaround to avoid iommu unmap NULL
Change-Id: I568d2d3b656efc7ff3c95fdccef004355641ea8d Reviewed-on: https://tp-biosrd-v02/gerrit/85457 Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com> Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
1 parent 9639632 commit 2f499be

File tree

1 file changed

+6
-0
lines changed
  • drivers/media/platform/rockchip/isp1

1 file changed

+6
-0
lines changed

drivers/media/platform/rockchip/isp1/capture.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,7 @@ static void rkisp1_set_fmt(struct rkisp1_stream *stream,
13821382

13831383
static int rkisp1_dma_attach_device(struct rkisp1_device *rkisp1_dev)
13841384
{
1385+
#if 0 // workaround to avoid iommu unmap NULL
13851386
struct iommu_domain *domain = rkisp1_dev->domain;
13861387
struct device *dev = rkisp1_dev->dev;
13871388
int ret;
@@ -1399,14 +1400,19 @@ static int rkisp1_dma_attach_device(struct rkisp1_device *rkisp1_dev)
13991400
}
14001401

14011402
return ret;
1403+
#else
1404+
return 0;
1405+
#endif
14021406
}
14031407

14041408
static void rkisp1_dma_detach_device(struct rkisp1_device *rkisp1_dev)
14051409
{
1410+
#if 0 // workaround to avoid iommu unmap NULL
14061411
struct iommu_domain *domain = rkisp1_dev->domain;
14071412
struct device *dev = rkisp1_dev->dev;
14081413

14091414
iommu_detach_device(domain, dev);
1415+
#endif
14101416
}
14111417

14121418
static int rkisp1_fh_open(struct file *filp)

0 commit comments

Comments
 (0)