Miscellaneous MSM fixes
Subsystems (3)
cover Miscellaneous MSM fixes
Here's a small collection of MSM patches I have lying around. The first removes a useless file and hook that nobody is using. The second marks some functions static in clock-pcom.c since they aren't used outside the file and the last removes idle.c because it's dead code.
Stephen Boyd (3):
ARM: MSM: Remove msm_hw_reset_hook
ARM: MSM: clock-pcom: Mark functions static
ARM: MSM: Remove unused idle.c
arch/arm/mach-msm/Makefile | 2 +- arch/arm/mach-msm/board-mahimahi.c | 1 - arch/arm/mach-msm/board-sapphire.c | 1 - arch/arm/mach-msm/clock-pcom.c | 18 ++++++------ arch/arm/mach-msm/idle.c | 49 --------------------------------- arch/arm/mach-msm/include/mach/system.h | 19 ------------- arch/arm/mach-msm/proc_comm.c | 1 - arch/arm/mach-msm/smd.c | 7 ----- 8 files changed, 10 insertions(+), 88 deletions(-) delete mode 100644 arch/arm/mach-msm/idle.c delete mode 100644 arch/arm/mach-msm/include/mach/system.h
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 1/3 ARM: MSM: Remove msm_hw_reset_hook
This reset hook is never assigned and is dead code. Remove it so we have one less header file in the mach directory.
--- arch/arm/mach-msm/board-mahimahi.c | 1 - arch/arm/mach-msm/board-sapphire.c | 1 - arch/arm/mach-msm/include/mach/system.h | 19 ------------------- arch/arm/mach-msm/proc_comm.c | 1 - arch/arm/mach-msm/smd.c | 7 ------- 5 files changed, 29 deletions(-) delete mode 100644 arch/arm/mach-msm/include/mach/system.h
arch/arm/mach-msm/board-mahimahi.c +0 -1
@@ -30,7 +30,6 @@#include <mach/board.h> #include <mach/hardware.h> -#include <mach/system.h> #include "board-mahimahi.h" #include "devices.h"
arch/arm/mach-msm/board-sapphire.c +0 -1
@@ -27,7 +27,6 @@#include <asm/mach/arch.h> #include <asm/mach/map.h> #include <asm/mach/flash.h> -#include <mach/system.h> #include <mach/vreg.h> #include <mach/board.h>
arch/arm/mach-msm/include/mach/system.h deleted +0 -19
@@ -1,19 +0,0 @@ -/* arch/arm/mach-msm/include/mach/system.h -* -* Copyright (C) 2007 Google, Inc. -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -*/ - -/* low level hardware reset hook -- for example, hitting the -* PSHOLD line on the PMIC to hard reset the system -*/ -extern void (*msm_hw_reset_hook)(void );
arch/arm/mach-msm/proc_comm.c +0 -1
@@ -19,7 +19,6 @@#include <linux/io.h> #include <linux/spinlock.h> #include <mach/msm_iomap.h> -#include <mach/system.h> #include "proc_comm.h"
arch/arm/mach-msm/smd.c +0 -7
@@ -30,7 +30,6 @@#include <linux/delay.h> #include <mach/msm_smd.h> -#include <mach/system.h> #include "smd_private.h" #include "proc_comm.h"
@@ -39,8 +38,6 @@#define CONFIG_QDSP6 1#endif -void (*msm_hw_reset_hook)(void ); -#define MODULE_NAME "msm_smd"enum {
@@ -101,10 +98,6 @@ static void handle_modem_crash(void)pr_err ("ARM9 has CRASHED\n" );smd_diag (); -/* hard reboot if possible */ -if (msm_hw_reset_hook) -msm_hw_reset_hook (); -/* in this case the modem or watchdog should reboot us */ for (;;) ;
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 2/3 ARM: MSM: clock-pcom: Mark functions static
In reply to Stephen BoydThese functions are only used within clock-pcom.c, therefore mark them as static.
--- arch/arm/mach-msm/clock-pcom.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
arch/arm/mach-msm/clock-pcom.c +9 -9
@@ -25,7 +25,7 @@/* * glue for the proc_comm interface */ -int pc_clk_enable (unsigned id) +static int pc_clk_enable (unsigned id) {int rc =msm_proc_comm (PCOM_CLKCTL_RPC_ENABLE , &id,NULL );if (rc <0 )
@@ -34,7 +34,7 @@ int pc_clk_enable(unsigned id)return (int )id <0 ? -EINVAL :0 ; } -void pc_clk_disable (unsigned id) +static void pc_clk_disable (unsigned id) {msm_proc_comm (PCOM_CLKCTL_RPC_DISABLE , &id,NULL ); }
@@ -54,7 +54,7 @@ int pc_clk_reset(unsigned id, enum clk_reset_action action)return (int )id <0 ? -EINVAL :0 ; } -int pc_clk_set_rate (unsigned id,unsigned rate) +static int pc_clk_set_rate (unsigned id,unsigned rate) {/* The rate _might_ be rounded off to the nearest KHz value by the * remote function. So a return value of 0 doesn't necessarily mean
@@ -67,7 +67,7 @@ int pc_clk_set_rate(unsigned id, unsigned rate)return (int )id <0 ? -EINVAL :0 ; } -int pc_clk_set_min_rate (unsigned id,unsigned rate) +static int pc_clk_set_min_rate (unsigned id,unsigned rate) {int rc =msm_proc_comm (PCOM_CLKCTL_RPC_MIN_RATE , &id, &rate);if (rc <0 )
@@ -76,7 +76,7 @@ int pc_clk_set_min_rate(unsigned id, unsigned rate)return (int )id <0 ? -EINVAL :0 ; } -int pc_clk_set_max_rate (unsigned id,unsigned rate) +static int pc_clk_set_max_rate (unsigned id,unsigned rate) {int rc =msm_proc_comm (PCOM_CLKCTL_RPC_MAX_RATE , &id, &rate);if (rc <0 )
@@ -85,7 +85,7 @@ int pc_clk_set_max_rate(unsigned id, unsigned rate)return (int )id <0 ? -EINVAL :0 ; } -int pc_clk_set_flags (unsigned id,unsigned flags) +static int pc_clk_set_flags (unsigned id,unsigned flags) {int rc =msm_proc_comm (PCOM_CLKCTL_RPC_SET_FLAGS , &id, &flags);if (rc <0 )
@@ -94,7 +94,7 @@ int pc_clk_set_flags(unsigned id, unsigned flags)return (int )id <0 ? -EINVAL :0 ; } -unsigned pc_clk_get_rate (unsigned id) +static unsigned pc_clk_get_rate (unsigned id) {if (msm_proc_comm (PCOM_CLKCTL_RPC_RATE , &id,NULL ))return 0 ;
@@ -102,7 +102,7 @@ unsigned pc_clk_get_rate(unsigned id)return id; } -unsigned pc_clk_is_enabled (unsigned id) +static unsigned pc_clk_is_enabled (unsigned id) {if (msm_proc_comm (PCOM_CLKCTL_RPC_ENABLED , &id,NULL ))return 0 ;
@@ -110,7 +110,7 @@ unsigned pc_clk_is_enabled(unsigned id)return id; } -long pc_clk_round_rate (unsigned id,unsigned rate) +static long pc_clk_round_rate (unsigned id,unsigned rate) {/* Not really supported; pc_clk_set_rate() does rounding on it's own. */
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
PATCH 3/3 ARM: MSM: Remove unused idle.c
In reply to Stephen BoydForcing arm_pm_idle to be msm_idle() doesn't make sense in configurations that don't have CONFIG_MSM7X00A_IDLE=y (i.e. any targets that aren't 7x00a). Furthermore, that config doesn't even exist, so this entire file is dead code. Just remove it so we can use the default idle support on MSM.
--- arch/arm/mach-msm/Makefile | 2 +- arch/arm/mach-msm/idle.c | 49 ---------------------------------------------- 2 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 arch/arm/mach-msm/idle.c
arch/arm/mach-msm/Makefile +1 -1
@@ -1,4 +1,4 @@ -obj-y += io.o idle.o timer.o +obj-y += io.o timer.o obj-y += clock.o obj-$(CONFIG_DEBUG_FS) += clock-debug.o
arch/arm/mach-msm/idle.c deleted +0 -49
49 lines not on this page · raw message
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.