Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86: intel: punit_ipc: Remove unused function

intel_punit_ipc_simple_command() was added in 2015 by
commit fdca4f16f57d ("platform:x86: add Intel P-Unit mailbox IPC driver")
but never used.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://lore.kernel.org/r/20241221234807.160473-1-linux@treblig.org
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Dr. David Alan Gilbert and committed by
Ilpo Järvinen
761bea18 a5ddea4f

-40
-7
arch/x86/include/asm/intel_punit_ipc.h
··· 80 80 81 81 #if IS_ENABLED(CONFIG_INTEL_PUNIT_IPC) 82 82 83 - int intel_punit_ipc_simple_command(int cmd, int para1, int para2); 84 83 int intel_punit_ipc_command(u32 cmd, u32 para1, u32 para2, u32 *in, u32 *out); 85 84 86 85 #else 87 - 88 - static inline int intel_punit_ipc_simple_command(int cmd, 89 - int para1, int para2) 90 - { 91 - return -ENODEV; 92 - } 93 86 94 87 static inline int intel_punit_ipc_command(u32 cmd, u32 para1, u32 para2, 95 88 u32 *in, u32 *out)
-33
drivers/platform/x86/intel/punit_ipc.c
··· 131 131 } 132 132 133 133 /** 134 - * intel_punit_ipc_simple_command() - Simple IPC command 135 - * @cmd: IPC command code. 136 - * @para1: First 8bit parameter, set 0 if not used. 137 - * @para2: Second 8bit parameter, set 0 if not used. 138 - * 139 - * Send a IPC command to P-Unit when there is no data transaction 140 - * 141 - * Return: IPC error code or 0 on success. 142 - */ 143 - int intel_punit_ipc_simple_command(int cmd, int para1, int para2) 144 - { 145 - IPC_DEV *ipcdev = punit_ipcdev; 146 - IPC_TYPE type; 147 - u32 val; 148 - int ret; 149 - 150 - mutex_lock(&ipcdev->lock); 151 - 152 - reinit_completion(&ipcdev->cmd_complete); 153 - type = (cmd & IPC_PUNIT_CMD_TYPE_MASK) >> IPC_TYPE_OFFSET; 154 - 155 - val = cmd & ~IPC_PUNIT_CMD_TYPE_MASK; 156 - val |= CMD_RUN | para2 << CMD_PARA2_SHIFT | para1 << CMD_PARA1_SHIFT; 157 - ipc_write_cmd(ipcdev, type, val); 158 - ret = intel_punit_ipc_check_status(ipcdev, type); 159 - 160 - mutex_unlock(&ipcdev->lock); 161 - 162 - return ret; 163 - } 164 - EXPORT_SYMBOL(intel_punit_ipc_simple_command); 165 - 166 - /** 167 134 * intel_punit_ipc_command() - IPC command with data and pointers 168 135 * @cmd: IPC command code. 169 136 * @para1: First 8bit parameter, set 0 if not used.