disp: msm: enable SDE rotator driver configs for GKI

This change enables and exports configs to support SDE
offline rotator in GKI. It also removes unused ioctls
for rotator compilation with GKI config.

Change-Id: I7f67aec394f644478173dcfe9e3ff52fe9129615
Signed-off-by: Yashwanth <yvulapu@codeaurora.org>
This commit is contained in:
Yashwanth
2020-09-22 17:06:15 +05:30
parent 74dd4682cd
commit af9841fa44
7 changed files with 19 additions and 5 deletions

View File

@@ -50,6 +50,8 @@
#define SDE_ROT_TEST_MASK(id, tp) ((id << 4) | (tp << 1) | BIT(0))
#if defined(CONFIG_MSM_SDE_ROTATOR_EVTLOG_DEBUG) && \
defined(CONFIG_DEBUG_FS)
static DEFINE_SPINLOCK(sde_rot_xlock);
/*
@@ -1358,3 +1360,4 @@ void sde_rotator_destroy_debugfs(struct dentry *debugfs)
{
debugfs_remove_recursive(debugfs);
}
#endif

View File

@@ -2844,7 +2844,6 @@ static const struct v4l2_ioctl_ops sde_rotator_ioctl_ops = {
.vidioc_g_parm = sde_rotator_g_parm,
.vidioc_s_parm = sde_rotator_s_parm,
.vidioc_default = sde_rotator_private_ioctl,
.vidioc_log_status = v4l2_ctrl_log_status,
.vidioc_subscribe_event = sde_rotator_ctrl_subscribe_event,
.vidioc_unsubscribe_event = sde_rotator_event_unsubscribe,
};

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
*/
#define pr_fmt(fmt) "%s: " fmt, __func__
@@ -16,6 +16,8 @@
#include "sde_rotator_r1.h"
#include "sde_rotator_r1_internal.h"
#if defined(CONFIG_MSM_SDE_ROTATOR_EVTLOG_DEBUG) && \
defined(CONFIG_DEBUG_FS)
/*
* sde_rotator_r1_create_debugfs - Setup rotator r1 debugfs directory structure.
* @rot_dev: Pointer to rotator device
@@ -34,3 +36,4 @@ int sde_rotator_r1_create_debugfs(struct sde_rot_mgr *mgr,
return 0;
}
#endif

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
*/
#define pr_fmt(fmt) "%s: " fmt, __func__
@@ -16,6 +16,8 @@
#include "sde_rotator_r3.h"
#include "sde_rotator_r3_internal.h"
#if defined(CONFIG_MSM_SDE_ROTATOR_EVTLOG_DEBUG) && \
defined(CONFIG_DEBUG_FS)
/*
* sde_rotator_r3_create_debugfs - Setup rotator r3 debugfs directory structure.
* @rot_dev: Pointer to rotator device
@@ -68,3 +70,4 @@ int sde_rotator_r3_create_debugfs(struct sde_rot_mgr *mgr,
return 0;
}
#endif

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
*/
#define pr_fmt(fmt) "%s: " fmt, __func__
@@ -148,7 +148,7 @@ static void sde_rot_fence_release(struct dma_fence *fence)
list_del(&f->fence_list);
spin_unlock_irqrestore(fence->lock, flags);
sde_rotator_put_timeline(to_sde_rot_timeline(fence));
kfree_rcu(f, base.rcu);
kfree(f);
}
static void sde_rot_fence_value_str(struct dma_fence *fence, char *str,