msm: camera: cdm: Removing dead code
This change removes unused variables in CDM driver. CRs-Fixed: 3394193 Change-Id: I21b1b8c5ad3483b0883d5fb09e48f5156f0d8b12 Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
This commit is contained in:

committed by
Camera Software Integration

parent
51c72321ae
commit
97b61780f6
@@ -1,7 +1,7 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
||||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
* Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
@@ -335,12 +335,8 @@ void cam_cdm_notify_clients(struct cam_hw_info *cdm_hw,
|
|||||||
|
|
||||||
static int cam_cdm_stream_handle_init(void *hw_priv, bool init)
|
static int cam_cdm_stream_handle_init(void *hw_priv, bool init)
|
||||||
{
|
{
|
||||||
struct cam_hw_info *cdm_hw = hw_priv;
|
|
||||||
struct cam_cdm *core = NULL;
|
|
||||||
int rc = -EPERM;
|
int rc = -EPERM;
|
||||||
|
|
||||||
core = (struct cam_cdm *)cdm_hw->core_info;
|
|
||||||
|
|
||||||
if (init) {
|
if (init) {
|
||||||
rc = cam_hw_cdm_init(hw_priv, NULL, 0);
|
rc = cam_hw_cdm_init(hw_priv, NULL, 0);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
@@ -557,7 +553,6 @@ int cam_cdm_process_cmd(void *hw_priv,
|
|||||||
uint32_t cmd, void *cmd_args, uint32_t arg_size)
|
uint32_t cmd, void *cmd_args, uint32_t arg_size)
|
||||||
{
|
{
|
||||||
struct cam_hw_info *cdm_hw = hw_priv;
|
struct cam_hw_info *cdm_hw = hw_priv;
|
||||||
struct cam_hw_soc_info *soc_data = NULL;
|
|
||||||
struct cam_cdm *core = NULL;
|
struct cam_cdm *core = NULL;
|
||||||
int rc = -EINVAL;
|
int rc = -EINVAL;
|
||||||
|
|
||||||
@@ -565,7 +560,6 @@ int cam_cdm_process_cmd(void *hw_priv,
|
|||||||
(cmd >= CAM_CDM_HW_INTF_CMD_INVALID))
|
(cmd >= CAM_CDM_HW_INTF_CMD_INVALID))
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
soc_data = &cdm_hw->soc_info;
|
|
||||||
core = (struct cam_cdm *)cdm_hw->core_info;
|
core = (struct cam_cdm *)cdm_hw->core_info;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -890,7 +884,7 @@ int cam_cdm_process_cmd(void *hw_priv,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = cam_hw_cdm_handle_error(cdm_hw, *handle);
|
rc = cam_hw_cdm_handle_error_info(cdm_hw, *handle);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
CAM_ERR(CAM_CDM,
|
CAM_ERR(CAM_CDM,
|
||||||
"CDM HW handle error failed for handle 0x%x rc = %d",
|
"CDM HW handle error failed for handle 0x%x rc = %d",
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
||||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _CAM_CDM_CORE_COMMON_H_
|
#ifndef _CAM_CDM_CORE_COMMON_H_
|
||||||
@@ -54,8 +54,8 @@ int cam_hw_cdm_submit_bl(struct cam_hw_info *cdm_hw,
|
|||||||
struct cam_cdm_client *client);
|
struct cam_cdm_client *client);
|
||||||
int cam_hw_cdm_reset_hw(struct cam_hw_info *cdm_hw, uint32_t handle);
|
int cam_hw_cdm_reset_hw(struct cam_hw_info *cdm_hw, uint32_t handle);
|
||||||
int cam_hw_cdm_flush_hw(struct cam_hw_info *cdm_hw, uint32_t handle);
|
int cam_hw_cdm_flush_hw(struct cam_hw_info *cdm_hw, uint32_t handle);
|
||||||
int cam_hw_cdm_handle_error(struct cam_hw_info *cdm_hw, uint32_t handle);
|
|
||||||
int cam_hw_cdm_hang_detect(struct cam_hw_info *cdm_hw, uint32_t handle);
|
int cam_hw_cdm_hang_detect(struct cam_hw_info *cdm_hw, uint32_t handle);
|
||||||
|
int cam_hw_cdm_handle_error_info(struct cam_hw_info *cdm_hw, uint32_t handle);
|
||||||
struct cam_cdm_bl_cb_request_entry *cam_cdm_find_request_by_bl_tag(
|
struct cam_cdm_bl_cb_request_entry *cam_cdm_find_request_by_bl_tag(
|
||||||
uint32_t tag, struct list_head *bl_list);
|
uint32_t tag, struct list_head *bl_list);
|
||||||
void cam_cdm_notify_clients(struct cam_hw_info *cdm_hw,
|
void cam_cdm_notify_clients(struct cam_hw_info *cdm_hw,
|
||||||
|
@@ -1116,7 +1116,6 @@ int cam_hw_cdm_submit_bl(struct cam_hw_info *cdm_hw,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = 0;
|
|
||||||
hw_vaddr_ptr = (dma_addr_t)cdm_cmd->cmd[i].bl_addr.hw_iova;
|
hw_vaddr_ptr = (dma_addr_t)cdm_cmd->cmd[i].bl_addr.hw_iova;
|
||||||
len = cdm_cmd->cmd[i].len + cdm_cmd->cmd[i].offset;
|
len = cdm_cmd->cmd[i].len + cdm_cmd->cmd[i].offset;
|
||||||
} else {
|
} else {
|
||||||
@@ -1862,20 +1861,6 @@ int cam_hw_cdm_flush_hw(struct cam_hw_info *cdm_hw, uint32_t handle)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cam_hw_cdm_handle_error(
|
|
||||||
struct cam_hw_info *cdm_hw,
|
|
||||||
uint32_t handle)
|
|
||||||
{
|
|
||||||
struct cam_cdm *cdm_core = NULL;
|
|
||||||
int rc = 0;
|
|
||||||
|
|
||||||
cdm_core = (struct cam_cdm *)cdm_hw->core_info;
|
|
||||||
|
|
||||||
rc = cam_hw_cdm_handle_error_info(cdm_hw, handle);
|
|
||||||
|
|
||||||
return rc;
|
|
||||||
}
|
|
||||||
|
|
||||||
int cam_hw_cdm_hang_detect(
|
int cam_hw_cdm_hang_detect(
|
||||||
struct cam_hw_info *cdm_hw,
|
struct cam_hw_info *cdm_hw,
|
||||||
uint32_t handle)
|
uint32_t handle)
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
||||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
* Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
@@ -607,11 +607,9 @@ int cam_cdm_util_cmd_buf_write(void __iomem **current_device_base,
|
|||||||
uint32_t base_array_size, uint8_t bl_tag)
|
uint32_t base_array_size, uint8_t bl_tag)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
uint32_t cdm_cmd_type = 0, total_cmd_buf_size = 0;
|
uint32_t cdm_cmd_type = 0;
|
||||||
uint32_t used_bytes = 0;
|
uint32_t used_bytes = 0;
|
||||||
|
|
||||||
total_cmd_buf_size = cmd_buf_size;
|
|
||||||
|
|
||||||
while (cmd_buf_size > 0) {
|
while (cmd_buf_size > 0) {
|
||||||
CAM_DBG(CAM_CDM, "cmd data=%x", *cmd_buf);
|
CAM_DBG(CAM_CDM, "cmd data=%x", *cmd_buf);
|
||||||
cdm_cmd_type = (*cmd_buf >> CAM_CDM_COMMAND_OFFSET);
|
cdm_cmd_type = (*cmd_buf >> CAM_CDM_COMMAND_OFFSET);
|
||||||
@@ -847,8 +845,8 @@ static long cam_cdm_util_dump_change_base_cmd(uint32_t *cmd_buf_addr,
|
|||||||
temp_ptr += CDMCmdHeaderSizes[CAM_CDM_CMD_CHANGE_BASE];
|
temp_ptr += CDMCmdHeaderSizes[CAM_CDM_CMD_CHANGE_BASE];
|
||||||
ret += CDMCmdHeaderSizes[CAM_CDM_CMD_CHANGE_BASE];
|
ret += CDMCmdHeaderSizes[CAM_CDM_CMD_CHANGE_BASE];
|
||||||
|
|
||||||
CAM_INFO(CAM_CDM, "CHANGE_BASE: 0x%X",
|
CAM_INFO(CAM_CDM, "CHANGE_BASE: 0x%X, curr cmd addr: %pK",
|
||||||
p_cbase_cmd->base);
|
p_cbase_cmd->base, temp_ptr);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user