amba-pl010.c (732a84a037a4de29b54e0b4e6cb6f9b3813e29e5) | amba-pl010.c (d41510ce2f071c9ccb1903d7a5135443a57dbe4e) |
---|---|
1/* 2 * Driver for AMBA serial ports 3 * 4 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. 5 * 6 * Copyright 1999 ARM Limited 7 * Copyright (C) 2000 Deep Blue Solutions Ltd. 8 * --- 469 unchanged lines hidden (view full) --- 478 479 spin_unlock_irqrestore(&uap->port.lock, flags); 480} 481 482static void pl010_set_ldisc(struct uart_port *port, struct ktermios *termios) 483{ 484 if (termios->c_line == N_PPS) { 485 port->flags |= UPF_HARDPPS_CD; | 1/* 2 * Driver for AMBA serial ports 3 * 4 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. 5 * 6 * Copyright 1999 ARM Limited 7 * Copyright (C) 2000 Deep Blue Solutions Ltd. 8 * --- 469 unchanged lines hidden (view full) --- 478 479 spin_unlock_irqrestore(&uap->port.lock, flags); 480} 481 482static void pl010_set_ldisc(struct uart_port *port, struct ktermios *termios) 483{ 484 if (termios->c_line == N_PPS) { 485 port->flags |= UPF_HARDPPS_CD; |
486 spin_lock_irq(&port->lock); |
|
486 pl010_enable_ms(port); | 487 pl010_enable_ms(port); |
488 spin_unlock_irq(&port->lock); |
|
487 } else 488 port->flags &= ~UPF_HARDPPS_CD; 489} 490 491static const char *pl010_type(struct uart_port *port) 492{ 493 return port->type == PORT_AMBA ? "AMBA" : NULL; 494} --- 331 unchanged lines hidden --- | 489 } else 490 port->flags &= ~UPF_HARDPPS_CD; 491} 492 493static const char *pl010_type(struct uart_port *port) 494{ 495 return port->type == PORT_AMBA ? "AMBA" : NULL; 496} --- 331 unchanged lines hidden --- |