Build fixes for omap
Subsystems (9)
Tony Lindgren
maintainercover Build fixes for omap
Hi all,
Here are build fixes for omaps and a suspend fix for omap3. There's one more build fix coming from the linux-usb list for H2 transceiver.
Planning to send these today before starting to look into the other pending fixes.
Regards,
Tony
---
Balaji T K (1):
mfd: twl: fix twl4030 rename for remaining driver, board files
Mika Westerberg (1):
OMAP3: serial - fix bug introduced in
Olof Johansson (1):
omap3: Allow EHCI to be built on OMAP3
Thomas Weber (1):
USB ehci: replace mach header with plat
arch/arm/mach-omap2/Kconfig | 1 + arch/arm/mach-omap2/board-cm-t35.c | 2 +- arch/arm/mach-omap2/board-igep0020.c | 2 +- arch/arm/mach-omap2/board-omap3evm.c | 2 +- arch/arm/mach-omap2/board-omap3touchbook.c | 2 +- arch/arm/mach-omap2/board-rx51-peripherals.c | 2 +- arch/arm/mach-omap2/board-zoom-peripherals.c | 2 +- arch/arm/mach-omap2/serial.c | 7 ++++--- drivers/usb/host/ehci-omap.c | 2 +- drivers/video/omap/lcd_ldp.c | 4 ++-- drivers/video/omap/lcd_omap2evm.c | 10 +++++----- drivers/video/omap/lcd_omap3beagle.c | 2 +- drivers/video/omap/lcd_omap3evm.c | 10 +++++----- drivers/video/omap/lcd_overo.c | 2 +- sound/soc/omap/sdp3430.c | 6 +++--- 15 files changed, 29 insertions(+), 27 deletions(-)
Signature · 1 line
Signature
Tony Lindgren
maintainerPATCH 1/4 omap3: Allow EHCI to be built on OMAP3
From: Olof Johansson <[email protected]>
OMAP34XX has EHCI, so select USB_ARCH_HAS_EHCI.
--- arch/arm/mach-omap2/Kconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/Kconfig +1 -0
@@ -18,6 +18,7 @@ config ARCH_OMAP2430 config ARCH_OMAP34XX bool "OMAP34xx Based System" depends on ARCH_OMAP3 + select USB_ARCH_HAS_EHCI config ARCH_OMAP3430 bool "OMAP3430 support"
Tony Lindgren
maintainerPATCH 2/4 USB ehci: replace mach header with plat
In reply to Tony LindgrenFrom: Thomas Weber <[email protected]>
Replace the mach/usb.h with plat/usb.h
--- drivers/usb/host/ehci-omap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/host/ehci-omap.c +1 -1
@@ -37,7 +37,7 @@#include <linux/platform_device.h> #include <linux/clk.h> #include <linux/gpio.h> -#include <mach/usb.h> +#include <plat/usb.h> /* * OMAP USBHOST Register addresses: VIRTUAL ADDRESSES
Tony Lindgren
maintainerPATCH 3/4 mfd: twl: fix twl4030 rename for remaining driver, board files
In reply to Tony LindgrenFrom: Balaji T K <[email protected]>
Recent drivers/mfd/twl4030* renames to twl broke compile for various boards as the series was missing a patch to change the board-*.c files.
This patch renames include twl4030.h to include twl.h and also renames twl4030_i2c_ routines.
--- arch/arm/mach-omap2/board-cm-t35.c | 2 +- arch/arm/mach-omap2/board-igep0020.c | 2 +- arch/arm/mach-omap2/board-omap3evm.c | 2 +- arch/arm/mach-omap2/board-omap3touchbook.c | 2 +- arch/arm/mach-omap2/board-rx51-peripherals.c | 2 +- arch/arm/mach-omap2/board-zoom-peripherals.c | 2 +- drivers/video/omap/lcd_ldp.c | 4 ++-- drivers/video/omap/lcd_omap2evm.c | 10 +++++----- drivers/video/omap/lcd_omap3beagle.c | 2 +- drivers/video/omap/lcd_omap3evm.c | 10 +++++----- drivers/video/omap/lcd_overo.c | 2 +- sound/soc/omap/sdp3430.c | 6 +++--- 12 files changed, 23 insertions(+), 23 deletions(-)
arch/arm/mach-omap2/board-cm-t35.c +1 -1
@@ -29,7 +29,7 @@#include <linux/gpio.h> #include <linux/i2c/at24.h> -#include <linux/i2c/twl4030.h> +#include <linux/i2c/twl.h> #include <linux/regulator/machine.h> #include <asm/mach-types.h>
arch/arm/mach-omap2/board-igep0020.c +1 -1
@@ -19,7 +19,7 @@#include <linux/interrupt.h> #include <linux/regulator/machine.h> -#include <linux/i2c/twl4030.h> +#include <linux/i2c/twl.h> #include <asm/mach-types.h> #include <asm/mach/arch.h>
arch/arm/mach-omap2/board-omap3evm.c +1 -1
@@ -26,7 +26,7 @@#include <linux/spi/spi.h> #include <linux/spi/ads7846.h> -#include <linux/i2c/twl4030.h> +#include <linux/i2c/twl.h> #include <linux/usb/otg.h> #include <linux/smsc911x.h>
arch/arm/mach-omap2/board-omap3touchbook.c +1 -1
@@ -34,7 +34,7 @@#include <linux/spi/ads7846.h> #include <linux/regulator/machine.h> -#include <linux/i2c/twl4030.h> +#include <linux/i2c/twl.h> #include <mach/hardware.h> #include <asm/mach-types.h>
arch/arm/mach-omap2/board-rx51-peripherals.c +1 -1
@@ -16,7 +16,7 @@#include <linux/spi/spi.h> #include <linux/spi/wl12xx.h> #include <linux/i2c.h> -#include <linux/i2c/twl4030.h> +#include <linux/i2c/twl.h> #include <linux/clk.h> #include <linux/delay.h> #include <linux/regulator/machine.h>
arch/arm/mach-omap2/board-zoom-peripherals.c +1 -1
@@ -14,7 +14,7 @@#include <linux/input.h> #include <linux/input/matrix_keypad.h> #include <linux/gpio.h> -#include <linux/i2c/twl4030.h> +#include <linux/i2c/twl.h> #include <linux/regulator/machine.h> #include <asm/mach-types.h>
drivers/video/omap/lcd_ldp.c +2 -2
@@ -24,7 +24,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/delay.h> -#include <linux/i2c/twl4030.h> +#include <linux/i2c/twl.h> #include <mach/gpio.h> #include <plat/mux.h>
@@ -59,7 +59,7 @@#define TWL4030_VPLL2_DEV_GRP 0x33#define TWL4030_VPLL2_DEDICATED 0x36 -#define t2_out (c, r, v) twl4030_i2c_write_u8(c, r, v) +#define t2_out (c, r, v) twl_i2c_write_u8(c, r, v) static int ldp_panel_init(struct lcd_panel *panel,
drivers/video/omap/lcd_omap2evm.c +5 -5
@@ -24,7 +24,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/gpio.h> -#include <linux/i2c/twl4030.h> +#include <linux/i2c/twl.h> #include <plat/mux.h> #include <asm/mach-types.h>
@@ -61,9 +61,9 @@ static int omap2evm_panel_init(struct lcd_panel *panel,gpio_direction_output (LCD_PANEL_LR ,1 );gpio_direction_output (LCD_PANEL_UD ,1 ); -twl4030_i2c_write_u8 (TWL4030_MODULE_LED ,0x11 ,TWL_LED_LEDEN ); -twl4030_i2c_write_u8 (TWL4030_MODULE_PWMA ,0x01 ,TWL_PWMA_PWMAON ); -twl4030_i2c_write_u8 (TWL4030_MODULE_PWMA ,0x02 ,TWL_PWMA_PWMAOFF ); +twl_i2c_write_u8 (TWL4030_MODULE_LED ,0x11 ,TWL_LED_LEDEN ); +twl_i2c_write_u8 (TWL4030_MODULE_PWMA ,0x01 ,TWL_PWMA_PWMAON ); +twl_i2c_write_u8 (TWL4030_MODULE_PWMA ,0x02 ,TWL_PWMA_PWMAOFF ); bklight_level =100 ;return 0 ;
@@ -101,7 +101,7 @@ static int omap2evm_bklight_setlevel(struct lcd_panel *panel,u8 c;if ((level >=0 ) && (level <=100 )) { c = (125 * (100 - level)) /100 +2 ; -twl4030_i2c_write_u8 (TWL4030_MODULE_PWMA , c,TWL_PWMA_PWMAOFF ); +twl_i2c_write_u8 (TWL4030_MODULE_PWMA , c,TWL_PWMA_PWMAOFF ); bklight_level = level; }return 0 ;
drivers/video/omap/lcd_omap3beagle.c +1 -1
@@ -23,7 +23,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/gpio.h> -#include <linux/i2c/twl4030.h> +#include <linux/i2c/twl.h> #include <plat/mux.h> #include <plat/mux.h>
drivers/video/omap/lcd_omap3evm.c +5 -5
@@ -23,7 +23,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/gpio.h> -#include <linux/i2c/twl4030.h> +#include <linux/i2c/twl.h> #include <plat/mux.h> #include <asm/mach-types.h>
@@ -63,9 +63,9 @@ static int omap3evm_panel_init(struct lcd_panel *panel,gpio_direction_output (LCD_PANEL_LR ,1 );gpio_direction_output (LCD_PANEL_UD ,1 ); -twl4030_i2c_write_u8 (TWL4030_MODULE_LED ,0x11 ,TWL_LED_LEDEN ); -twl4030_i2c_write_u8 (TWL4030_MODULE_PWMA ,0x01 ,TWL_PWMA_PWMAON ); -twl4030_i2c_write_u8 (TWL4030_MODULE_PWMA ,0x02 ,TWL_PWMA_PWMAOFF ); +twl_i2c_write_u8 (TWL4030_MODULE_LED ,0x11 ,TWL_LED_LEDEN ); +twl_i2c_write_u8 (TWL4030_MODULE_PWMA ,0x01 ,TWL_PWMA_PWMAON ); +twl_i2c_write_u8 (TWL4030_MODULE_PWMA ,0x02 ,TWL_PWMA_PWMAOFF ); bklight_level =100 ;return 0 ;
@@ -102,7 +102,7 @@ static int omap3evm_bklight_setlevel(struct lcd_panel *panel,u8 c;if ((level >=0 ) && (level <=100 )) { c = (125 * (100 - level)) /100 +2 ; -twl4030_i2c_write_u8 (TWL4030_MODULE_PWMA , c,TWL_PWMA_PWMAOFF ); +twl_i2c_write_u8 (TWL4030_MODULE_PWMA , c,TWL_PWMA_PWMAOFF ); bklight_level = level; }return 0 ;
drivers/video/omap/lcd_overo.c +1 -1
@@ -21,7 +21,7 @@#include <linux/module.h> #include <linux/platform_device.h> -#include <linux/i2c/twl4030.h> +#include <linux/i2c/twl.h> #include <mach/gpio.h> #include <plat/mux.h>
sound/soc/omap/sdp3430.c +3 -3
@@ -24,7 +24,7 @@#include <linux/clk.h> #include <linux/platform_device.h> -#include <linux/i2c/twl4030.h> +#include <linux/i2c/twl.h> #include <sound/core.h> #include <sound/pcm.h> #include <sound/soc.h>
@@ -321,11 +321,11 @@ static int __init sdp3430_soc_init(void) *(unsigned int *)sdp3430_dai[1 ].cpu_dai->private_data =2 ;/* McBSP3 */ /* Set TWL4030 GPIO6 as EXTMUTE signal */ -twl4030_i2c_read_u8 (TWL4030_MODULE_INTBR , &pin_mux, +twl_i2c_read_u8 (TWL4030_MODULE_INTBR , &pin_mux,TWL4030_INTBR_PMBR1 ); pin_mux &= ~TWL4030_GPIO6_PWM0_MUTE (0x03 ); pin_mux |=TWL4030_GPIO6_PWM0_MUTE (0x02 ); -twl4030_i2c_write_u8 (TWL4030_MODULE_INTBR , pin_mux, +twl_i2c_write_u8 (TWL4030_MODULE_INTBR , pin_mux,TWL4030_INTBR_PMBR1 ); ret =platform_device_add (sdp3430_snd_device);
Tony Lindgren
maintainerPATCH 4/4 OMAP3: serial - fix bug introduced in
In reply to Tony LindgrenFrom: Mika Westerberg <[email protected]>
Commit f62349ee9788b1d94c55eb6c291d74a1f69bdd9e had side effect that causes kernel to oops when we are suspending to ram:
# echo mem > /sys/power/state
WARNING: at kernel/irq/manage.c:858 __free_irq+0x90/0x174() Trying to free already-free IRQ 72 Modules linked in: Backtrace: [<c00328d0>] (dump_backtrace+0x0/0x110) from [<c0347298>] (dump_stack+0x18/0x1c) r7:dfd4be08 r6:c009505c r5:c03fbfd1 r4:0000035a [<c0347280>] (dump_stack+0x0/0x1c) from [<c005a408>] (warn_slowpath_common+0x50/0x68) [<c005a3b8>] (warn_slowpath_common+0x0/0x68) from [<c005a46c>] (warn_slowpath_fmt+0x30) r7:c0474afc r6:00000048 r5:00000000 r4:c0474ac0 [<c005a43c>] (warn_slowpath_fmt+0x0/0x38) from [<c009505c>] (__free_irq+0x90/0x174) r3:00000048 r2:c03fc0ef [<c0094fcc>] (__free_irq+0x0/0x174) from [<c0095184>] (free_irq+0x44/0x64) [<c0095140>] (free_irq+0x0/0x64) from [<c0038100>] (omap_uart_enable_irqs+0x4c/0x90) r7:c034d58c r6:00000003 r5:00000000 r4:c0463028 [<c00380b4>] (omap_uart_enable_irqs+0x0/0x90) from [<c003d8f8>] (omap3_pm_begin+0x1c/0) r5:00000003 r4:00000000 [<c003d8dc>] (omap3_pm_begin+0x0/0x28) from [<c008d008>] (suspend_devices_and_enter+0x) [<c008cfd8>] (suspend_devices_and_enter+0x0/0x1dc) from [<c008d29c>] (enter_state+0xe8) r5:c03f7f46 r4:00000000 [<c008d1b4>] (enter_state+0x0/0x140) from [<c008c8e0>] (state_store+0x9c/0xc4) r7:c034d58c r6:00000003 r5:00000003 r4:c03f7f46 [<c008c844>] (state_store+0x0/0xc4) from [<c01cb2dc>] (kobj_attr_store+0x20/0x24) [<c01cb2bc>] (kobj_attr_store+0x0/0x24) from [<c0119420>] (sysfs_write_file+0x114/0x14) [<c011930c>] (sysfs_write_file+0x0/0x148) from [<c00cb298>] (vfs_write+0xb8/0x164) [<c00cb1e0>] (vfs_write+0x0/0x164) from [<c00cb408>] (sys_write+0x44/0x70) r8:4001f000 r7:00000004 r6:df81bd00 r5:00000000 r4:00000000 [<c00cb3c4>] (sys_write+0x0/0x70) from [<c002f040>] (ret_fast_syscall+0x0/0x38) r8:c002f204 r7:00000004 r6:401fa5e8 r5:4001f000 r4:00000004
This is due the fact that uart_list list was populated in omap_serial_early_init() and omap_uart_enable_irqs() went through this list even when serial idle wasn't enabled for all uarts.
This patch moves the code that populates the uart_list and enables uart clocks into omap_serial_init_port().
--- arch/arm/mach-omap2/serial.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
arch/arm/mach-omap2/serial.c +4 -3
@@ -640,12 +640,9 @@ void __init omap_serial_early_init(void) uart->num = i; p->private_data = uart; uart->p = p; -list_add_tail (&uart->node, &uart_list);if (cpu_is_omap44xx ()) p->irq +=32 ; - -omap_uart_enable_clocks (uart); } }
@@ -673,9 +670,13 @@ void __init omap_serial_init_port(int port) pdev = &uart->pdev; dev = &pdev->dev; +omap_uart_enable_clocks (uart); +omap_uart_reset (uart);omap_uart_idle_init (uart); +list_add_tail (&uart->node, &uart_list); +if (WARN_ON (platform_device_register (pdev)))return ;
PATCH 1/4 omap3: Allow EHCI to be built on OMAP3
In reply to Tony LindgrenQuoted 7 lines · Tony Lindgren
From: Olof Johansson <[email protected]>
OMAP34XX has EHCI, so select
USB_ARCH_HAS_EHCI.Signed-off-by Olof Johansson <[email protected]>Acked-by Anand Gadiyar <[email protected]>Signed-off-by Tony Lindgren <[email protected]>
fwiw:
Signature · 1 line
balbi