Skip to contentSkip to conversation

ARM: msm: Remove MSM7x00 support

PATCH In review David Brown 4 participants 21 messages Dec 1, 2011 – Dec 2, 2011

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

PATCH 1/3 ARM: msm: Remove MSM7x00 support

This target has been bitrotting for a while. The hardware is quite a bit different from the other MSM targets, making it hard to justify maintaining the support in the kernel. This SoC was dropped from Google's Android kernel a while back.

---
 arch/arm/mach-msm/Kconfig                       |   29 +--
 arch/arm/mach-msm/Makefile                      |    4 -
 arch/arm/mach-msm/acpuclock-arm11.c             |  525 -----------------------
 arch/arm/mach-msm/acpuclock.h                   |   32 --
 arch/arm/mach-msm/board-halibut.c               |  102 -----
 arch/arm/mach-msm/board-trout-gpio.c            |  233 ----------
 arch/arm/mach-msm/board-trout-mmc.c             |  185 --------
 arch/arm/mach-msm/board-trout-panel.c           |  296 -------------
 arch/arm/mach-msm/board-trout.c                 |  102 -----
 arch/arm/mach-msm/board-trout.h                 |  162 -------
 arch/arm/mach-msm/idle.S                        |   13 -
 arch/arm/mach-msm/include/mach/irqs-7x00.h      |   75 ----
 arch/arm/mach-msm/include/mach/irqs.h           |    2 -
 arch/arm/mach-msm/include/mach/msm_iomap-7x00.h |  127 ------
 arch/arm/mach-msm/include/mach/msm_iomap.h      |    2 -
 arch/arm/mach-msm/io.c                          |   34 --
 arch/arm/mach-msm/irq.c                         |  151 -------
 arch/arm/mach-msm/smd_private.h                 |   39 --
 arch/arm/mach-msm/timer.c                       |    5 +-
 19 files changed, 2 insertions(+), 2116 deletions(-)
 delete mode 100644 arch/arm/mach-msm/acpuclock-arm11.c
 delete mode 100644 arch/arm/mach-msm/acpuclock.h
 delete mode 100644 arch/arm/mach-msm/board-halibut.c
 delete mode 100644 arch/arm/mach-msm/board-trout-gpio.c
 delete mode 100644 arch/arm/mach-msm/board-trout-mmc.c
 delete mode 100644 arch/arm/mach-msm/board-trout-panel.c
 delete mode 100644 arch/arm/mach-msm/board-trout.c
 delete mode 100644 arch/arm/mach-msm/board-trout.h
 delete mode 100644 arch/arm/mach-msm/include/mach/irqs-7x00.h
 delete mode 100644 arch/arm/mach-msm/include/mach/msm_iomap-7x00.h
 delete mode 100644 arch/arm/mach-msm/irq.c
arch/arm/mach-msm/Kconfig +1 -28
index ebde97f..643a706 100644
@@ -2,18 +2,7 @@ if ARCH_MSM
 
 choice
 	prompt "Qualcomm MSM SoC Type"
-	default ARCH_MSM7X00A
-
-config ARCH_MSM7X00A
-	bool "MSM7x00A / MSM7x01A"
-	select MACH_TROUT if !MACH_HALIBUT
-	select ARCH_MSM_ARM11
-	select MSM_SMD
-	select MSM_SMD_PKG3
-	select CPU_V6
-	select GPIO_MSM_V1
-	select MSM_PROC_COMM
-	select HAS_MSM_DEBUG_UART_PHYS
+	default ARCH_QSD8X50
 
 config ARCH_MSM7X30
 	bool "MSM7x30"
@@ -68,8 +57,6 @@ config MSM_SOC_REV_A
 config  ARCH_MSM_SCORPIONMP
 	bool
 
-config  ARCH_MSM_ARM11
-	bool
 config  ARCH_MSM_SCORPION
 	bool
 
@@ -81,20 +68,6 @@ config  MSM_VIC
 
 menu "Qualcomm MSM Board Type"
 
-config MACH_HALIBUT
-	depends on ARCH_MSM
-	depends on ARCH_MSM7X00A
-	bool "Halibut Board (QCT SURF7201A)"
-	help
-	  Support for the Qualcomm SURF7201A eval board.
-
-config MACH_TROUT
-	depends on ARCH_MSM
-	depends on ARCH_MSM7X00A
-	bool "HTC Dream (aka trout)"
-	help
-	  Support for the HTC Dream, T-Mobile G1, Android ADP1 devices.
-
 config MACH_MSM7X30_SURF
 	depends on ARCH_MSM7X30
 	bool "MSM7x30 SURF"
arch/arm/mach-msm/Makefile +0 -4
index 4ad3969..4a5dfb8 100644
@@ -5,7 +5,6 @@ obj-$(CONFIG_DEBUG_FS) += clock-debug.o
 obj-$(CONFIG_MSM_VIC) += irq-vic.o
 obj-$(CONFIG_MSM_IOMMU) += devices-iommu.o
 
-obj-$(CONFIG_ARCH_MSM7X00A) += dma.o irq.o acpuclock-arm11.o
 obj-$(CONFIG_ARCH_MSM7X30) += dma.o
 obj-$(CONFIG_ARCH_QSD8X50) += dma.o sirc.o
 
@@ -20,9 +19,6 @@ CFLAGS_scm.o :=$(call as-instr,.arch_extension sec,-DREQUIRES_SEC=1)
 obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
 obj-$(CONFIG_SMP) += headsmp.o platsmp.o
 
-obj-$(CONFIG_MACH_TROUT) += board-trout.o board-trout-gpio.o board-trout-mmc.o devices-msm7x00.o
-obj-$(CONFIG_MACH_TROUT) += board-trout.o board-trout-gpio.o board-trout-mmc.o board-trout-panel.o devices-msm7x00.o
-obj-$(CONFIG_MACH_HALIBUT) += board-halibut.o devices-msm7x00.o
 obj-$(CONFIG_ARCH_MSM7X30) += board-msm7x30.o devices-msm7x30.o
 obj-$(CONFIG_ARCH_QSD8X50) += board-qsd8x50.o devices-qsd8x50.o
 obj-$(CONFIG_ARCH_MSM8X60) += board-msm8x60.o
arch/arm/mach-msm/acpuclock-arm11.c deleted +0 -525

525 lines not on this page · raw message

arch/arm/mach-msm/acpuclock.h deleted +0 -32
deleted file mode 100644
index 415de2e..0000000
@@ -1,32 +0,0 @@
-/* arch/arm/mach-msm/acpuclock.h
- *
- * MSM architecture clock driver header
- *
- * Copyright (C) 2007 Google, Inc.
- * Copyright (c) 2007 QUALCOMM Incorporated
- * Author: San Mehat <[email protected]>
- *
- * 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.
- *
- */
-
-#ifndef __ARCH_ARM_MACH_MSM_ACPUCLOCK_H
-#define __ARCH_ARM_MACH_MSM_ACPUCLOCK_H
-
-int acpuclk_set_rate(unsigned long rate, int for_power_collapse);
-unsigned long acpuclk_get_rate(void);
-uint32_t acpuclk_get_switch_time(void);
-unsigned long acpuclk_wait_for_irq(void);
-unsigned long acpuclk_power_collapse(void);
-unsigned long acpuclk_get_wfi_rate(void);
-
-
-#endif
-
arch/arm/mach-msm/board-halibut.c deleted +0 -102

102 lines not on this page · raw message

arch/arm/mach-msm/board-trout-gpio.c deleted +0 -233

233 lines not on this page · raw message

arch/arm/mach-msm/board-trout-mmc.c deleted +0 -185

185 lines not on this page · raw message

arch/arm/mach-msm/board-trout-panel.c deleted +0 -296

296 lines not on this page · raw message

arch/arm/mach-msm/board-trout.c deleted +0 -102

102 lines not on this page · raw message

arch/arm/mach-msm/board-trout.h deleted +0 -162

162 lines not on this page · raw message

arch/arm/mach-msm/idle.S +0 -13
index 6a94f05..d8e8027 100644
@@ -20,17 +20,4 @@
 #include <asm/assembler.h>
 
 ENTRY(arch_idle)
-#ifdef CONFIG_MSM7X00A_IDLE
-	mrc     p15, 0, r1, c1, c0, 0    /* read current CR    */
-	bic     r0, r1, #(1 << 2)        /* clear dcache bit   */
-	bic     r0, r0, #(1 << 12)       /* clear icache bit   */
-	mcr     p15, 0, r0, c1, c0, 0    /* disable d/i cache  */
-
-	mov     r0, #0                   /* prepare wfi value  */
-	mcr     p15, 0, r0, c7, c10, 0   /* flush the cache    */
-	mcr     p15, 0, r0, c7, c10, 4   /* memory barrier     */
-	mcr     p15, 0, r0, c7, c0, 4    /* wait for interrupt */
-
-	mcr     p15, 0, r1, c1, c0, 0    /* restore d/i cache  */
-#endif
 	mov     pc, lr
arch/arm/mach-msm/include/mach/irqs-7x00.h deleted +0 -75

75 lines not on this page · raw message

arch/arm/mach-msm/include/mach/irqs.h +0 -2
index 3cd78b1..4bfd614 100644
@@ -29,8 +29,6 @@
 #elif defined(CONFIG_ARCH_MSM8960)
 /* TODO: Make these not generic. */
 #include "irqs-8960.h"
-#elif defined(CONFIG_ARCH_MSM_ARM11)
-#include "irqs-7x00.h"
 #else
 #error "Unknown architecture specification"
 #endif
arch/arm/mach-msm/include/mach/msm_iomap-7x00.h deleted +0 -127

127 lines not on this page · raw message

arch/arm/mach-msm/include/mach/msm_iomap.h +0 -2
index 4ded152..f4027a6 100644
@@ -49,8 +49,6 @@
 #include "msm_iomap-8x50.h"
 #elif defined(CONFIG_ARCH_MSM8X60)
 #include "msm_iomap-8x60.h"
-#else
-#include "msm_iomap-7x00.h"
 #endif
 
 #include "msm_iomap-8960.h"
arch/arm/mach-msm/io.c +0 -34
index 8759ecf..45561d0 100644
@@ -38,40 +38,6 @@
 
 #define MSM_DEVICE(name) MSM_CHIP_DEVICE(name, MSM)
 
-#if defined(CONFIG_ARCH_MSM7X00A) || defined(CONFIG_ARCH_MSM7X27) \
-	|| defined(CONFIG_ARCH_MSM7X25)
-static struct map_desc msm_io_desc[] __initdata = {
-	MSM_DEVICE(VIC),
-	MSM_CHIP_DEVICE(CSR, MSM7X00),
-	MSM_DEVICE(DMOV),
-	MSM_CHIP_DEVICE(GPIO1, MSM7X00),
-	MSM_CHIP_DEVICE(GPIO2, MSM7X00),
-	MSM_DEVICE(CLK_CTL),
-#ifdef CONFIG_MSM_DEBUG_UART
-	MSM_DEVICE(DEBUG_UART),
-#endif
-#ifdef CONFIG_ARCH_MSM7X30
-	MSM_DEVICE(GCC),
-#endif
-	{
-		.virtual =  (unsigned long) MSM_SHARED_RAM_BASE,
-		.pfn = __phys_to_pfn(MSM_SHARED_RAM_PHYS),
-		.length =   MSM_SHARED_RAM_SIZE,
-		.type =     MT_DEVICE,
-	},
-};
-
-void __init msm_map_common_io(void)
-{
-	/* Make sure the peripheral register window is closed, since
-	 * we will use PTE flags (TEX[1]=1,B=0,C=1) to determine which
-	 * pages are peripheral interface or not.
-	 */
-	asm("mcr p15, 0, %0, c15, c2, 4" : : "r" (0));
-	iotable_init(msm_io_desc, ARRAY_SIZE(msm_io_desc));
-}
-#endif
-
 #ifdef CONFIG_ARCH_QSD8X50
 static struct map_desc qsd8x50_io_desc[] __initdata = {
 	MSM_DEVICE(VIC),
arch/arm/mach-msm/irq.c deleted +0 -151

151 lines not on this page · raw message

arch/arm/mach-msm/smd_private.h +0 -39
index 727bfe6..e66d9fa 100644
@@ -64,13 +64,6 @@ struct smem_shared {
 #define SMSM_V1_SIZE		(sizeof(unsigned) * 8)
 #define SMSM_V2_SIZE		(sizeof(unsigned) * 4)
 
-#ifdef CONFIG_MSM_SMD_PKG3
-struct smsm_interrupt_info {
-	uint32_t interrupt_mask;
-	uint32_t pending_interrupts;
-	uint32_t wakeup_reason;
-};
-#else
 #define DEM_MAX_PORT_NAME_LEN (20)
 struct msm_dem_slave_data {
 	uint32_t sleep_time;
@@ -85,7 +78,6 @@ struct msm_dem_slave_data {
 	char     smd_port_name[DEM_MAX_PORT_NAME_LEN];
 	uint32_t reserved2;
 };
-#endif
 
 #define SZ_DIAG_ERR_MSG 0xC8
 #define ID_DIAG_ERR_MSG SMEM_DIAG_ERR_MESSAGE
@@ -126,13 +118,6 @@ struct msm_dem_slave_data {
 #define SMSM_WKUP_REASON_ALARM	0x00000010
 #define SMSM_WKUP_REASON_RESET	0x00000020
 
-#ifdef CONFIG_ARCH_MSM7X00A
-enum smsm_state_item {
-	SMSM_STATE_APPS = 1,
-	SMSM_STATE_MODEM = 3,
-	SMSM_STATE_COUNT,
-};
-#else
 enum smsm_state_item {
 	SMSM_STATE_APPS,
 	SMSM_STATE_MODEM,
@@ -144,7 +129,6 @@ enum smsm_state_item {
 	SMSM_STATE_TIME_MASTER_DEM,
 	SMSM_STATE_COUNT,
 };
-#endif
 
 void *smem_alloc(unsigned id, unsigned size);
 int smsm_change_state(enum smsm_state_item item, uint32_t clear_mask, uint32_t set_mask);
@@ -335,28 +319,6 @@ uint32_t raw_smsm_get_state(enum smsm_state_item item);
 
 extern void msm_init_last_radio_log(struct module *);
 
-#ifdef CONFIG_MSM_SMD_PKG3
-/*
- * This allocator assumes an SMD Package v3 which only exists on
- * MSM7x00 SoC's.
- */
-static inline int _smd_alloc_channel(struct smd_channel *ch)
-{
-	struct smd_shared_v1 *shared1;
-
-	shared1 = smem_alloc(ID_SMD_CHANNELS + ch->n, sizeof(*shared1));
-	if (!shared1) {
-		pr_err("smd_alloc_channel() cid %d does not exist\n", ch->n);
-		return -1;
-	}
-	ch->send = &shared1->ch0;
-	ch->recv = &shared1->ch1;
-	ch->send_data = shared1->data0;
-	ch->recv_data = shared1->data1;
-	ch->fifo_size = SMD_BUF_SIZE;
-	return 0;
-}
-#else
 /*
  * This allocator assumes an SMD Package v4, the most common
  * and the default.
@@ -385,7 +347,6 @@ static inline int _smd_alloc_channel(struct smd_channel *ch)
 	ch->fifo_size = buffer_sz;
 	return 0;
 }
-#endif /* CONFIG_MSM_SMD_PKG3 */
 
 #if defined(CONFIG_ARCH_MSM7X30)
 static inline void msm_a2m_int(uint32_t irq)
arch/arm/mach-msm/timer.c +1 -4
index afeeca5..04770f3 100644
@@ -203,10 +203,7 @@ static void __init msm_timer_init(void)
 	int res;
 	int global_offset = 0;
 
-	if (cpu_is_msm7x01()) {
-		msm_clocks[MSM_CLOCK_GPT].regbase = MSM_CSR_BASE;
-		msm_clocks[MSM_CLOCK_DGT].regbase = MSM_CSR_BASE + 0x10;
-	} else if (cpu_is_msm7x30()) {
+	if (cpu_is_msm7x30()) {
 		msm_clocks[MSM_CLOCK_GPT].regbase = MSM_CSR_BASE + 0x04;
 		msm_clocks[MSM_CLOCK_DGT].regbase = MSM_CSR_BASE + 0x24;
 	} else if (cpu_is_qsd8x50()) {
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.
#1 lore raw

PATCH 2/3 gpio_msm: remove support for MSM7x01

Remove support for the device that has been removed from the SOC support.

---
 drivers/gpio/gpio-msm-v1.c |   81 +-------------------------------------------
 1 files changed, 1 insertions(+), 80 deletions(-)
drivers/gpio/gpio-msm-v1.c +1 -80
index 52a4d42..dcd05be 100644
@@ -40,73 +40,6 @@
 #define MSM_GPIO2_SHADOW_REG(off) (MSM_GPIO2_BASE + 0xC00 + (off))
 
 /*
- * MSM7X00 registers
- */
-/* output value */
-#define MSM7X00_GPIO_OUT_0	MSM_GPIO1_SHADOW_REG(0x00)  /* gpio  15-0  */
-#define MSM7X00_GPIO_OUT_1	MSM_GPIO2_SHADOW_REG(0x00)  /* gpio  42-16 */
-#define MSM7X00_GPIO_OUT_2	MSM_GPIO1_SHADOW_REG(0x04)  /* gpio  67-43 */
-#define MSM7X00_GPIO_OUT_3	MSM_GPIO1_SHADOW_REG(0x08)  /* gpio  94-68 */
-#define MSM7X00_GPIO_OUT_4	MSM_GPIO1_SHADOW_REG(0x0C)  /* gpio 106-95 */
-#define MSM7X00_GPIO_OUT_5	MSM_GPIO1_SHADOW_REG(0x50)  /* gpio 107-121 */
-
-/* same pin map as above, output enable */
-#define MSM7X00_GPIO_OE_0	MSM_GPIO1_SHADOW_REG(0x10)
-#define MSM7X00_GPIO_OE_1	MSM_GPIO2_SHADOW_REG(0x08)
-#define MSM7X00_GPIO_OE_2	MSM_GPIO1_SHADOW_REG(0x14)
-#define MSM7X00_GPIO_OE_3	MSM_GPIO1_SHADOW_REG(0x18)
-#define MSM7X00_GPIO_OE_4	MSM_GPIO1_SHADOW_REG(0x1C)
-#define MSM7X00_GPIO_OE_5	MSM_GPIO1_SHADOW_REG(0x54)
-
-/* same pin map as above, input read */
-#define MSM7X00_GPIO_IN_0	MSM_GPIO1_SHADOW_REG(0x34)
-#define MSM7X00_GPIO_IN_1	MSM_GPIO2_SHADOW_REG(0x20)
-#define MSM7X00_GPIO_IN_2	MSM_GPIO1_SHADOW_REG(0x38)
-#define MSM7X00_GPIO_IN_3	MSM_GPIO1_SHADOW_REG(0x3C)
-#define MSM7X00_GPIO_IN_4	MSM_GPIO1_SHADOW_REG(0x40)
-#define MSM7X00_GPIO_IN_5	MSM_GPIO1_SHADOW_REG(0x44)
-
-/* same pin map as above, 1=edge 0=level interrup */
-#define MSM7X00_GPIO_INT_EDGE_0	MSM_GPIO1_SHADOW_REG(0x60)
-#define MSM7X00_GPIO_INT_EDGE_1	MSM_GPIO2_SHADOW_REG(0x50)
-#define MSM7X00_GPIO_INT_EDGE_2	MSM_GPIO1_SHADOW_REG(0x64)
-#define MSM7X00_GPIO_INT_EDGE_3	MSM_GPIO1_SHADOW_REG(0x68)
-#define MSM7X00_GPIO_INT_EDGE_4	MSM_GPIO1_SHADOW_REG(0x6C)
-#define MSM7X00_GPIO_INT_EDGE_5	MSM_GPIO1_SHADOW_REG(0xC0)
-
-/* same pin map as above, 1=positive 0=negative */
-#define MSM7X00_GPIO_INT_POS_0	MSM_GPIO1_SHADOW_REG(0x70)
-#define MSM7X00_GPIO_INT_POS_1	MSM_GPIO2_SHADOW_REG(0x58)
-#define MSM7X00_GPIO_INT_POS_2	MSM_GPIO1_SHADOW_REG(0x74)
-#define MSM7X00_GPIO_INT_POS_3	MSM_GPIO1_SHADOW_REG(0x78)
-#define MSM7X00_GPIO_INT_POS_4	MSM_GPIO1_SHADOW_REG(0x7C)
-#define MSM7X00_GPIO_INT_POS_5	MSM_GPIO1_SHADOW_REG(0xBC)
-
-/* same pin map as above, interrupt enable */
-#define MSM7X00_GPIO_INT_EN_0	MSM_GPIO1_SHADOW_REG(0x80)
-#define MSM7X00_GPIO_INT_EN_1	MSM_GPIO2_SHADOW_REG(0x60)
-#define MSM7X00_GPIO_INT_EN_2	MSM_GPIO1_SHADOW_REG(0x84)
-#define MSM7X00_GPIO_INT_EN_3	MSM_GPIO1_SHADOW_REG(0x88)
-#define MSM7X00_GPIO_INT_EN_4	MSM_GPIO1_SHADOW_REG(0x8C)
-#define MSM7X00_GPIO_INT_EN_5	MSM_GPIO1_SHADOW_REG(0xB8)
-
-/* same pin map as above, write 1 to clear interrupt */
-#define MSM7X00_GPIO_INT_CLEAR_0	MSM_GPIO1_SHADOW_REG(0x90)
-#define MSM7X00_GPIO_INT_CLEAR_1	MSM_GPIO2_SHADOW_REG(0x68)
-#define MSM7X00_GPIO_INT_CLEAR_2	MSM_GPIO1_SHADOW_REG(0x94)
-#define MSM7X00_GPIO_INT_CLEAR_3	MSM_GPIO1_SHADOW_REG(0x98)
-#define MSM7X00_GPIO_INT_CLEAR_4	MSM_GPIO1_SHADOW_REG(0x9C)
-#define MSM7X00_GPIO_INT_CLEAR_5	MSM_GPIO1_SHADOW_REG(0xB4)
-
-/* same pin map as above, 1=interrupt pending */
-#define MSM7X00_GPIO_INT_STATUS_0	MSM_GPIO1_SHADOW_REG(0xA0)
-#define MSM7X00_GPIO_INT_STATUS_1	MSM_GPIO2_SHADOW_REG(0x70)
-#define MSM7X00_GPIO_INT_STATUS_2	MSM_GPIO1_SHADOW_REG(0xA4)
-#define MSM7X00_GPIO_INT_STATUS_3	MSM_GPIO1_SHADOW_REG(0xA8)
-#define MSM7X00_GPIO_INT_STATUS_4	MSM_GPIO1_SHADOW_REG(0xAC)
-#define MSM7X00_GPIO_INT_STATUS_5	MSM_GPIO1_SHADOW_REG(0xB0)
-
-/*
  * QSD8X50 registers
  */
 /* output value */
@@ -441,15 +374,6 @@ static void msm_gpio_free(struct gpio_chip *chip, unsigned offset)
 static struct msm_gpio_chip *msm_gpio_chips;
 static int msm_gpio_count;
 
-static struct msm_gpio_chip msm_gpio_chips_msm7x01[] = {
-	MSM_GPIO_BANK(MSM7X00, 0,   0,  15),
-	MSM_GPIO_BANK(MSM7X00, 1,  16,  42),
-	MSM_GPIO_BANK(MSM7X00, 2,  43,  67),
-	MSM_GPIO_BANK(MSM7X00, 3,  68,  94),
-	MSM_GPIO_BANK(MSM7X00, 4,  95, 106),
-	MSM_GPIO_BANK(MSM7X00, 5, 107, 121),
-};
-
 static struct msm_gpio_chip msm_gpio_chips_msm7x30[] = {
 	MSM_GPIO_BANK(MSM7X30, 0,   0,  15),
 	MSM_GPIO_BANK(MSM7X30, 1,  16,  43),
@@ -596,10 +520,7 @@ static int __init msm_init_gpio(void)
 {
 	int i, j = 0;
 
-	if (cpu_is_msm7x01()) {
-		msm_gpio_chips = msm_gpio_chips_msm7x01;
-		msm_gpio_count = ARRAY_SIZE(msm_gpio_chips_msm7x01);
-	} else if (cpu_is_msm7x30()) {
+	if (cpu_is_msm7x30()) {
 		msm_gpio_chips = msm_gpio_chips_msm7x30;
 		msm_gpio_count = ARRAY_SIZE(msm_gpio_chips_msm7x30);
 	} else if (cpu_is_qsd8x50()) {
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.
#2 lore raw

PATCH 3/3 ARM: msm: Remove cpu_is test for msm7201 soc

In reply to David Brown

Now that the last bits of this target are gone, the CPU test is no longer useful.

---
 arch/arm/mach-msm/include/mach/cpu.h |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
arch/arm/mach-msm/include/mach/cpu.h +0 -6
index a9481b0..e5e7fb5 100644
@@ -20,17 +20,11 @@
 
 /* TODO: For now, only one CPU can be compiled at a time. */
 
-#define cpu_is_msm7x01()	0
 #define cpu_is_msm7x30()	0
 #define cpu_is_qsd8x50()	0
 #define cpu_is_msm8x60()	0
 #define cpu_is_msm8960()	0
 
-#ifdef CONFIG_ARCH_MSM7X00A
-# undef cpu_is_msm7x01
-# define cpu_is_msm7x01()	1
-#endif
-
 #ifdef CONFIG_ARCH_MSM7X30
 # undef cpu_is_msm7x30
 # define cpu_is_msm7x30()	1
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.
#3 lore raw
In reply to David Brown

arch/arm/mach-msm/Kconfig if ARCH_MSM · line 16

Quoted 12 lines · David Brown
arch/arm/mach-msm/Kconfig +0 -12
-       default ARCH_MSM7X00A
-
-config ARCH_MSM7X00A
-       bool "MSM7x00A / MSM7x01A"
-       select MACH_TROUT if !MACH_HALIBUT
-       select ARCH_MSM_ARM11
-       select MSM_SMD
-       select MSM_SMD_PKG3
-       select CPU_V6
-       select GPIO_MSM_V1
-       select MSM_PROC_COMM
-       select HAS_MSM_DEBUG_UART_PHYS 

Your trying to drop G1 support ? I have a G1 sitting on my desk, and I know many other people working on the kernel have G1's ..

Daniel

#4 lore raw
Quoted 17 lines · Daniel Walker

arch/arm/mach-msm/Kconfig if ARCH_MSM · line 16

Quoted 12 lines · David Brown
arch/arm/mach-msm/Kconfig +0 -12
-       default ARCH_MSM7X00A
-
-config ARCH_MSM7X00A
-       bool "MSM7x00A / MSM7x01A"
-       select MACH_TROUT if !MACH_HALIBUT
-       select ARCH_MSM_ARM11
-       select MSM_SMD
-       select MSM_SMD_PKG3
-       select CPU_V6
-       select GPIO_MSM_V1
-       select MSM_PROC_COMM
-       select HAS_MSM_DEBUG_UART_PHYS 

Your trying to drop G1 support ? I have a G1 sitting on my desk, and I know many other people working on the kernel have G1's ..

If someone is willing to step up and make it work, then we can keep it around. My only G1 is fried, so I have no way to do anything other than keep it compiling.

David

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.
#5 lore raw
Quoted 19 lines · David Brown
Quoted 17 lines · Daniel Walker

arch/arm/mach-msm/Kconfig if ARCH_MSM · line 16

Quoted 12 lines · David Brown
arch/arm/mach-msm/Kconfig +0 -12
-       default ARCH_MSM7X00A
-
-config ARCH_MSM7X00A
-       bool "MSM7x00A / MSM7x01A"
-       select MACH_TROUT if !MACH_HALIBUT
-       select ARCH_MSM_ARM11
-       select MSM_SMD
-       select MSM_SMD_PKG3
-       select CPU_V6
-       select GPIO_MSM_V1
-       select MSM_PROC_COMM
-       select HAS_MSM_DEBUG_UART_PHYS 

Your trying to drop G1 support ? I have a G1 sitting on my desk, and I know many other people working on the kernel have G1's ..

Quoted 3 lines

If someone is willing to step up and make it work, then we can keep it around. My only G1 is fried, so I have no way to do anything other than keep it compiling.

Unfortunately, You can't remove it regardless of whether or not you have one to test on.. Your job is to do the best you can to keep it working and maintained. If you don't have one then you can't boot test but you still have to your best to keep it as close to working as possible.

Daniel

#6 lore raw
Quoted 8 lines · Daniel Walker
Quoted 3 lines

If someone is willing to step up and make it work, then we can keep it around. My only G1 is fried, so I have no way to do anything other than keep it compiling.

Unfortunately, You can't remove it regardless of whether or not you have one to test on.. Your job is to do the best you can to keep it working and maintained. If you don't have one then you can't boot test but you still have to your best to keep it as close to working as possible.

I was trying to get an idea if anyone uses the target. If people want the target around, we can just ignore my patches to remove it.

Remember, though, it is a tradeoff. The msm7201 is fairly different than the other MSM targets, and adds some effort to the consolidation work across all of ARM. I think it would be better, overall, to drop support for it, if there are no users.

I'm pretty sure that the chips themselves are past end-of-life, so there isn't going to be any new hardware based on the msm7201.

I'm curious what kinds of uses people have for their G1s.

Speaking of old targets, it doesn't look like the mahimahi (Nexus One) ever made it to the point of building. I have a dev board board on the msm8650, and the chip support does work. It'd be nice to get patches to get the Nexus One target to work as well. (the board-mahimahi.c includes a board-mahimahi.h that isn't present).

Thanks,
David

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.
#7 lore raw
Quoted 6 lines · David Brown
Quoted 4 lines · Daniel Walker
Quoted 3 lines

If someone is willing to step up and make it work, then we can keep it around. My only G1 is fried, so I have no way to do anything other than keep it compiling.

Quoted 7 lines
Quoted 4 lines

Unfortunately, You can't remove it regardless of whether or not you have one to test on.. Your job is to do the best you can to keep it working and maintained. If you don't have one then you can't boot test but you still have to your best to keep it as close to working as possible.

I was trying to get an idea if anyone uses the target. If people want the target around, we can just ignore my patches to remove it.

Please don't ever do this again.

Quoted 4 lines

Remember, though, it is a tradeoff. The msm7201 is fairly different than the other MSM targets, and adds some effort to the consolidation work across all of ARM. I think it would be better, overall, to drop support for it, if there are no users.

To me that would be a failure in design of the consolidation.. If we removed all the targets that are "different" we might not have many targets.

Quoted 2 lines

I'm pretty sure that the chips themselves are past end-of-life, so there isn't going to be any new hardware based on the msm7201.

There's still plenty of them floating around.

Quoted 7 lines

I'm curious what kinds of uses people have for their G1s.

Speaking of old targets, it doesn't look like the mahimahi (Nexus One) ever made it to the point of building. I have a dev board board on the msm8650, and the chip support does work. It'd be nice to get patches to get the Nexus One target to work as well. (the board-mahimahi.c includes a board-mahimahi.h that isn't present).

I'd love to have it working too.

Daniel

#8 lore raw
Quoted 12 lines · Daniel Walker
Quoted 11 lines · David Brown
Quoted 8 lines · Daniel Walker
Quoted 3 lines

If someone is willing to step up and make it work, then we can keep it around. My only G1 is fried, so I have no way to do anything other than keep it compiling.

Unfortunately, You can't remove it regardless of whether or not you have one to test on.. Your job is to do the best you can to keep it working and maintained. If you don't have one then you can't boot test but you still have to your best to keep it as close to working as possible.

Quoted 4 lines
Quoted 2 lines

I was trying to get an idea if anyone uses the target. If people want the target around, we can just ignore my patches to remove it.

Please don't ever do this again.

That's awfully harsh. I sent an email a few weeks back asking about removing the target, and I only got one positive response. Sometimes sending a patch is the best way to get a reaction.

David

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.
#9 lore raw
Quoted 13 lines · David Brown
Quoted 12 lines · Daniel Walker
Quoted 11 lines · David Brown
Quoted 8 lines · Daniel Walker
Quoted 3 lines

If someone is willing to step up and make it work, then we can keep it around. My only G1 is fried, so I have no way to do anything other than keep it compiling.

Unfortunately, You can't remove it regardless of whether or not you have one to test on.. Your job is to do the best you can to keep it working and maintained. If you don't have one then you can't boot test but you still have to your best to keep it as close to working as possible.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

I was trying to get an idea if anyone uses the target. If people want the target around, we can just ignore my patches to remove it.

Please don't ever do this again.

That's awfully harsh. I sent an email a few weeks back asking about removing the target, and I only got one positive response. Sometimes sending a patch is the best way to get a reaction.

You didn't CC me on that (or I didn't see it) .. You know who supports the G1 target and who has the target (i.e. me) .. It also goes against the philosophy of this community to arbitrarily remove hardware support.

Am I trying to be harsh? No I'm not, but you really shouldn't be doing this kind of stuff.

Daniel

#10 lore raw
Quoted 19 lines · Daniel Walker
Quoted 18 lines · David Brown
Quoted 16 lines · Daniel Walker
Quoted 6 lines · David Brown
Quoted 4 lines · Daniel Walker
Quoted 3 lines

If someone is willing to step up and make it work, then we can keep it around. My only G1 is fried, so I have no way to do anything other than keep it compiling.

Quoted 7 lines
Quoted 4 lines

Unfortunately, You can't remove it regardless of whether or not you have one to test on.. Your job is to do the best you can to keep it working and maintained. If you don't have one then you can't boot test but you still have to your best to keep it as close to working as possible.

I was trying to get an idea if anyone uses the target. If people want the target around, we can just ignore my patches to remove it.

Please don't ever do this again.

Quoted 7 lines
Quoted 3 lines

That's awfully harsh. I sent an email a few weeks back asking about removing the target, and I only got one positive response. Sometimes sending a patch is the best way to get a reaction.

You didn't CC me on that (or I didn't see it) .. You know who supports the G1 target and who has the target (i.e. me) .. It also goes against the philosophy of this community to arbitrarily remove hardware support.

Any idea if the tip code works on the G1? There are also some DEBUG_LL changes in the ARM soc tree, and it'd be nice to know if those still work on 7201.

Thanks,
David

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.
#11 lore raw
In reply to David Brown
Quoted 13 lines · David Brown
Quoted 12 lines · Daniel Walker
Quoted 11 lines · David Brown
Quoted 8 lines · Daniel Walker
Quoted 3 lines

If someone is willing to step up and make it work, then we can keep it around. My only G1 is fried, so I have no way to do anything other than keep it compiling.

Unfortunately, You can't remove it regardless of whether or not you have one to test on.. Your job is to do the best you can to keep it working and maintained. If you don't have one then you can't boot test but you still have to your best to keep it as close to working as possible.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

I was trying to get an idea if anyone uses the target. If people want the target around, we can just ignore my patches to remove it.

Please don't ever do this again.

That's awfully harsh. I sent an email a few weeks back asking about removing the target, and I only got one positive response. Sometimes sending a patch is the best way to get a reaction.

That's pretty normal for just 'asking' about doing something.

You've done the right thing - if you ask, people treat your message as low priority and don't bother replying in the hope that nothing will happen.

However, if you send a patch to delete a platform, people treat it as most urgent because if they care they need to speak up to actually stop it happening. (Even if you intend to only actually submit it in 6 months time or so - but don't mention that in the initial posting!)

Now, the obvious question to ask now is this: as you sent your question, and Daniel obviously objects, was Daniel one of your respondants? If not, then he carries some of the blame for this patch being created in the first place by having missed the email/not replied/etc.

#12 lore raw
Quoted 5 lines · Russell King - ARM Linux

Now, the obvious question to ask now is this: as you sent your question, and Daniel obviously objects, was Daniel one of your respondants? If not, then he carries some of the blame for this patch being created in the first place by having missed the email/not replied/etc.

What if the people using the hardware aren't even on the list ? It's not their fault is it?

Daniel

#17 lore raw
In reply to Russell King - ARM Linux
Quoted 34 lines · Russell King - ARM Linux
Quoted 13 lines · David Brown
Quoted 12 lines · Daniel Walker
Quoted 11 lines · David Brown
Quoted 8 lines · Daniel Walker
Quoted 3 lines

If someone is willing to step up and make it work, then we can keep it around. My only G1 is fried, so I have no way to do anything other than keep it compiling.

Unfortunately, You can't remove it regardless of whether or not you have one to test on.. Your job is to do the best you can to keep it working and maintained. If you don't have one then you can't boot test but you still have to your best to keep it as close to working as possible.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

I was trying to get an idea if anyone uses the target. If people want the target around, we can just ignore my patches to remove it.

Please don't ever do this again.

That's awfully harsh. I sent an email a few weeks back asking about removing the target, and I only got one positive response. Sometimes sending a patch is the best way to get a reaction.

That's pretty normal for just 'asking' about doing something.

You've done the right thing - if you ask, people treat your message as low priority and don't bother replying in the hope that nothing will happen.

However, if you send a patch to delete a platform, people treat it as most urgent because if they care they need to speak up to actually stop it happening. (Even if you intend to only actually submit it in 6 months time or so - but don't mention that in the initial posting!)

Quoted 4 lines

Now, the obvious question to ask now is this: as you sent your question, and Daniel obviously objects, was Daniel one of your respondants? If not, then he carries some of the blame for this patch being created in the first place by having missed the email/not replied/etc.

Yeah, my mistake was forgetting to CC Daniel on the original question about removing the target.

And I've learned what I needed to now: someone does still care about the target.

David

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.
#18 lore raw
Quoted 40 lines · David Brown
Quoted 34 lines · Russell King - ARM Linux
Quoted 13 lines · David Brown
Quoted 12 lines · Daniel Walker
Quoted 11 lines · David Brown
Quoted 8 lines · Daniel Walker
Quoted 3 lines

If someone is willing to step up and make it work, then we can keep it around. My only G1 is fried, so I have no way to do anything other than keep it compiling.

Unfortunately, You can't remove it regardless of whether or not you have one to test on.. Your job is to do the best you can to keep it working and maintained. If you don't have one then you can't boot test but you still have to your best to keep it as close to working as possible.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

I was trying to get an idea if anyone uses the target. If people want the target around, we can just ignore my patches to remove it.

Please don't ever do this again.

That's awfully harsh. I sent an email a few weeks back asking about removing the target, and I only got one positive response. Sometimes sending a patch is the best way to get a reaction.

That's pretty normal for just 'asking' about doing something.

You've done the right thing - if you ask, people treat your message as low priority and don't bother replying in the hope that nothing will happen.

However, if you send a patch to delete a platform, people treat it as most urgent because if they care they need to speak up to actually stop it happening. (Even if you intend to only actually submit it in 6 months time or so - but don't mention that in the initial posting!)

Quoted 4 lines

Now, the obvious question to ask now is this: as you sent your question, and Daniel obviously objects, was Daniel one of your respondants? If not, then he carries some of the blame for this patch being created in the first place by having missed the email/not replied/etc.

Quoted 5 lines

Yeah, my mistake was forgetting to CC Daniel on the original question about removing the target.

And I've learned what I needed to now: someone does still care about the target.

I just went on cragslist and found 7 of these phones for sell used .. If you can still buy the things clearly we want it supported .. My point is that this patch and even you asking to remove the code was pointless.. You should know that code can't be removed.

Daniel

#13 lore raw
In reply to Daniel Walker
Quoted 9 lines · Daniel Walker
Quoted 5 lines · Russell King - ARM Linux

Now, the obvious question to ask now is this: as you sent your question, and Daniel obviously objects, was Daniel one of your respondants? If not, then he carries some of the blame for this patch being created in the first place by having missed the email/not replied/etc.

What if the people using the hardware aren't even on the list ? It's not their fault is it?

Did you notice I mentioned six months?

The way to remove non-broken code is:
1. to ask. If no one responds, then
2. submit a patch to put an entry in feature-removal-schedule.txt giving a description of what will be removed and when - and then flag it with a patch to remove it. If no one responds to that, then
3. the patch to remove it re-posted, and if no one objects it gets merged.

So, if people care about bits of code _and_ they're not on the relevant subsystem mailing lists, they need to keep an eye on the feature removal file - otherwise they're in for nasty surprises.

#14 lore raw
Quoted 8 lines · Russell King - ARM Linux
Quoted 7 lines · Daniel Walker
Quoted 5 lines · Russell King - ARM Linux

Now, the obvious question to ask now is this: as you sent your question, and Daniel obviously objects, was Daniel one of your respondants? If not, then he carries some of the blame for this patch being created in the first place by having missed the email/not replied/etc.

Quoted 4 lines
Quoted 2 lines

What if the people using the hardware aren't even on the list ? It's not their fault is it?

Did you notice I mentioned six months?

Yeah I did notice..

Quoted 11 lines

The way to remove non-broken code is:
1. to ask. If no one responds, then
2. submit a patch to put an entry in feature-removal-schedule.txt giving a description of what will be removed and when - and then flag it with a patch to remove it. If no one responds to that, then
3. the patch to remove it re-posted, and if no one objects it gets merged.

So, if people care about bits of code _and_ they're not on the relevant subsystem mailing lists, they need to keep an eye on the feature removal file - otherwise they're in for nasty surprises.

I agree with the steps, but I'm not sure David knows about (or would be following) those steps. Not to mention these devices are still readily available used .. I wouldn't expect anyone to even remotely ponder removing this code for at least another 10 years.. In order to even start the process above there has to be some good probability that no has the device or cares at all about the device..

Daniel

#15 lore raw
Quoted 28 lines · Daniel Walker
Quoted 8 lines · Russell King - ARM Linux
Quoted 7 lines · Daniel Walker
Quoted 5 lines · Russell King - ARM Linux

Now, the obvious question to ask now is this: as you sent your question, and Daniel obviously objects, was Daniel one of your respondants? If not, then he carries some of the blame for this patch being created in the first place by having missed the email/not replied/etc.

Quoted 4 lines
Quoted 2 lines

What if the people using the hardware aren't even on the list ? It's not their fault is it?

Did you notice I mentioned six months?

Yeah I did notice..

Quoted 11 lines

The way to remove non-broken code is:
1. to ask. If no one responds, then
2. submit a patch to put an entry in feature-removal-schedule.txt giving a description of what will be removed and when - and then flag it with a patch to remove it. If no one responds to that, then
3. the patch to remove it re-posted, and if no one objects it gets merged.

So, if people care about bits of code _and_ they're not on the relevant subsystem mailing lists, they need to keep an eye on the feature removal file - otherwise they're in for nasty surprises.

Quoted 6 lines

I agree with the steps, but I'm not sure David knows about (or would be following) those steps. Not to mention these devices are still readily available used .. I wouldn't expect anyone to even remotely ponder removing this code for at least another 10 years.. In order to even start the process above there has to be some good probability that no has the device or cares at all about the device..

Actually... no. We've removed entire SoCs which have lost their maintainers well under this '10 years'.

One of the key decisions for removing code is the cost of keeping it in a buildable state when there's no one actively looking after it. If it has a high cost it'll get deleted much earlier...

#16 lore raw
Quoted 36 lines · Russell King - ARM Linux
Quoted 28 lines · Daniel Walker
Quoted 8 lines · Russell King - ARM Linux
Quoted 7 lines · Daniel Walker
Quoted 5 lines · Russell King - ARM Linux

Now, the obvious question to ask now is this: as you sent your question, and Daniel obviously objects, was Daniel one of your respondants? If not, then he carries some of the blame for this patch being created in the first place by having missed the email/not replied/etc.

Quoted 4 lines
Quoted 2 lines

What if the people using the hardware aren't even on the list ? It's not their fault is it?

Did you notice I mentioned six months?

Yeah I did notice..

Quoted 11 lines

The way to remove non-broken code is:
1. to ask. If no one responds, then
2. submit a patch to put an entry in feature-removal-schedule.txt giving a description of what will be removed and when - and then flag it with a patch to remove it. If no one responds to that, then
3. the patch to remove it re-posted, and if no one objects it gets merged.

So, if people care about bits of code _and_ they're not on the relevant subsystem mailing lists, they need to keep an eye on the feature removal file - otherwise they're in for nasty surprises.

Quoted 6 lines

I agree with the steps, but I'm not sure David knows about (or would be following) those steps. Not to mention these devices are still readily available used .. I wouldn't expect anyone to even remotely ponder removing this code for at least another 10 years.. In order to even start the process above there has to be some good probability that no has the device or cares at all about the device..

Quoted 2 lines

Actually... no. We've removed entire SoCs which have lost their maintainers well under this '10 years'.

In this case we have a maintainer (3 of them even)..

Quoted 3 lines

One of the key decisions for removing code is the cost of keeping it in a buildable state when there's no one actively looking after it. If it has a high cost it'll get deleted much earlier...

I'm not trying to suggest rules for the entire ARM architecture .. In this particular case it's totally uncalled for to even try to remove the code.. I don't know the details of the case which your bringing up, but it doesn't seem (from what you've said) similar to this one. These devices are widely available, lots of developers and non-developers have them, the devices are widely available for purchase (with kernels on them), we have maintainers for the area where the code lives..

In the case your bringing up I could argue with you, but I really don't know the circumstances.. To me I think it should be hard to remove code for devices you can easily get a hold of..

Daniel

#19 lore raw
In reply to David Brown
Quoted 2 lines

And I've learned what I needed to now: someone does still care about the target.

However in a response to the following mail:
[Question] RPC and SMD implementation
David Brown already told that:

Quoted 3 lines

Is there much reason to get the msm72xx support into the kernel in the first place? These targets are old, and I don't believe any new devices are being made using them

And:

Quoted 3 lines

Things are a lot easier in the newer RPC/SMD versions, and I don't see a strong reason to keep the kruft in the kernel necessary to support the 72xx chips.

I guess that means that RPC for msm7x00 won't hit mainline.
So without RPC the port to mainline cannot be complete(no modem, no audio, no GPS,and maybe more depending on the device).

Denis.

#20 lore raw
Quoted 8 lines · Denis 'GNUtoo' Carikli
Quoted 2 lines

And I've learned what I needed to now: someone does still care about the target.

However in a response to the following mail:
[Question] RPC and SMD implementation
David Brown already told that:

Quoted 3 lines

Is there much reason to get the msm72xx support into the kernel in the first place? These targets are old, and I don't believe any new devices are being made using them

Quoted 7 lines

And:

Quoted 3 lines

Things are a lot easier in the newer RPC/SMD versions, and I don't see a strong reason to keep the kruft in the kernel necessary to support the 72xx chips.

I guess that means that RPC for msm7x00 won't hit mainline.
So without RPC the port to mainline cannot be complete(no modem, no audio, no GPS,and maybe more depending on the device).

There isn't anything stopping someone from working on the port. The Android kernels for the target are still available. But, I think most people working on the MSM code will be focusing on newer devices, especially now that there is an 8660 dev board available.

David

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.