disp: rotator: use proper dma buf API for cpu access unmap
This change adds support to use dma_buf_vunmap instead of dma_buf_kunmap as the latter is deprecated. Change-Id: I665c410b1f75854a8840e1da8a21ba2b5cc65ad8 Signed-off-by: Gaurav LNU <quic_glnu@quicinc.com> Signed-off-by: Vinod Polimera <quic_vpolimer@quicinc.com>
这个提交包含在:
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
@@ -1243,7 +1243,7 @@ static void sde_hw_rotator_map_vaddr(struct sde_dbg_buf *dbgbuf,
|
||||
static void sde_hw_rotator_unmap_vaddr(struct sde_dbg_buf *dbgbuf)
|
||||
{
|
||||
if (dbgbuf->vaddr) {
|
||||
dma_buf_kunmap(dbgbuf->dmabuf, 0, dbgbuf->vaddr);
|
||||
dma_buf_vunmap(dbgbuf->dmabuf, dbgbuf->vaddr);
|
||||
dma_buf_end_cpu_access(dbgbuf->dmabuf, DMA_FROM_DEVICE);
|
||||
}
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户