ion: ion_sync_for_device use swiotlb_dma_ops not dummy_dma_ops [1/1]
authorbaocheng sun <baocheng.sun@amlogic.com>
Thu, 26 Sep 2019 07:41:42 +0000 (03:41 -0400)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 27 Sep 2019 11:56:53 +0000 (04:56 -0700)
commit302a65f3340835792582fd44152bf581dc0f8344
tree8f7ea3c105f74df6ad6ecf285926d55fb4a70e82
parent05d4ef2228a8d82a13c2f3c7c3ddcc07bef3ad27
ion: ion_sync_for_device use swiotlb_dma_ops not dummy_dma_ops [1/1]

PD#OTT-5276

Problem:
CTS EncodeDecodeTest failed. Ion sync ioctrl was
forwarded to a dummy implementation. So cached dma buffer
syncing between device and driver was inconsistent occasionally.

Solution:
Changed the dummy_dma_ops to swiotbl_dma_ops when ion_sync_for_device

Verify:
franklin, hertz

Change-Id: I16863bba6c3fe16b9c3b2b410ade6e45c9e74826
Signed-off-by: baocheng sun <baocheng.sun@amlogic.com>
drivers/staging/android/ion/ion.c