* [PATCH 0/6] Few more omap fixes for 2.6.25
@ 2008-03-13 15:45 Tony Lindgren
2008-03-13 15:45 ` [PATCH 1/6] ARM: OMAP: Fix clockevent support for hrtimers Tony Lindgren
2008-03-13 23:19 ` [PATCH 0/6] Few more omap fixes for 2.6.25 Russell King - ARM Linux
0 siblings, 2 replies; 11+ messages in thread
From: Tony Lindgren @ 2008-03-13 15:45 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: linux-omap, Tony Lindgren
Hi,
Here are few more fixes for 2.6.25 if there's still time to get them
applied.
Regards,
Tony
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/6] ARM: OMAP: Fix clockevent support for hrtimers
2008-03-13 15:45 [PATCH 0/6] Few more omap fixes for 2.6.25 Tony Lindgren
@ 2008-03-13 15:45 ` Tony Lindgren
2008-03-13 15:45 ` [PATCH 2/6] ARM: OMAP: Fix GPIO IRQ unmask Tony Lindgren
2008-03-20 14:43 ` [PATCH 1/6] ARM: OMAP: Fix clockevent support for hrtimers Russell King - ARM Linux
2008-03-13 23:19 ` [PATCH 0/6] Few more omap fixes for 2.6.25 Russell King - ARM Linux
1 sibling, 2 replies; 11+ messages in thread
From: Tony Lindgren @ 2008-03-13 15:45 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: linux-omap, Kevin Hilman, Tim Bird, Tony Lindgren
From: Kevin Hilman <khilman@mvista.com>
One-shot mode was broken in MPU-timer support for OMAP1 due to a typo.
Also, ensure timer is stopped before changing the auto-reload flag.
The TRM says changing the AR flag when timer is running is undefined.
Also set GENERIC_CLOCKEVENTS for all omaps.
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Kevin Hilman <khilman@mvista.com.
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/Kconfig | 1 +
arch/arm/mach-omap1/time.c | 10 +++++++++-
arch/arm/plat-omap/Kconfig | 1 -
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 955fc53..4039a13 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -469,6 +469,7 @@ config ARCH_OMAP
bool "TI OMAP"
select GENERIC_GPIO
select GENERIC_TIME
+ select GENERIC_CLOCKEVENTS
help
Support for TI's OMAP platform (OMAP1 and OMAP2).
diff --git a/arch/arm/mach-omap1/time.c b/arch/arm/mach-omap1/time.c
index 237651e..572a2db 100644
--- a/arch/arm/mach-omap1/time.c
+++ b/arch/arm/mach-omap1/time.c
@@ -132,13 +132,20 @@ static inline void omap_mpu_timer_start(int nr, unsigned long load_val,
timer->cntl = timerflags;
}
+static inline void omap_mpu_timer_stop(int nr)
+{
+ volatile omap_mpu_timer_regs_t* timer = omap_mpu_timer_base(nr);
+
+ timer->cntl &= ~MPU_TIMER_ST;
+}
+
/*
* ---------------------------------------------------------------------------
* MPU timer 1 ... count down to zero, interrupt, reload
* ---------------------------------------------------------------------------
*/
static int omap_mpu_set_next_event(unsigned long cycles,
- struct clock_event_device *evt)
+ struct clock_event_device *evt)
{
omap_mpu_timer_start(0, cycles, 0);
return 0;
@@ -152,6 +159,7 @@ static void omap_mpu_set_mode(enum clock_event_mode mode,
omap_mpu_set_autoreset(0);
break;
case CLOCK_EVT_MODE_ONESHOT:
+ omap_mpu_timer_stop(0);
omap_mpu_remove_autoreset(0);
break;
case CLOCK_EVT_MODE_UNUSED:
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig
index c1f7e5a..b917206 100644
--- a/arch/arm/plat-omap/Kconfig
+++ b/arch/arm/plat-omap/Kconfig
@@ -11,7 +11,6 @@ choice
config ARCH_OMAP1
bool "TI OMAP1"
- select GENERIC_CLOCKEVENTS
config ARCH_OMAP2
bool "TI OMAP2"
--
1.5.3.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/6] ARM: OMAP: Fix GPIO IRQ unmask
2008-03-13 15:45 ` [PATCH 1/6] ARM: OMAP: Fix clockevent support for hrtimers Tony Lindgren
@ 2008-03-13 15:45 ` Tony Lindgren
2008-03-13 15:45 ` [PATCH 3/6] ARM: OMAP: Fix missing makefile options Tony Lindgren
2008-03-20 14:43 ` [PATCH 1/6] ARM: OMAP: Fix clockevent support for hrtimers Russell King - ARM Linux
1 sibling, 1 reply; 11+ messages in thread
From: Tony Lindgren @ 2008-03-13 15:45 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: linux-omap, Kevin Hilman, Tony Lindgren
From: Kevin Hilman <khilman@mvista.com>
GPIO IRQ unmask doesn't actually do anything useful. The problem is
hidden by a separate explicit mass unmask at the end of the chained
bank handler.
Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/plat-omap/gpio.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c
index 66a1455..8c78e4e 100644
--- a/arch/arm/plat-omap/gpio.c
+++ b/arch/arm/plat-omap/gpio.c
@@ -1134,10 +1134,9 @@ static void gpio_mask_irq(unsigned int irq)
static void gpio_unmask_irq(unsigned int irq)
{
unsigned int gpio = irq - IH_GPIO_BASE;
- unsigned int gpio_idx = get_gpio_index(gpio);
struct gpio_bank *bank = get_irq_chip_data(irq);
- _set_gpio_irqenable(bank, gpio_idx, 1);
+ _set_gpio_irqenable(bank, gpio, 1);
}
static struct irq_chip gpio_irq_chip = {
--
1.5.3.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/6] ARM: OMAP: Fix missing makefile options
2008-03-13 15:45 ` [PATCH 2/6] ARM: OMAP: Fix GPIO IRQ unmask Tony Lindgren
@ 2008-03-13 15:45 ` Tony Lindgren
2008-03-13 15:45 ` [PATCH 4/6] ARM: OMAP: Fix chain_a_transfer return value Tony Lindgren
0 siblings, 1 reply; 11+ messages in thread
From: Tony Lindgren @ 2008-03-13 15:45 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: linux-omap, Tony Lindgren
Although audio and dsp drivers are not integrated yet,
allow compiling in mailbox and mcbsp to see any build
warnings.
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/plat-omap/Makefile | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/arm/plat-omap/Makefile b/arch/arm/plat-omap/Makefile
index ce17df3..8f56c25 100644
--- a/arch/arm/plat-omap/Makefile
+++ b/arch/arm/plat-omap/Makefile
@@ -14,9 +14,14 @@ obj-$(CONFIG_OMAP_32K_TIMER) += timer32k.o
# OCPI interconnect support for 1710, 1610 and 5912
obj-$(CONFIG_ARCH_OMAP16XX) += ocpi.o
+obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o
obj-$(CONFIG_CPU_FREQ) += cpu-omap.o
obj-$(CONFIG_OMAP_DM_TIMER) += dmtimer.o
obj-$(CONFIG_OMAP_DEBUG_DEVICES) += debug-devices.o
obj-$(CONFIG_OMAP_DEBUG_LEDS) += debug-leds.o
obj-$(CONFIG_I2C_OMAP) += i2c.o
+
+# OMAP mailbox framework
+obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox.o
+
--
1.5.3.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/6] ARM: OMAP: Fix chain_a_transfer return value
2008-03-13 15:45 ` [PATCH 3/6] ARM: OMAP: Fix missing makefile options Tony Lindgren
@ 2008-03-13 15:45 ` Tony Lindgren
2008-03-13 15:45 ` [PATCH 5/6] ARM: OMAP: Fix DMA CLINK mask, clear spurious interrupt Tony Lindgren
0 siblings, 1 reply; 11+ messages in thread
From: Tony Lindgren @ 2008-03-13 15:45 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: linux-omap, Anand Gadiyar, Tony Lindgren
From: Anand Gadiyar <gadiyar@ti.com>
This patch changes the return value of omap_dma_chain_a_transfer
to 0 on success instead of the flag 'start_dma', which wasn't really useful
for anything.
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/plat-omap/dma.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
index 91004a3..06293bf 100644
--- a/arch/arm/plat-omap/dma.c
+++ b/arch/arm/plat-omap/dma.c
@@ -1248,7 +1248,7 @@ EXPORT_SYMBOL(omap_dma_chain_status);
* @param frame_count
* @param callbk_data - channel callback parameter data.
*
- * @return - Success : start_dma status
+ * @return - Success : 0
* Failure: -EINVAL/-EBUSY
*/
int omap_dma_chain_a_transfer(int chain_id, int src_start, int dest_start,
@@ -1367,7 +1367,7 @@ int omap_dma_chain_a_transfer(int chain_id, int src_start, int dest_start,
dma_chan[lch].flags |= OMAP_DMA_ACTIVE;
}
}
- return start_dma;
+ return 0;
}
EXPORT_SYMBOL(omap_dma_chain_a_transfer);
--
1.5.3.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 5/6] ARM: OMAP: Fix DMA CLINK mask, clear spurious interrupt
2008-03-13 15:45 ` [PATCH 4/6] ARM: OMAP: Fix chain_a_transfer return value Tony Lindgren
@ 2008-03-13 15:45 ` Tony Lindgren
2008-03-13 15:45 ` [PATCH 6/6] ARM: OMAP1: Fix typo in OMAP1 MPU clock source initialization Tony Lindgren
0 siblings, 1 reply; 11+ messages in thread
From: Tony Lindgren @ 2008-03-13 15:45 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: linux-omap, Gadiyar, Anand, Kevin Hilman, Tony Lindgren
From: Gadiyar, Anand <gadiyar@ti.com>
Fix CLINK mask, clear spurious interrupt.
Signed-off-by: Gadiyar, Anand <gadiyar@ti.com>
Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/plat-omap/dma.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
index 06293bf..7937406 100644
--- a/arch/arm/plat-omap/dma.c
+++ b/arch/arm/plat-omap/dma.c
@@ -1020,12 +1020,12 @@ static void create_dma_lch_chain(int lch_head, int lch_queue)
}
w = OMAP_DMA_CLNK_CTRL_REG(lch_head);
- w &= ~(0x0f);
+ w &= ~(0x1f);
w |= lch_queue;
OMAP_DMA_CLNK_CTRL_REG(lch_head) = w;
w = OMAP_DMA_CLNK_CTRL_REG(lch_queue);
- w &= ~(0x0f);
+ w &= ~(0x1f);
w |= (dma_chan[lch_queue].next_linked_ch);
OMAP_DMA_CLNK_CTRL_REG(lch_queue) = w;
}
@@ -1663,6 +1663,7 @@ static int omap2_dma_handle_ch(int ch)
if (!status) {
if (printk_ratelimit())
printk(KERN_WARNING "Spurious DMA IRQ for lch %d\n", ch);
+ omap_writel(1 << ch, OMAP_DMA4_IRQSTATUS_L0);
return 0;
}
if (unlikely(dma_chan[ch].dev_id == -1)) {
--
1.5.3.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 6/6] ARM: OMAP1: Fix typo in OMAP1 MPU clock source initialization
2008-03-13 15:45 ` [PATCH 5/6] ARM: OMAP: Fix DMA CLINK mask, clear spurious interrupt Tony Lindgren
@ 2008-03-13 15:45 ` Tony Lindgren
0 siblings, 0 replies; 11+ messages in thread
From: Tony Lindgren @ 2008-03-13 15:45 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: linux-omap, Will Newton
From: Will Newton <will.newton@gmail.com>
Fix typo in OMAP1 MPU clock source initialization.
Signed-off-by: Will Newton <will.newton@gmail.com>
---
arch/arm/mach-omap1/time.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap1/time.c b/arch/arm/mach-omap1/time.c
index 572a2db..a4f8b20 100644
--- a/arch/arm/mach-omap1/time.c
+++ b/arch/arm/mach-omap1/time.c
@@ -171,7 +171,7 @@ static void omap_mpu_set_mode(enum clock_event_mode mode,
static struct clock_event_device clockevent_mpu_timer1 = {
.name = "mpu_timer1",
- .features = CLOCK_EVT_FEAT_PERIODIC, CLOCK_EVT_FEAT_ONESHOT,
+ .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
.shift = 32,
.set_next_event = omap_mpu_set_next_event,
.set_mode = omap_mpu_set_mode,
--
1.5.3.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 0/6] Few more omap fixes for 2.6.25
2008-03-13 15:45 [PATCH 0/6] Few more omap fixes for 2.6.25 Tony Lindgren
2008-03-13 15:45 ` [PATCH 1/6] ARM: OMAP: Fix clockevent support for hrtimers Tony Lindgren
@ 2008-03-13 23:19 ` Russell King - ARM Linux
2008-03-14 8:42 ` Tony Lindgren
1 sibling, 1 reply; 11+ messages in thread
From: Russell King - ARM Linux @ 2008-03-13 23:19 UTC (permalink / raw)
To: Tony Lindgren; +Cc: linux-arm-kernel, linux-omap
On Thu, Mar 13, 2008 at 05:45:13PM +0200, Tony Lindgren wrote:
> Here are few more fixes for 2.6.25 if there's still time to get them
> applied.
There's always time to get bug fixes applied. There's never a point
where we exclude real bug fixes being accepted.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/6] Few more omap fixes for 2.6.25
2008-03-13 23:19 ` [PATCH 0/6] Few more omap fixes for 2.6.25 Russell King - ARM Linux
@ 2008-03-14 8:42 ` Tony Lindgren
0 siblings, 0 replies; 11+ messages in thread
From: Tony Lindgren @ 2008-03-14 8:42 UTC (permalink / raw)
To: Russell King - ARM Linux; +Cc: linux-arm-kernel, linux-omap
* Russell King - ARM Linux <linux@arm.linux.org.uk> [080314 01:20]:
> On Thu, Mar 13, 2008 at 05:45:13PM +0200, Tony Lindgren wrote:
> > Here are few more fixes for 2.6.25 if there's still time to get them
> > applied.
>
> There's always time to get bug fixes applied. There's never a point
> where we exclude real bug fixes being accepted.
Thanks, I've posted them as patch 4866/1 to the patch system.
Tony
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/6] ARM: OMAP: Fix clockevent support for hrtimers
2008-03-13 15:45 ` [PATCH 1/6] ARM: OMAP: Fix clockevent support for hrtimers Tony Lindgren
2008-03-13 15:45 ` [PATCH 2/6] ARM: OMAP: Fix GPIO IRQ unmask Tony Lindgren
@ 2008-03-20 14:43 ` Russell King - ARM Linux
2008-03-20 15:03 ` Tony Lindgren
1 sibling, 1 reply; 11+ messages in thread
From: Russell King - ARM Linux @ 2008-03-20 14:43 UTC (permalink / raw)
To: Tony Lindgren; +Cc: linux-arm-kernel, linux-omap
On Thu, Mar 13, 2008 at 05:45:14PM +0200, Tony Lindgren wrote:
> Signed-off-by: Tim Bird <tim.bird@am.sony.com>
> Signed-off-by: Kevin Hilman <khilman@mvista.com.
Only just spotted this... That trailing '.' should be a '>'.
> Signed-off-by: Tony Lindgren <tony@atomide.com>
Any chance of getting that fixed and I'll re-pull?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/6] ARM: OMAP: Fix clockevent support for hrtimers
2008-03-20 14:43 ` [PATCH 1/6] ARM: OMAP: Fix clockevent support for hrtimers Russell King - ARM Linux
@ 2008-03-20 15:03 ` Tony Lindgren
0 siblings, 0 replies; 11+ messages in thread
From: Tony Lindgren @ 2008-03-20 15:03 UTC (permalink / raw)
To: Russell King - ARM Linux; +Cc: linux-arm-kernel, linux-omap
* Russell King - ARM Linux <linux@arm.linux.org.uk> [080320 16:45]:
> On Thu, Mar 13, 2008 at 05:45:14PM +0200, Tony Lindgren wrote:
> > Signed-off-by: Tim Bird <tim.bird@am.sony.com>
> > Signed-off-by: Kevin Hilman <khilman@mvista.com.
>
> Only just spotted this... That trailing '.' should be a '>'.
>
> > Signed-off-by: Tony Lindgren <tony@atomide.com>
>
> Any chance of getting that fixed and I'll re-pull?
Sure, it's now rebased against v2.6.25-rc6-117-g457fb60 with the
typo fixed.
Tony
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-03-20 15:03 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-13 15:45 [PATCH 0/6] Few more omap fixes for 2.6.25 Tony Lindgren
2008-03-13 15:45 ` [PATCH 1/6] ARM: OMAP: Fix clockevent support for hrtimers Tony Lindgren
2008-03-13 15:45 ` [PATCH 2/6] ARM: OMAP: Fix GPIO IRQ unmask Tony Lindgren
2008-03-13 15:45 ` [PATCH 3/6] ARM: OMAP: Fix missing makefile options Tony Lindgren
2008-03-13 15:45 ` [PATCH 4/6] ARM: OMAP: Fix chain_a_transfer return value Tony Lindgren
2008-03-13 15:45 ` [PATCH 5/6] ARM: OMAP: Fix DMA CLINK mask, clear spurious interrupt Tony Lindgren
2008-03-13 15:45 ` [PATCH 6/6] ARM: OMAP1: Fix typo in OMAP1 MPU clock source initialization Tony Lindgren
2008-03-20 14:43 ` [PATCH 1/6] ARM: OMAP: Fix clockevent support for hrtimers Russell King - ARM Linux
2008-03-20 15:03 ` Tony Lindgren
2008-03-13 23:19 ` [PATCH 0/6] Few more omap fixes for 2.6.25 Russell King - ARM Linux
2008-03-14 8:42 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox