mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 06:37:59 +00:00
OMAP: UART: use non-locking versions of hwmod enable/idle functions
Since the UART enable/idle is done during the idle path (with interrupts disabled), use the non-locking versions of the hwmod enable/idle functions. Signed-off-by: Govindraj.R <govindraj.raja@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
This commit is contained in:
parent
3244fcd227
commit
8da37d9dc5
1 changed files with 21 additions and 2 deletions
|
@ -105,10 +105,29 @@ struct omap_uart_state {
|
||||||
static LIST_HEAD(uart_list);
|
static LIST_HEAD(uart_list);
|
||||||
static u8 num_uarts;
|
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[] = {
|
static struct omap_device_pm_latency omap_uart_latency[] = {
|
||||||
{
|
{
|
||||||
.deactivate_func = omap_device_idle_hwmods,
|
.deactivate_func = uart_idle_hwmod,
|
||||||
.activate_func = omap_device_enable_hwmods,
|
.activate_func = uart_enable_hwmod,
|
||||||
.flags = OMAP_DEVICE_LATENCY_AUTO_ADJUST,
|
.flags = OMAP_DEVICE_LATENCY_AUTO_ADJUST,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue