- Fix compile errors in SGI console drivers (linux-next tree)
Subsystems (2)
PATCH 1/1 - Fix compile errors in SGI console drivers (linux-next tree)
Fix compile errors in SGI console drivers caused by changes to the tty_port structures in the linux-next tree.
Signed-off-by Jack Steiner <[email protected]>
--- drivers/serial/ioc3_serial.c | 14 +++++++------- drivers/serial/sn_console.c | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-)
drivers/serial/ioc3_serial.c +7 -7
@@ -905,7 +905,7 @@ static void transmit_chars(struct uart_preturn ; info = the_port->info; - tty = info->tty; + tty = info->port.tty;if (uart_circ_empty (&info->xmit) ||uart_tx_stopped (the_port)) {/* Nothing to do or hw stopped */
@@ -997,14 +997,14 @@ ioc3_change_speed(struct uart_port *the_ the_port->ignore_status_mask =N_ALL_INPUT ; - info->tty->low_latency =1 ; + info->port.tty->low_latency =1 ; -if (I_IGNPAR (info->tty)) +if (I_IGNPAR (info->port.tty)) the_port->ignore_status_mask &= ~(N_PARITY_ERROR |N_FRAMING_ERROR ); -if (I_IGNBRK (info->tty)) { +if (I_IGNBRK (info->port.tty)) { the_port->ignore_status_mask &= ~N_BREAK ; -if (I_IGNPAR (info->tty)) +if (I_IGNPAR (info->port.tty)) the_port->ignore_status_mask &= ~N_OVERRUN_ERROR ; }if (!(cflag &CREAD )) {
@@ -1399,14 +1399,14 @@ static int receive_chars(struct uart_por/* Make sure all the pointers are "good" ones */ if (!info)return 0 ; -if (!info->tty) +if (!info->port.tty)return 0 ;if (!(port->ip_flags &INPUT_ENABLE ))return 0 ;spin_lock_irqsave (&the_port->lock, pflags); - tty = info->tty; + tty = info->port.tty; read_count =do_read (the_port, ch,MAX_CHARS );if (read_count >0 ) {
drivers/serial/sn_console.c +1 -1
@@ -471,7 +471,7 @@ sn_receive_chars(struct sn_cons_port *poif (port->sc_port.info) {/* The serial_core stuffs are initilized, use them */ - tty = port->sc_port.info->tty; + tty = port->sc_port.info->port.tty; }else {/* Not registered yet - can't pass to tty layer. */
At Thu, 3 Jul 2008 09:28:00 -0500,
Quoted 11 lines · Jack Steiner
Fix compile errors in SGI console drivers caused by changes to the
tty_portstructures in the linux-next tree.Signed-off-by Jack Steiner <[email protected]>--- drivers/serial/ioc3_serial.c | 14 +++++++------- drivers/serial/sn_console.c | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-)
Similar fixes seem needed over many of drivers/serial/*.c.
The below is the patch to replace blindly all possible places, including Jack's fixes.
Signed-off-by Takashi Iwai <[email protected]>
---
drivers/serial/21285.c +3 -3
@@ -86,7 +86,7 @@ static void serial21285_enable_ms(struct uart_port *port)static irqreturn_t serial21285_rx_chars (int irq,void *dev_id) {struct uart_port *port = dev_id; -struct tty_struct *tty = port->info->tty; +struct tty_struct *tty = port->info->port.tty;unsigned int status, ch, flag, rxs, max_count =256 ; status = *CSR_UARTFLG ;
@@ -235,8 +235,8 @@ serial21285_set_termios(struct uart_port *port, struct ktermios *termios, baud =uart_get_baud_rate (port, termios, old,0 , port->uartclk/16 ); quot =uart_get_divisor (port, baud); -if (port->info && port->info->tty) { -struct tty_struct *tty = port->info->tty; +if (port->info && port->info->port.tty) { +struct tty_struct *tty = port->info->port.tty;unsigned int b = port->uartclk / (16 * quot);tty_encode_baud_rate (tty, b, b); }
drivers/serial/68328serial.c +15 -15
@@ -249,7 +249,7 @@ static void status_handle(struct m68k_serial *info, unsigned short status) {#if 0 if (status &DCD ) { -if ((info->tty->termios->c_cflag &CRTSCTS ) && +if ((info->port.tty->termios->c_cflag &CRTSCTS ) && ((info->curregs[3 ] &AUTO_ENAB )==0 )) { info->curregs[3 ] |=AUTO_ENAB ; info->pendregs[3 ] |=AUTO_ENAB ;
@@ -274,7 +274,7 @@ static void status_handle(struct m68k_serial *info, unsigned short status)static void receive_chars (struct m68k_serial *info,unsigned short rx) { -struct tty_struct *tty = info->tty; +struct tty_struct *tty = info->port.tty;m68328_uart *uart = &uart_addr[info->line];unsigned char ch, flag;
@@ -345,7 +345,7 @@ static void transmit_chars(struct m68k_serial *info) goto clear_and_return; } -if ((info->xmit_cnt <=0 ) || info->tty->stopped) { +if ((info->xmit_cnt <=0 ) || info->port.tty->stopped) {/* That's peculiar... TX ints off */ uart->ustcnt &= ~USTCNT_TX_INTR_MASK ; goto clear_and_return;
@@ -403,7 +403,7 @@ static void do_softint(struct work_struct *work) struct m68k_serial *info = container_of(work, struct m68k_serial, tqueue);struct tty_struct *tty; - tty = info->tty; + tty = info->port.tty;if (!tty)return ;#if 0
@@ -427,7 +427,7 @@ static void do_serial_hangup(struct work_struct *work) struct m68k_serial *info = container_of(work, struct m68k_serial, tqueue_hangup);struct tty_struct *tty; - tty = info->tty; + tty = info->port.tty;if (!tty)return ;
@@ -471,8 +471,8 @@ static int startup(struct m68k_serial * info) uart->ustcnt =USTCNT_UEN |USTCNT_RXEN |USTCNT_RX_INTR_MASK ;#endif -if (info->tty) -clear_bit (TTY_IO_ERROR , &info->tty->flags); +if (info->port.tty) +clear_bit (TTY_IO_ERROR , &info->port.tty->flags); info->xmit_cnt = info->xmit_head = info->xmit_tail =0 ;/*
@@ -506,8 +506,8 @@ static void shutdown(struct m68k_serial * info) info->xmit_buf =0 ; } -if (info->tty) -set_bit (TTY_IO_ERROR , &info->tty->flags); +if (info->port.tty) +set_bit (TTY_IO_ERROR , &info->port.tty->flags); info->flags &= ~S_INITIALIZED ;local_irq_restore (flags);
@@ -573,9 +573,9 @@ static void change_speed(struct m68k_serial *info)unsigned cflag;int i; -if (!info->tty || !info->tty->termios) +if (!info->port.tty || !info->port.tty->termios)return ; - cflag = info->tty->termios->c_cflag; + cflag = info->port.tty->termios->c_cflag;if (!(port = info->port))return ;
@@ -1131,7 +1131,7 @@ static void rs_close(struct tty_struct *tty, struct file * filp)tty_ldisc_flush (tty); tty->closing =0 ; info->event =0 ; - info->tty =0 ; + info->port.tty =NULL ;#warning "This is not and has never been valid so fix it"#if 0 if (tty->ldisc.num != ldiscs[N_TTY ].num) {
@@ -1169,7 +1169,7 @@ void rs_hangup(struct tty_struct *tty) info->event =0 ; info->count =0 ; info->flags &= ~S_NORMAL_ACTIVE ; - info->tty =0 ; + info->port.tty =NULL ;wake_up_interruptible (&info->open_wait); }
@@ -1286,7 +1286,7 @@ int rs_open(struct tty_struct *tty, struct file * filp) info->count++; tty->driver_data = info; - info->tty = tty; + info->port.tty = tty;/* * Start up serial port
@@ -1363,7 +1363,7 @@ rs68328_init(void) info = &m68k_soft[i]; info->magic =SERIAL_MAGIC ; info->port = (int ) &uart_addr[i]; - info->tty =0 ; + info->port.tty =NULL ; info->irq = uart_irqs[i]; info->custom_divisor =16 ; info->close_delay =50 ;
drivers/serial/68360serial.c +26 -26
169 lines not on this page · raw message
drivers/serial/amba-pl010.c +1 -1
@@ -117,7 +117,7 @@ static void pl010_enable_ms(struct uart_port *port)static void pl010_rx_chars (struct uart_amba_port *uap) { -struct tty_struct *tty = uap->port.info->tty; +struct tty_struct *tty = uap->port.info->port.tty;unsigned int status, ch, flag, rsr, max_count =256 ; status =readb (uap->port.membase + UART01x_FR);
drivers/serial/amba-pl011.c +1 -1
@@ -107,7 +107,7 @@ static void pl011_enable_ms(struct uart_port *port)static void pl011_rx_chars (struct uart_amba_port *uap) { -struct tty_struct *tty = uap->port.info->tty; +struct tty_struct *tty = uap->port.info->port.tty;unsigned int status, ch, flag, max_count =256 ; status =readw (uap->port.membase + UART01x_FR);
drivers/serial/bfin_5xx.c +5 -5
@@ -175,7 +175,7 @@ int kgdb_get_debug_char(void)#ifdef CONFIG_SERIAL_BFIN_PIO static void bfin_serial_rx_chars (struct bfin_serial_port *uart) { -struct tty_struct *tty = uart->port.info->tty; +struct tty_struct *tty = uart->port.info->port.tty;unsigned int status, ch, flg;static struct timeval anomaly_start = { .tv_sec =0 };
@@ -393,7 +393,7 @@ static void bfin_serial_dma_tx_chars(struct bfin_serial_port *uart)static void bfin_serial_dma_rx_chars (struct bfin_serial_port *uart) { -struct tty_struct *tty = uart->port.info->tty; +struct tty_struct *tty = uart->port.info->port.tty;int i, flg, status; status =UART_GET_LSR (uart);
@@ -552,7 +552,7 @@ static void bfin_serial_mctrl_check(struct bfin_serial_port *uart)#ifdef CONFIG_SERIAL_BFIN_CTSRTS unsigned int status;struct uart_info *info = uart->port.info; -struct tty_struct *tty = info->tty; +struct tty_struct *tty = info->port.tty; status =bfin_serial_get_mctrl (&uart->port);uart_handle_cts_change (&uart->port, status &TIOCM_CTS );
@@ -814,10 +814,10 @@ static void bfin_serial_set_ldisc(struct uart_port *port)int line = port->line;unsigned short val; -if (line >= port->info->tty->driver->num) +if (line >= port->info->port.tty->driver->num)return ; -switch (port->info->tty->ldisc.num) { +switch (port->info->port.tty->ldisc.num) {case N_IRDA : val =UART_GET_GCTL (&bfin_serial_ports[line]); val |= (IREN |RPOLC );
drivers/serial/bfin_sport_uart.c +2 -2
@@ -174,7 +174,7 @@ static int sport_uart_setup(struct sport_uart_port *up, int sclk, int baud_rate)static irqreturn_t sport_uart_rx_irq (int irq,void *dev_id) {struct sport_uart_port *up = dev_id; -struct tty_struct *tty = up->port.info->tty; +struct tty_struct *tty = up->port.info->port.tty;unsigned int ch; do {
@@ -201,7 +201,7 @@ static irqreturn_t sport_uart_tx_irq(int irq, void *dev_id)static irqreturn_t sport_uart_err_irq (int irq,void *dev_id) {struct sport_uart_port *up = dev_id; -struct tty_struct *tty = up->port.info->tty; +struct tty_struct *tty = up->port.info->port.tty;unsigned int stat =SPORT_GET_STAT (up);/* Overflow in RX FIFO */
drivers/serial/clps711x.c +1 -1
@@ -93,7 +93,7 @@ static void clps711xuart_enable_ms(struct uart_port *port)static irqreturn_t clps711xuart_int_rx (int irq,void *dev_id) {struct uart_port *port = dev_id; -struct tty_struct *tty = port->info->tty; +struct tty_struct *tty = port->info->port.tty;unsigned int status, ch, flg; status =clps_readl (SYSFLG (port));
drivers/serial/crisv10.c +41 -38
231 lines not on this page · raw message
drivers/serial/dz.c +2 -2
@@ -197,7 +197,7 @@ static inline void dz_receive_chars(struct dz_mux *mux)while ((status =dz_in (dport,DZ_RBUF )) &DZ_DVAL ) { dport = &mux->dport[LINE (status)]; uport = &dport->port; - tty = uport->info->tty;/* point to the proper dev */ + tty = uport->info->port.tty;/* point to the proper dev */ ch =UCHAR (status);/* grab the char */ flag =TTY_NORMAL ;
@@ -249,7 +249,7 @@ static inline void dz_receive_chars(struct dz_mux *mux) }for (i =0 ; i <DZ_NB_PORT ; i++)if (lines_rx[i]) -tty_flip_buffer_push (mux->dport[i].port.info->tty); +tty_flip_buffer_push (mux->dport[i].port.info->port.tty); }/*
drivers/serial/imx.c +1 -1
@@ -346,7 +346,7 @@ static irqreturn_t imx_rxint(int irq, void *dev_id) {struct imx_port *sport = dev_id;unsigned int rx,flg,ignored =0 ; -struct tty_struct *tty = sport->port.info->tty; +struct tty_struct *tty = sport->port.info->port.tty;unsigned long flags, temp;spin_lock_irqsave (&sport->port.lock,flags);
drivers/serial/ioc3_serial.c +7 -7
@@ -905,7 +905,7 @@ static void transmit_chars(struct uart_port *the_port)return ; info = the_port->info; - tty = info->tty; + tty = info->port.tty;if (uart_circ_empty (&info->xmit) ||uart_tx_stopped (the_port)) {/* Nothing to do or hw stopped */
@@ -997,14 +997,14 @@ ioc3_change_speed(struct uart_port *the_port, the_port->ignore_status_mask =N_ALL_INPUT ; - info->tty->low_latency =1 ; + info->port.tty->low_latency =1 ; -if (I_IGNPAR (info->tty)) +if (I_IGNPAR (info->port.tty)) the_port->ignore_status_mask &= ~(N_PARITY_ERROR |N_FRAMING_ERROR ); -if (I_IGNBRK (info->tty)) { +if (I_IGNBRK (info->port.tty)) { the_port->ignore_status_mask &= ~N_BREAK ; -if (I_IGNPAR (info->tty)) +if (I_IGNPAR (info->port.tty)) the_port->ignore_status_mask &= ~N_OVERRUN_ERROR ; }if (!(cflag &CREAD )) {
@@ -1399,14 +1399,14 @@ static int receive_chars(struct uart_port *the_port)/* Make sure all the pointers are "good" ones */ if (!info)return 0 ; -if (!info->tty) +if (!info->port.tty)return 0 ;if (!(port->ip_flags &INPUT_ENABLE ))return 0 ;spin_lock_irqsave (&the_port->lock, pflags); - tty = info->tty; + tty = info->port.tty; read_count =do_read (the_port, ch,MAX_CHARS );if (read_count >0 ) {
drivers/serial/ioc4_serial.c +11 -10
@@ -1635,7 +1635,7 @@ static void transmit_chars(struct uart_port *the_port)return ; info = the_port->info; - tty = info->tty; + tty = info->port.tty;if (uart_circ_empty (&info->xmit) ||uart_tx_stopped (the_port)) {/* Nothing to do or hw stopped */
@@ -1738,14 +1738,14 @@ ioc4_change_speed(struct uart_port *the_port, the_port->ignore_status_mask =N_ALL_INPUT ; - info->tty->low_latency =1 ; + info->port.tty->low_latency =1 ; -if (I_IGNPAR (info->tty)) +if (I_IGNPAR (info->port.tty)) the_port->ignore_status_mask &= ~(N_PARITY_ERROR |N_FRAMING_ERROR ); -if (I_IGNBRK (info->tty)) { +if (I_IGNBRK (info->port.tty)) { the_port->ignore_status_mask &= ~N_BREAK ; -if (I_IGNPAR (info->tty)) +if (I_IGNPAR (info->port.tty)) the_port->ignore_status_mask &= ~N_OVERRUN_ERROR ; }if (!(cflag &CREAD )) {
@@ -1801,7 +1801,8 @@ static inline int ic4_startup_local(struct uart_port *the_port)ioc4_set_proto (port, the_port->mapbase);/* set the speed of the serial port */ -ioc4_change_speed (the_port, info->tty->termios, (struct ktermios *)0 ); +ioc4_change_speed (the_port, info->port.tty->termios, + (struct ktermios *)0 );return 0 ; }
@@ -2346,11 +2347,11 @@ static void receive_chars(struct uart_port *the_port)/* Make sure all the pointers are "good" ones */ if (!info)return ; -if (!info->tty) +if (!info->port.tty)return ;spin_lock_irqsave (&the_port->lock, pflags); - tty = info->tty; + tty = info->port.tty; request_count =tty_buffer_request_room (tty,IOC4_MAX_CHARS );
@@ -2440,8 +2441,8 @@ static void ic4_shutdown(struct uart_port *the_port)wake_up_interruptible (&info->delta_msr_wait); -if (info->tty) -set_bit (TTY_IO_ERROR , &info->tty->flags); +if (info->port.tty) +set_bit (TTY_IO_ERROR , &info->port.tty->flags);spin_lock_irqsave (&the_port->lock, port_flags);set_notification (port,N_ALL ,0 );
drivers/serial/ip22zilog.c +2 -2
@@ -257,8 +257,8 @@ static struct tty_struct *ip22zilog_receive_chars(struct uart_ip22zilog_port *up tty =NULL ;if (up->port.info !=NULL && - up->port.info->tty !=NULL ) - tty = up->port.info->tty; + up->port.info->port.tty !=NULL ) + tty = up->port.info->port.tty;for (;;) { ch =readb (&channel->control);
drivers/serial/m32r_sio.c +1 -1
@@ -325,7 +325,7 @@ static void m32r_sio_enable_ms(struct uart_port *port)static void receive_chars (struct uart_sio_port *up,int *status) { -struct tty_struct *tty = up->port.info->tty; +struct tty_struct *tty = up->port.info->port.tty;unsigned char ch;unsigned char flag;int max_count =256 ;
drivers/serial/mcf.c +1 -1
@@ -312,7 +312,7 @@ static void mcf_rx_chars(struct mcf_uart *pp)uart_insert_char (port, status,MCFUART_USR_RXOVERRUN , ch, flag); } -tty_flip_buffer_push (port->info->tty); +tty_flip_buffer_push (port->info->port.tty); }/****************************************************************************/
drivers/serial/mcfserial.c +16 -16
@@ -327,7 +327,7 @@ static void mcfrs_start(struct tty_struct *tty)static inline void receive_chars (struct mcf_serial *info) {volatile unsigned char *uartp; -struct tty_struct *tty = info->tty; +struct tty_struct *tty = info->port.tty;unsigned char status, ch, flag;if (!tty)
@@ -382,7 +382,7 @@ static inline void transmit_chars(struct mcf_serial *info) info->stats.tx++; } -if ((info->xmit_cnt <=0 ) || info->tty->stopped) { +if ((info->xmit_cnt <=0 ) || info->port.tty->stopped) { info->imr &= ~MCFUART_UIR_TXREADY ; uartp[MCFUART_UIMR ] = info->imr;return ;
@@ -428,7 +428,7 @@ irqreturn_t mcfrs_interrupt(int irq, void *dev_id)static void mcfrs_offintr (struct work_struct *work) { struct mcf_serial *info = container_of(work, struct mcf_serial, tqueue); -struct tty_struct *tty = info->tty; +struct tty_struct *tty = info->port.tty;if (tty)tty_wakeup (tty);
@@ -498,7 +498,7 @@ static void mcfrs_timer(void)static void do_serial_hangup (struct work_struct *work) { struct mcf_serial *info = container_of(work, struct mcf_serial, tqueue_hangup); -struct tty_struct *tty = info->tty; +struct tty_struct *tty = info->port.tty;if (tty)tty_hangup (tty);
@@ -532,8 +532,8 @@ static int startup(struct mcf_serial * info) uartp[MCFUART_UCR ] =MCFUART_UCR_CMDRESETTX ;/* reset TX */ mcfrs_setsignals (info,1 ,1 ); -if (info->tty) -clear_bit (TTY_IO_ERROR , &info->tty->flags); +if (info->port.tty) +clear_bit (TTY_IO_ERROR , &info->port.tty->flags); info->xmit_cnt = info->xmit_head = info->xmit_tail =0 ;/*
@@ -578,7 +578,7 @@ static void shutdown(struct mcf_serial * info) uartp[MCFUART_UCR ] =MCFUART_UCR_CMDRESETRX ;/* reset RX */ uartp[MCFUART_UCR ] =MCFUART_UCR_CMDRESETTX ;/* reset TX */ -if (!info->tty || (info->tty->termios->c_cflag &HUPCL )) +if (!info->port.tty || (info->port.tty->termios->c_cflag &HUPCL ))mcfrs_setsignals (info,0 ,0 );if (info->xmit_buf) {
@@ -586,8 +586,8 @@ static void shutdown(struct mcf_serial * info) info->xmit_buf =0 ; } -if (info->tty) -set_bit (TTY_IO_ERROR , &info->tty->flags); +if (info->port.tty) +set_bit (TTY_IO_ERROR , &info->port.tty->flags); info->flags &= ~ASYNC_INITIALIZED ;local_irq_restore (flags);
@@ -609,9 +609,9 @@ static void mcfrs_change_speed(struct mcf_serial *info)unsigned int fraction;#endif -if (!info->tty || !info->tty->termios) +if (!info->port.tty || !info->port.tty->termios)return ; - cflag = info->tty->termios->c_cflag; + cflag = info->port.tty->termios->c_cflag;if (info->addr ==0 )return ;
@@ -623,7 +623,7 @@ static void mcfrs_change_speed(struct mcf_serial *info)if (i &CBAUDEX ) { i &= ~CBAUDEX ;if (i <1 || i >4 ) - info->tty->termios->c_cflag &= ~CBAUDEX ; + info->port.tty->termios->c_cflag &= ~CBAUDEX ;else i +=15 ; }
@@ -1216,7 +1216,7 @@ static void mcfrs_close(struct tty_struct *tty, struct file * filp) tty->closing =0 ; info->event =0 ; - info->tty =0 ; + info->port.tty =NULL ;#if 0 if (tty->ldisc.num != ldiscs[N_TTY ].num) {if (tty->ldisc.close)
@@ -1325,7 +1325,7 @@ void mcfrs_hangup(struct tty_struct *tty) info->event =0 ; info->count =0 ; info->flags &= ~ASYNC_NORMAL_ACTIVE ; - info->tty =0 ; + info->port.tty =NULL ;wake_up_interruptible (&info->open_wait); }
@@ -1452,7 +1452,7 @@ int mcfrs_open(struct tty_struct *tty, struct file * filp)#endif info->count++; tty->driver_data = info; - info->tty = tty; + info->port.tty = tty;/* * Start up serial port
@@ -1767,7 +1767,7 @@ mcfrs_init(void)for (i =0 , info = mcfrs_table; (i <NR_PORTS ); i++, info++) { info->magic =SERIAL_MAGIC ; info->line = i; - info->tty =0 ; + info->port.tty =NULL ; info->custom_divisor =16 ; info->close_delay =50 ; info->closing_wait =3000 ;
drivers/serial/mpc52xx_uart.c +1 -1
@@ -732,7 +732,7 @@ static struct uart_ops mpc52xx_uart_ops = {static inline int mpc52xx_uart_int_rx_chars (struct uart_port *port) { -struct tty_struct *tty = port->info->tty; +struct tty_struct *tty = port->info->port.tty;unsigned char ch, flag;unsigned short status;
drivers/serial/mpsc.c +1 -1
@@ -936,7 +936,7 @@ static int serial_polled;static int mpsc_rx_intr (struct mpsc_port_info *pi) {struct mpsc_rx_desc *rxre; -struct tty_struct *tty = pi->port.info->tty; +struct tty_struct *tty = pi->port.info->port.tty;u32 cmdstat, bytes_in, i;int rc =0 ;u8 *bp;
drivers/serial/mux.c +1 -1
@@ -243,7 +243,7 @@ static void mux_write(struct uart_port *port)static void mux_read (struct uart_port *port) {int data; -struct tty_struct *tty = port->info->tty; +struct tty_struct *tty = port->info->port.tty;__u32 start_count = port->icount.rx;while (1 ) {
drivers/serial/netx-serial.c +1 -1
@@ -203,7 +203,7 @@ static void netx_txint(struct uart_port *port)static void netx_rxint (struct uart_port *port) {unsigned char rx, flg, status; -struct tty_struct *tty = port->info->tty; +struct tty_struct *tty = port->info->port.tty;while (!(readl (port->membase +UART_FR ) &FR_RXFE )) { rx =readl (port->membase +UART_DR );
drivers/serial/pnx8xxx_uart.c +1 -1
@@ -181,7 +181,7 @@ static void pnx8xxx_enable_ms(struct uart_port *port)static void pnx8xxx_rx_chars (struct pnx8xxx_port *sport) { -struct tty_struct *tty = sport->port.info->tty; +struct tty_struct *tty = sport->port.info->port.tty;unsigned int status, ch, flg; status = FIFO_TO_SM(serial_in(sport, PNX8XXX_FIFO)) |
drivers/serial/pxa.c +1 -1
@@ -101,7 +101,7 @@ static void serial_pxa_stop_rx(struct uart_port *port)static inline void receive_chars (struct uart_pxa_port *up,int *status) { -struct tty_struct *tty = up->port.info->tty; +struct tty_struct *tty = up->port.info->port.tty;unsigned int ch, flag;int max_count =256 ;
drivers/serial/s3c2410.c +1 -1
@@ -291,7 +291,7 @@ s3c24xx_serial_rx_chars(int irq, void *dev_id) {struct s3c24xx_uart_port *ourport = dev_id;struct uart_port *port = &ourport->port; -struct tty_struct *tty = port->info->tty; +struct tty_struct *tty = port->info->port.tty;unsigned int ufcon, ch, flag, ufstat, uerstat;int max_count =64 ;
drivers/serial/sa1100.c +1 -1
@@ -189,7 +189,7 @@ static void sa1100_enable_ms(struct uart_port *port)static void sa1100_rx_chars (struct sa1100_port *sport) { -struct tty_struct *tty = sport->port.info->tty; +struct tty_struct *tty = sport->port.info->port.tty;unsigned int status, ch, flg; status = UTSR1_TO_SM(UART_GET_UTSR1(sport)) |
drivers/serial/sb1250-duart.c +1 -1
@@ -384,7 +384,7 @@ static void sbd_receive_chars(struct sbd_port *sport)uart_insert_char (uport, status,M_DUART_OVRUN_ERR , ch, flag); } -tty_flip_buffer_push (uport->info->tty); +tty_flip_buffer_push (uport->info->port.tty); }static void sbd_transmit_chars (struct sbd_port *sport)
drivers/serial/sc26xx.c +1 -1
@@ -141,7 +141,7 @@ static struct tty_struct *receive_chars(struct uart_port *port)u8 status;if (port->info !=NULL )/* Unopened serial console */ - tty = port->info->tty; + tty = port->info->port.tty;while (limit-- >0 ) { status =READ_SC_PORT (port,SR );
drivers/serial/serial_ks8695.c +1 -1
@@ -108,7 +108,7 @@ static void ks8695uart_disable_ms(struct uart_port *port)static irqreturn_t ks8695uart_rx_chars (int irq,void *dev_id) {struct uart_port *port = dev_id; -struct tty_struct *tty = port->info->tty; +struct tty_struct *tty = port->info->port.tty;unsigned int status, ch, lsr, flg, max_count =256 ; status =UART_GET_LSR (port);/* clears pending LSR interrupts */
drivers/serial/serial_lh7a40x.c +1 -1
@@ -137,7 +137,7 @@ static void lh7a40xuart_enable_ms (struct uart_port* port)static void lh7a40xuart_rx_chars (struct uart_port * port) { -struct tty_struct * tty = port->info->tty; +struct tty_struct * tty = port->info->port.tty;int cbRxMax =256 ;/* (Gross) limit on receive */ unsigned int data;/* Received data and status */ unsigned int flag;
drivers/serial/sh-sci.c +4 -4
@@ -536,7 +536,7 @@ static void sci_transmit_chars(struct uart_port *port)static inline void sci_receive_chars (struct uart_port *port) {struct sci_port *sci_port = (struct sci_port *)port; -struct tty_struct *tty = port->info->tty; +struct tty_struct *tty = port->info->port.tty;int i, count, copied =0 ;unsigned short status;unsigned char flag;
@@ -657,7 +657,7 @@ static inline int sci_handle_errors(struct uart_port *port) {int copied =0 ;unsigned short status =sci_in (port, SCxSR); -struct tty_struct *tty = port->info->tty; +struct tty_struct *tty = port->info->port.tty;if (status &SCxSR_ORER (port)) {/* overrun error */
@@ -707,7 +707,7 @@ static inline int sci_handle_breaks(struct uart_port *port) {int copied =0 ;unsigned short status =sci_in (port, SCxSR); -struct tty_struct *tty = port->info->tty; +struct tty_struct *tty = port->info->port.tty;struct sci_port *s = &sci_ports[port->line];if (uart_handle_break (port))
@@ -777,7 +777,7 @@ static irqreturn_t sci_er_interrupt(int irq, void *ptr) }else {#if defined(SCIF_ORER )if ((sci_in (port,SCLSR ) &SCIF_ORER ) !=0 ) { -struct tty_struct *tty = port->info->tty; +struct tty_struct *tty = port->info->port.tty;sci_out (port,SCLSR ,0 );tty_insert_flip_char (tty,0 ,TTY_OVERRUN );
drivers/serial/sn_console.c +1 -1
@@ -471,7 +471,7 @@ sn_receive_chars(struct sn_cons_port *port, unsigned long flags)if (port->sc_port.info) {/* The serial_core stuffs are initilized, use them */ - tty = port->sc_port.info->tty; + tty = port->sc_port.info->port.tty; }else {/* Not registered yet - can't pass to tty layer. */
drivers/serial/uartlite.c +2 -2
@@ -75,7 +75,7 @@ static struct uart_port ulite_ports[ULITE_NR_UARTS];static int ulite_receive (struct uart_port *port,int stat) { -struct tty_struct *tty = port->info->tty; +struct tty_struct *tty = port->info->port.tty;unsigned char ch =0 ;char flag =TTY_NORMAL ;
@@ -162,7 +162,7 @@ static irqreturn_t ulite_isr(int irq, void *dev_id) busy |=ulite_transmit (port, stat); }while (busy); -tty_flip_buffer_push (port->info->tty); +tty_flip_buffer_push (port->info->port.tty);return IRQ_HANDLED ; }
drivers/serial/ucc_uart.c +1 -1
@@ -466,7 +466,7 @@ static void qe_uart_int_rx(struct uart_qe_port *qe_port)int i;unsigned char ch, *cp;struct uart_port *port = &qe_port->port; -struct tty_struct *tty = port->info->tty; +struct tty_struct *tty = port->info->port.tty;struct qe_bd *bdp;u16 status;unsigned int flg;
drivers/serial/v850e_uart.c +2 -2
@@ -300,8 +300,8 @@ static irqreturn_t v850e_uart_rx_irq(int irq, void *data) port->icount.rx++; -tty_insert_flip_char (port->info->tty, ch, ch_stat); -tty_schedule_flip (port->info->tty); +tty_insert_flip_char (port->info->port.tty, ch, ch_stat); +tty_schedule_flip (port->info->port.tty);return IRQ_HANDLED ; }
drivers/serial/vr41xx_siu.c +1 -1
@@ -318,7 +318,7 @@ static inline void receive_chars(struct uart_port *port, uint8_t *status)char flag;int max_count =RX_MAX_COUNT ; - tty = port->info->tty; + tty = port->info->port.tty; lsr = *status; do {
drivers/serial/zs.c +1 -1
@@ -602,7 +602,7 @@ static void zs_receive_chars(struct zs_port *zport)uart_insert_char (uport, status, Rx_OVR, ch, flag); } -tty_flip_buffer_push (uport->info->tty); +tty_flip_buffer_push (uport->info->port.tty); }static void zs_raw_transmit_chars (struct zs_port *zport)