Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281912
b: refs/heads/master
c: 08f86b3
h: refs/heads/master
v: v3
  • Loading branch information
Govindraj.R authored and Kevin Hilman committed Dec 15, 2011
1 parent 178c3d2 commit f404043
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 8612bd22f30369745d0fda0d540aca39ab591cc5
refs/heads/master: 08f86b3eab9807e6d36de7e00025abad893ff557
9 changes: 8 additions & 1 deletion trunk/arch/arm/mach-omap2/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ struct omap_uart_state {
static LIST_HEAD(uart_list);
static u8 num_uarts;
static u8 console_uart_id = -1;
static u8 no_console_suspend;

#define DEFAULT_RXDMA_POLLRATE 1 /* RX DMA polling rate (us) */
#define DEFAULT_RXDMA_BUFSIZE 4096 /* RX DMA buffer size */
Expand Down Expand Up @@ -298,6 +299,10 @@ static int __init omap_serial_early_init(void)

if (cmdline_find_option(uart_name)) {
console_uart_id = uart->num;

if (cmdline_find_option("no_console_suspend"))
no_console_suspend = true;

/*
* omap-uart can be used for earlyprintk logs
* So if omap-uart is used as console then prevent
Expand Down Expand Up @@ -385,7 +390,9 @@ void __init omap_serial_init_port(struct omap_board_data *bdata,
WARN(IS_ERR(pdev), "Could not build omap_device for %s: %s.\n",
name, oh->name);

omap_device_disable_idle_on_suspend(pdev);
if ((console_uart_id == bdata->id) && no_console_suspend)
omap_device_disable_idle_on_suspend(pdev);

oh->mux = omap_hwmod_mux_init(bdata->pads, bdata->pads_cnt);

uart->pdev = pdev;
Expand Down

0 comments on commit f404043

Please sign in to comment.