• Doug Kehn's avatar
    tty/serial: omap: fix !wakeirq message · 1cf94d3a
    Doug Kehn authored
    When wakeirq is not used/enabled, "no wakeirq for uart0" is output for
    all TTY as the log message is generated before the port line is
    initialized.
    [    0.802656] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.811700] omap_uart 44e09000.serial: no wakeirq for uart0
    [    0.812379] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [    1.503622] console [ttyO0] enabled
    [    1.509836] omap_uart 48022000.serial: no wakeirq for uart0
    [    1.516118] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
    [    1.527711] omap_uart 48024000.serial: no wakeirq for uart0
    [    1.533881] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 90, base_baud = 3000000) is a OMAP UART2
    [    1.545324] omap_uart 481a6000.serial: no wakeirq for uart0
    [    1.551410] 481a6000.serial: ttyO3 at MMIO 0x481a6000 (irq = 60, base_baud = 3000000) is a OMAP UART3
    [    1.562946] omap_uart 481a8000.serial: no wakeirq for uart0
    [    1.569036] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 61, base_baud = 3000000) is a OMAP UART4
    
    Fix by moving wakeirq initialization, check, and dev_info() call to
    after port line initialization and validation.
    Signed-off-by: default avatarDoug Kehn <rdkehn@yahoo.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    1cf94d3a
omap-serial.c 48.7 KB