~ubuntu-branches/ubuntu/wily/linux-ti-omap4/wily

« back to all changes in this revision

Viewing changes to drivers/tty/serial/pch_uart.c

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2013-07-11 18:35:20 UTC
  • Revision ID: package-import@ubuntu.com-20130711183520-htnf1x4y5r11hndr
Tags: 3.5.0-229.42
* Release Tracking Bug
  - LP: #1199276

[ Paolo Pisati ]

* [Config] CONFIG_ATH9K_LEGACY_RATE_CONTROL is not set

Show diffs side-by-side

added added

removed removed

Lines of Context:
1034
1034
static void pch_uart_err_ir(struct eg20t_port *priv, unsigned int lsr)
1035
1035
{
1036
1036
        u8 fcr = ioread8(priv->membase + UART_FCR);
 
1037
        struct uart_port *port = &priv->port;
 
1038
        struct tty_struct *tty = tty_port_tty_get(&port->state->port);
 
1039
        char   *error_msg[5] = {};
 
1040
        int    i = 0;
1037
1041
 
1038
1042
        /* Reset FIFO */
1039
1043
        fcr |= UART_FCR_CLEAR_RCVR;
1040
1044
        iowrite8(fcr, priv->membase + UART_FCR);
1041
1045
 
1042
1046
        if (lsr & PCH_UART_LSR_ERR)
1043
 
                dev_err(&priv->pdev->dev, "Error data in FIFO\n");
1044
 
 
1045
 
        if (lsr & UART_LSR_FE)
1046
 
                dev_err(&priv->pdev->dev, "Framing Error\n");
1047
 
 
1048
 
        if (lsr & UART_LSR_PE)
1049
 
                dev_err(&priv->pdev->dev, "Parity Error\n");
1050
 
 
1051
 
        if (lsr & UART_LSR_OE)
1052
 
                dev_err(&priv->pdev->dev, "Overrun Error\n");
 
1047
                error_msg[i++] = "Error data in FIFO\n";
 
1048
 
 
1049
        if (lsr & UART_LSR_FE) {
 
1050
                port->icount.frame++;
 
1051
                error_msg[i++] = "  Framing Error\n";
 
1052
        }
 
1053
 
 
1054
        if (lsr & UART_LSR_PE) {
 
1055
                port->icount.parity++;
 
1056
                error_msg[i++] = "  Parity Error\n";
 
1057
        }
 
1058
 
 
1059
        if (lsr & UART_LSR_OE) {
 
1060
                port->icount.overrun++;
 
1061
                error_msg[i++] = "  Overrun Error\n";
 
1062
        }
 
1063
 
 
1064
        if (tty == NULL) {
 
1065
                for (i = 0; error_msg[i] != NULL; i++)
 
1066
                        dev_err(&priv->pdev->dev, error_msg[i]);
 
1067
        }
1053
1068
}
1054
1069
 
1055
1070
static irqreturn_t pch_uart_interrupt(int irq, void *dev_id)