Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 216975
b: refs/heads/master
c: 8da37d9
h: refs/heads/master
i:
  216973: dbd83da
  216971: c502e58
  216967: 593b68c
  216959: e5bc886
v: v3
  • Loading branch information
Kevin Hilman committed Sep 29, 2010
1 parent e6dc54a commit 57d2119
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3244fcd227526a2f21018a280c7af0a9219c6ff4
refs/heads/master: 8da37d9dc52befa8b55bdc20eef2a4aaf20e0c8d
23 changes: 21 additions & 2 deletions trunk/arch/arm/mach-omap2/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,29 @@ struct omap_uart_state {
static LIST_HEAD(uart_list);
static u8 num_uarts;

/*
* Since these idle/enable hooks are used in the idle path itself
* which has interrupts disabled, use the non-locking versions of
* the hwmod enable/disable functions.
*/
static int uart_idle_hwmod(struct omap_device *od)
{
_omap_hwmod_idle(od->hwmods[0]);

return 0;
}

static int uart_enable_hwmod(struct omap_device *od)
{
_omap_hwmod_enable(od->hwmods[0]);

return 0;
}

static struct omap_device_pm_latency omap_uart_latency[] = {
{
.deactivate_func = omap_device_idle_hwmods,
.activate_func = omap_device_enable_hwmods,
.deactivate_func = uart_idle_hwmod,
.activate_func = uart_enable_hwmod,
.flags = OMAP_DEVICE_LATENCY_AUTO_ADJUST,
},
};
Expand Down

0 comments on commit 57d2119

Please sign in to comment.