Skip to content

Commit

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

#define DEFAULT_RXDMA_POLLRATE 1 /* RX DMA polling rate (us) */
#define DEFAULT_RXDMA_BUFSIZE 4096 /* RX DMA buffer size */
Expand Down Expand Up @@ -300,6 +301,13 @@ static int __init omap_serial_early_init(void)
if (cmdline_find_option(uart_name)) {
console_uart_id = uart->num;

if (console_loglevel >= 10) {
uart_debug = true;
pr_info("%s used as console in debug mode"
" uart%d clocks will not be"
" gated", uart_name, uart->num);
}

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

Expand Down Expand Up @@ -399,7 +407,8 @@ void __init omap_serial_init_port(struct omap_board_data *bdata,

oh->dev_attr = uart;

if ((cpu_is_omap34xx() || cpu_is_omap44xx()) && bdata->pads)
if (((cpu_is_omap34xx() || cpu_is_omap44xx()) && bdata->pads)
&& !uart_debug)
device_init_wakeup(&pdev->dev, true);
}

Expand Down

0 comments on commit 062945e

Please sign in to comment.