Skip to contentSkip to conversation

media: atomisp: Remove unused timed controller code

PATCH In review Abhishek Chaulagain 2 participants 2 messages Nov 23 – Nov 24

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: atomisp: Remove unused timed controller code

The timed controller HAL module - timed_ctrl_snd_commnd(), timed_ctrl_snd_sp_commnd(), timed_ctrl_snd_gpio_commnd() and the inline timed_ctrl_reg_store() helper they used - has no callers anywhere in the tree. The only remaining reference was a stale #include in sh_css.c that pulled in none of its symbols.

Remove the dead source file, its public/private/local/global headers and the timed_controller_defs.h definitions header (included only by this module), drop the object from the Makefile, and delete the unused include from sh_css.c.

The timed_ctrl device identifiers (timed_ctrl_ID_t, TIMED_CTRL0_ID, N_TIMED_CTRL_ID, TIMED_CTRL_BASE) live in the shared system_global.h / system_local.* enumerations and are left untouched.

No functional change intended.

---
 drivers/staging/media/atomisp/Makefile        |  1 -
 .../pci/hive_isp_css_common/host/timed_ctrl.c | 66 -------------------
 .../host/timed_ctrl_local.h                   | 12 ----
 .../host/timed_ctrl_private.h                 | 26 --------
 .../hive_isp_css_common/timed_ctrl_global.h   | 46 -------------
 .../host/timed_ctrl_public.h                  | 51 --------------
 .../pci/hive_isp_css_include/timed_ctrl.h     | 37 -----------
 drivers/staging/media/atomisp/pci/sh_css.c    |  1 -
 .../media/atomisp/pci/timed_controller_defs.h | 14 ----
 9 files changed, 254 deletions(-)
 delete mode 100644 drivers/staging/media/atomisp/pci/hive_isp_css_common/host/timed_ctrl.c
 delete mode 100644 drivers/staging/media/atomisp/pci/hive_isp_css_common/host/timed_ctrl_local.h
 delete mode 100644 drivers/staging/media/atomisp/pci/hive_isp_css_common/host/timed_ctrl_private.h
 delete mode 100644 drivers/staging/media/atomisp/pci/hive_isp_css_common/timed_ctrl_global.h
 delete mode 100644 drivers/staging/media/atomisp/pci/hive_isp_css_include/host/timed_ctrl_public.h
 delete mode 100644 drivers/staging/media/atomisp/pci/hive_isp_css_include/timed_ctrl.h
 delete mode 100644 drivers/staging/media/atomisp/pci/timed_controller_defs.h
drivers/staging/media/atomisp/Makefile +0 -1
index 1d0fbe220..2680e40d9 100644
@@ -145,7 +145,6 @@ atomisp-objs += \
 	pci/hive_isp_css_common/host/isp.o \
 	pci/hive_isp_css_common/host/mmu.o \
 	pci/hive_isp_css_common/host/sp.o \
-	pci/hive_isp_css_common/host/timed_ctrl.o \
 	pci/hive_isp_css_common/host/vmem.o \
 	pci/hive_isp_css_shared/host/tag.o \
 	pci/system_local.o \
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/timed_ctrl.c deleted +0 -66

66 lines not on this page · raw message

drivers/staging/media/atomisp/pci/hive_isp_css_common/host/timed_ctrl_local.h deleted +0 -12
deleted file mode 100644
index bf97f272a..000000000
@@ -1,12 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Support for Intel Camera Imaging ISP subsystem.
- * Copyright (c) 2010-2015, Intel Corporation.
- */
-
-#ifndef __TIMED_CTRL_LOCAL_H_INCLUDED__
-#define __TIMED_CTRL_LOCAL_H_INCLUDED__
-
-#include "timed_ctrl_global.h"
-
-#endif /* __TIMED_CTRL_LOCAL_H_INCLUDED__ */
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/timed_ctrl_private.h deleted +0 -26
deleted file mode 100644
index 7b90b4cf0..000000000
@@ -1,26 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Support for Intel Camera Imaging ISP subsystem.
- * Copyright (c) 2010-2015, Intel Corporation.
- */
-
-#ifndef __TIMED_CTRL_PRIVATE_H_INCLUDED__
-#define __TIMED_CTRL_PRIVATE_H_INCLUDED__
-
-#include "timed_ctrl_public.h"
-
-#include "device_access.h"
-
-#include "assert_support.h"
-
-STORAGE_CLASS_TIMED_CTRL_C void timed_ctrl_reg_store(
-    const timed_ctrl_ID_t	ID,
-    const unsigned int		reg,
-    const hrt_data			value)
-{
-	OP___assert(ID < N_TIMED_CTRL_ID);
-	OP___assert(TIMED_CTRL_BASE[ID] != (hrt_address) - 1);
-	ia_css_device_store_uint32(TIMED_CTRL_BASE[ID] + reg * sizeof(hrt_data), value);
-}
-
-#endif /* __GP_DEVICE_PRIVATE_H_INCLUDED__ */
drivers/staging/media/atomisp/pci/hive_isp_css_common/timed_ctrl_global.h deleted +0 -46

46 lines not on this page · raw message

drivers/staging/media/atomisp/pci/hive_isp_css_include/host/timed_ctrl_public.h deleted +0 -51

51 lines not on this page · raw message

drivers/staging/media/atomisp/pci/hive_isp_css_include/timed_ctrl.h deleted +0 -37
deleted file mode 100644
index b8f48b3c9..000000000
@@ -1,37 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Support for Intel Camera Imaging ISP subsystem.
- * Copyright (c) 2015, Intel Corporation.
- */
-
-#ifndef __TIMED_CTRL_H_INCLUDED__
-#define __TIMED_CTRL_H_INCLUDED__
-
-/*
- * This file is included on every cell {SP,ISP,host} and on every system
- * that uses the input system device(s). It defines the API to DLI bridge
- *
- * System and cell specific interfaces and inline code are included
- * conditionally through Makefile path settings.
- *
- *  - .        system and cell agnostic interfaces, constants and identifiers
- *	- public:  system agnostic, cell specific interfaces
- *	- private: system dependent, cell specific interfaces & inline implementations
- *	- global:  system specific constants and identifiers
- *	- local:   system and cell specific constants and identifiers
- */
-
-#include "system_local.h"
-#include "timed_ctrl_local.h"
-
-#ifndef __INLINE_TIMED_CTRL__
-#define STORAGE_CLASS_TIMED_CTRL_H extern
-#define STORAGE_CLASS_TIMED_CTRL_C
-#include "timed_ctrl_public.h"
-#else  /* __INLINE_TIMED_CTRL__ */
-#define STORAGE_CLASS_TIMED_CTRL_H static inline
-#define STORAGE_CLASS_TIMED_CTRL_C static inline
-#include "timed_ctrl_private.h"
-#endif /* __INLINE_TIMED_CTRL__ */
-
-#endif /* __TIMED_CTRL_H_INCLUDED__ */
drivers/staging/media/atomisp/pci/sh_css.c +0 -1
index 4a182dc38..e3942362c 100644
@@ -60,7 +60,6 @@
 #include "gp_device.h"		/* gp_device_reg_store() */
 #include <gpio_global.h>
 #include <gpio_private.h>
-#include "timed_ctrl.h"
 #include "ia_css_inputfifo.h"
 #define WITH_PC_MONITORING  0
 
drivers/staging/media/atomisp/pci/timed_controller_defs.h deleted +0 -14
deleted file mode 100644
index 37a9226c6..000000000
@@ -1,14 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Support for Intel Camera Imaging ISP subsystem.
- * Copyright (c) 2015, Intel Corporation.
- */
-
-#ifndef _timed_controller_defs_h
-#define _timed_controller_defs_h
-
-#define _HRT_TIMED_CONTROLLER_CMD_REG_IDX 0
-
-#define _HRT_TIMED_CONTROLLER_REG_ALIGN 4
-
-#endif /* _timed_controller_defs_h */
Signature · 1 line
2.43.0
#1 lore raw
Quoted 6 lines · Abhishek Chaulagain

The timed controller HAL module - timed_ctrl_snd_commnd(), timed_ctrl_snd_sp_commnd(), timed_ctrl_snd_gpio_commnd() and the inline timed_ctrl_reg_store() helper they used - has no callers anywhere in the tree. The only remaining reference was a stale #include in sh_css.c that pulled in none of its symbols.

Quoted 8 lines

Remove the dead source file, its public/private/local/global headers and the timed_controller_defs.h definitions header (included only by this module), drop the object from the Makefile, and delete the unused include from sh_css.c.

The timed_ctrl device identifiers (timed_ctrl_ID_t, TIMED_CTRL0_ID, N_TIMED_CTRL_ID, TIMED_CTRL_BASE) live in the shared system_global.h / system_local.* enumerations and are left untouched.

Why?

Quoted 1 line

No functional change intended.

Signature · 2 lines
With Best Regards,
Andy Shevchenko