You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge HEAD from master.kernel.org:/home/rmk/linux-2.6-serial
This commit is contained in:
@@ -111,24 +111,17 @@ hardware.
|
||||
Interrupts: locally disabled.
|
||||
This call must not sleep
|
||||
|
||||
stop_tx(port,tty_stop)
|
||||
stop_tx(port)
|
||||
Stop transmitting characters. This might be due to the CTS
|
||||
line becoming inactive or the tty layer indicating we want
|
||||
to stop transmission.
|
||||
|
||||
tty_stop: 1 if this call is due to the TTY layer issuing a
|
||||
TTY stop to the driver (equiv to rs_stop).
|
||||
to stop transmission due to an XOFF character.
|
||||
|
||||
Locking: port->lock taken.
|
||||
Interrupts: locally disabled.
|
||||
This call must not sleep
|
||||
|
||||
start_tx(port,tty_start)
|
||||
start transmitting characters. (incidentally, nonempty will
|
||||
always be nonzero, and shouldn't be used - it will be dropped).
|
||||
|
||||
tty_start: 1 if this call was due to the TTY layer issuing
|
||||
a TTY start to the driver (equiv to rs_start)
|
||||
start_tx(port)
|
||||
start transmitting characters.
|
||||
|
||||
Locking: port->lock taken.
|
||||
Interrupts: locally disabled.
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
#include <linux/sched.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/serial_8250.h>
|
||||
#include "smapi.h"
|
||||
#include "mwavedd.h"
|
||||
#include "3780i.h"
|
||||
@@ -410,8 +411,8 @@ static ssize_t mwave_write(struct file *file, const char __user *buf,
|
||||
|
||||
static int register_serial_portandirq(unsigned int port, int irq)
|
||||
{
|
||||
struct serial_struct serial;
|
||||
|
||||
struct uart_port uart;
|
||||
|
||||
switch ( port ) {
|
||||
case 0x3f8:
|
||||
case 0x2f8:
|
||||
@@ -442,12 +443,14 @@ static int register_serial_portandirq(unsigned int port, int irq)
|
||||
} /* switch */
|
||||
/* irq is okay */
|
||||
|
||||
memset(&serial, 0, sizeof(serial));
|
||||
serial.port = port;
|
||||
serial.irq = irq;
|
||||
serial.flags = ASYNC_SHARE_IRQ;
|
||||
|
||||
return register_serial(&serial);
|
||||
memset(&uart, 0, sizeof(struct uart_port));
|
||||
|
||||
uart.uartclk = 1843200;
|
||||
uart.iobase = port;
|
||||
uart.irq = irq;
|
||||
uart.iotype = UPIO_PORT;
|
||||
uart.flags = UPF_SHARE_IRQ;
|
||||
return serial8250_register_port(&uart);
|
||||
}
|
||||
|
||||
|
||||
@@ -523,7 +526,7 @@ static void mwave_exit(void)
|
||||
#endif
|
||||
|
||||
if ( pDrvData->sLine >= 0 ) {
|
||||
unregister_serial(pDrvData->sLine);
|
||||
serial8250_unregister_port(pDrvData->sLine);
|
||||
}
|
||||
if (pDrvData->bMwaveDevRegistered) {
|
||||
misc_deregister(&mwave_misc_dev);
|
||||
|
||||
@@ -6,7 +6,7 @@ menu "Misc devices"
|
||||
|
||||
config IBM_ASM
|
||||
tristate "Device driver for IBM RSA service processor"
|
||||
depends on X86 && PCI && EXPERIMENTAL
|
||||
depends on X86 && PCI && EXPERIMENTAL && BROKEN
|
||||
---help---
|
||||
This option enables device driver support for in-band access to the
|
||||
IBM RSA (Condor) service processor in eServer xSeries systems.
|
||||
|
||||
+1
-1
@@ -447,7 +447,7 @@ config NET_SB1250_MAC
|
||||
|
||||
config SGI_IOC3_ETH
|
||||
bool "SGI IOC3 Ethernet"
|
||||
depends on NET_ETHERNET && PCI && SGI_IP27
|
||||
depends on NET_ETHERNET && PCI && SGI_IP27 && BROKEN
|
||||
select CRC32
|
||||
select MII
|
||||
help
|
||||
|
||||
@@ -58,8 +58,7 @@ static const char serial21285_name[] = "Footbridge UART";
|
||||
* int((BAUD_BASE - (baud >> 1)) / baud)
|
||||
*/
|
||||
|
||||
static void
|
||||
serial21285_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
static void serial21285_stop_tx(struct uart_port *port)
|
||||
{
|
||||
if (tx_enabled(port)) {
|
||||
disable_irq(IRQ_CONTX);
|
||||
@@ -67,8 +66,7 @@ serial21285_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
serial21285_start_tx(struct uart_port *port, unsigned int tty_start)
|
||||
static void serial21285_start_tx(struct uart_port *port)
|
||||
{
|
||||
if (!tx_enabled(port)) {
|
||||
enable_irq(IRQ_CONTX);
|
||||
@@ -148,7 +146,7 @@ static irqreturn_t serial21285_tx_chars(int irq, void *dev_id, struct pt_regs *r
|
||||
goto out;
|
||||
}
|
||||
if (uart_circ_empty(xmit) || uart_tx_stopped(port)) {
|
||||
serial21285_stop_tx(port, 0);
|
||||
serial21285_stop_tx(port);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -164,7 +162,7 @@ static irqreturn_t serial21285_tx_chars(int irq, void *dev_id, struct pt_regs *r
|
||||
uart_write_wakeup(port);
|
||||
|
||||
if (uart_circ_empty(xmit))
|
||||
serial21285_stop_tx(port, 0);
|
||||
serial21285_stop_tx(port);
|
||||
|
||||
out:
|
||||
return IRQ_HANDLED;
|
||||
|
||||
+7
-82
@@ -1001,7 +1001,7 @@ static inline void __stop_tx(struct uart_8250_port *p)
|
||||
}
|
||||
}
|
||||
|
||||
static void serial8250_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
static void serial8250_stop_tx(struct uart_port *port)
|
||||
{
|
||||
struct uart_8250_port *up = (struct uart_8250_port *)port;
|
||||
|
||||
@@ -1018,7 +1018,7 @@ static void serial8250_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
|
||||
static void transmit_chars(struct uart_8250_port *up);
|
||||
|
||||
static void serial8250_start_tx(struct uart_port *port, unsigned int tty_start)
|
||||
static void serial8250_start_tx(struct uart_port *port)
|
||||
{
|
||||
struct uart_8250_port *up = (struct uart_8250_port *)port;
|
||||
|
||||
@@ -1158,7 +1158,11 @@ static _INLINE_ void transmit_chars(struct uart_8250_port *up)
|
||||
up->port.x_char = 0;
|
||||
return;
|
||||
}
|
||||
if (uart_circ_empty(xmit) || uart_tx_stopped(&up->port)) {
|
||||
if (uart_tx_stopped(&up->port)) {
|
||||
serial8250_stop_tx(&up->port);
|
||||
return;
|
||||
}
|
||||
if (uart_circ_empty(xmit)) {
|
||||
__stop_tx(up);
|
||||
return;
|
||||
}
|
||||
@@ -2586,82 +2590,3 @@ module_param_array(probe_rsa, ulong, &probe_rsa_count, 0444);
|
||||
MODULE_PARM_DESC(probe_rsa, "Probe I/O ports for RSA");
|
||||
#endif
|
||||
MODULE_ALIAS_CHARDEV_MAJOR(TTY_MAJOR);
|
||||
|
||||
/**
|
||||
* register_serial - configure a 16x50 serial port at runtime
|
||||
* @req: request structure
|
||||
*
|
||||
* Configure the serial port specified by the request. If the
|
||||
* port exists and is in use an error is returned. If the port
|
||||
* is not currently in the table it is added.
|
||||
*
|
||||
* The port is then probed and if necessary the IRQ is autodetected
|
||||
* If this fails an error is returned.
|
||||
*
|
||||
* On success the port is ready to use and the line number is returned.
|
||||
*
|
||||
* Note: this function is deprecated - use serial8250_register_port
|
||||
* instead.
|
||||
*/
|
||||
int register_serial(struct serial_struct *req)
|
||||
{
|
||||
struct uart_port port;
|
||||
|
||||
port.iobase = req->port;
|
||||
port.membase = req->iomem_base;
|
||||
port.irq = req->irq;
|
||||
port.uartclk = req->baud_base * 16;
|
||||
port.fifosize = req->xmit_fifo_size;
|
||||
port.regshift = req->iomem_reg_shift;
|
||||
port.iotype = req->io_type;
|
||||
port.flags = req->flags | UPF_BOOT_AUTOCONF;
|
||||
port.mapbase = req->iomap_base;
|
||||
port.dev = NULL;
|
||||
|
||||
if (share_irqs)
|
||||
port.flags |= UPF_SHARE_IRQ;
|
||||
|
||||
if (HIGH_BITS_OFFSET)
|
||||
port.iobase |= (long) req->port_high << HIGH_BITS_OFFSET;
|
||||
|
||||
/*
|
||||
* If a clock rate wasn't specified by the low level driver, then
|
||||
* default to the standard clock rate. This should be 115200 (*16)
|
||||
* and should not depend on the architecture's BASE_BAUD definition.
|
||||
* However, since this API will be deprecated, it's probably a
|
||||
* better idea to convert the drivers to use the new API
|
||||
* (serial8250_register_port and serial8250_unregister_port).
|
||||
*/
|
||||
if (port.uartclk == 0) {
|
||||
printk(KERN_WARNING
|
||||
"Serial: registering port at [%08x,%08lx,%p] irq %d with zero baud_base\n",
|
||||
port.iobase, port.mapbase, port.membase, port.irq);
|
||||
printk(KERN_WARNING "Serial: see %s:%d for more information\n",
|
||||
__FILE__, __LINE__);
|
||||
dump_stack();
|
||||
|
||||
/*
|
||||
* Fix it up for now, but this is only a temporary measure.
|
||||
*/
|
||||
port.uartclk = BASE_BAUD * 16;
|
||||
}
|
||||
|
||||
return serial8250_register_port(&port);
|
||||
}
|
||||
EXPORT_SYMBOL(register_serial);
|
||||
|
||||
/**
|
||||
* unregister_serial - remove a 16x50 serial port at runtime
|
||||
* @line: serial line number
|
||||
*
|
||||
* Remove one serial port. This may not be called from interrupt
|
||||
* context. We hand the port back to our local PM control.
|
||||
*
|
||||
* Note: this function is deprecated - use serial8250_unregister_port
|
||||
* instead.
|
||||
*/
|
||||
void unregister_serial(int line)
|
||||
{
|
||||
serial8250_unregister_port(line);
|
||||
}
|
||||
EXPORT_SYMBOL(unregister_serial);
|
||||
|
||||
@@ -16,11 +16,7 @@
|
||||
*/
|
||||
|
||||
#include <linux/config.h>
|
||||
|
||||
int serial8250_register_port(struct uart_port *);
|
||||
void serial8250_unregister_port(int line);
|
||||
void serial8250_suspend_port(int line);
|
||||
void serial8250_resume_port(int line);
|
||||
#include <linux/serial_8250.h>
|
||||
|
||||
struct old_serial_port {
|
||||
unsigned int uart;
|
||||
|
||||
@@ -830,7 +830,7 @@ config SERIAL_M32R_PLDSIO
|
||||
|
||||
config SERIAL_TXX9
|
||||
bool "TMPTX39XX/49XX SIO support"
|
||||
depends HAS_TXX9_SERIAL
|
||||
depends HAS_TXX9_SERIAL && BROKEN
|
||||
select SERIAL_CORE
|
||||
default y
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ struct uart_amba_port {
|
||||
unsigned int old_status;
|
||||
};
|
||||
|
||||
static void pl010_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
static void pl010_stop_tx(struct uart_port *port)
|
||||
{
|
||||
unsigned int cr;
|
||||
|
||||
@@ -114,7 +114,7 @@ static void pl010_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
UART_PUT_CR(port, cr);
|
||||
}
|
||||
|
||||
static void pl010_start_tx(struct uart_port *port, unsigned int tty_start)
|
||||
static void pl010_start_tx(struct uart_port *port)
|
||||
{
|
||||
unsigned int cr;
|
||||
|
||||
@@ -219,7 +219,7 @@ static void pl010_tx_chars(struct uart_port *port)
|
||||
return;
|
||||
}
|
||||
if (uart_circ_empty(xmit) || uart_tx_stopped(port)) {
|
||||
pl010_stop_tx(port, 0);
|
||||
pl010_stop_tx(port);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@ static void pl010_tx_chars(struct uart_port *port)
|
||||
uart_write_wakeup(port);
|
||||
|
||||
if (uart_circ_empty(xmit))
|
||||
pl010_stop_tx(port, 0);
|
||||
pl010_stop_tx(port);
|
||||
}
|
||||
|
||||
static void pl010_modem_status(struct uart_port *port)
|
||||
|
||||
@@ -74,7 +74,7 @@ struct uart_amba_port {
|
||||
unsigned int old_status;
|
||||
};
|
||||
|
||||
static void pl011_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
static void pl011_stop_tx(struct uart_port *port)
|
||||
{
|
||||
struct uart_amba_port *uap = (struct uart_amba_port *)port;
|
||||
|
||||
@@ -82,7 +82,7 @@ static void pl011_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
writew(uap->im, uap->port.membase + UART011_IMSC);
|
||||
}
|
||||
|
||||
static void pl011_start_tx(struct uart_port *port, unsigned int tty_start)
|
||||
static void pl011_start_tx(struct uart_port *port)
|
||||
{
|
||||
struct uart_amba_port *uap = (struct uart_amba_port *)port;
|
||||
|
||||
@@ -184,7 +184,7 @@ static void pl011_tx_chars(struct uart_amba_port *uap)
|
||||
return;
|
||||
}
|
||||
if (uart_circ_empty(xmit) || uart_tx_stopped(&uap->port)) {
|
||||
pl011_stop_tx(&uap->port, 0);
|
||||
pl011_stop_tx(&uap->port);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -201,7 +201,7 @@ static void pl011_tx_chars(struct uart_amba_port *uap)
|
||||
uart_write_wakeup(&uap->port);
|
||||
|
||||
if (uart_circ_empty(xmit))
|
||||
pl011_stop_tx(&uap->port, 0);
|
||||
pl011_stop_tx(&uap->port);
|
||||
}
|
||||
|
||||
static void pl011_modem_status(struct uart_amba_port *uap)
|
||||
|
||||
@@ -200,7 +200,7 @@ static void autoconfig(struct uart_8250_port *up, unsigned int probeflags)
|
||||
DEBUG_AUTOCONF("type=%s\n", uart_config[up->port.type].name);
|
||||
}
|
||||
|
||||
static void serial8250_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
static void serial8250_stop_tx(struct uart_port *port)
|
||||
{
|
||||
struct uart_8250_port *up = (struct uart_8250_port *)port;
|
||||
|
||||
@@ -210,7 +210,7 @@ static void serial8250_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
}
|
||||
}
|
||||
|
||||
static void serial8250_start_tx(struct uart_port *port, unsigned int tty_start)
|
||||
static void serial8250_start_tx(struct uart_port *port)
|
||||
{
|
||||
struct uart_8250_port *up = (struct uart_8250_port *)port;
|
||||
|
||||
@@ -337,7 +337,7 @@ static _INLINE_ void transmit_chars(struct uart_8250_port *up)
|
||||
return;
|
||||
}
|
||||
if (uart_circ_empty(xmit) || uart_tx_stopped(&up->port)) {
|
||||
serial8250_stop_tx(&up->port, 0);
|
||||
serial8250_stop_tx(&up->port);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -356,7 +356,7 @@ static _INLINE_ void transmit_chars(struct uart_8250_port *up)
|
||||
DEBUG_INTR("THRE...");
|
||||
|
||||
if (uart_circ_empty(xmit))
|
||||
serial8250_stop_tx(&up->port, 0);
|
||||
serial8250_stop_tx(&up->port);
|
||||
}
|
||||
|
||||
static _INLINE_ void check_modem_status(struct uart_8250_port *up)
|
||||
|
||||
@@ -69,8 +69,7 @@
|
||||
|
||||
#define tx_enabled(port) ((port)->unused[0])
|
||||
|
||||
static void
|
||||
clps711xuart_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
static void clps711xuart_stop_tx(struct uart_port *port)
|
||||
{
|
||||
if (tx_enabled(port)) {
|
||||
disable_irq(TX_IRQ(port));
|
||||
@@ -78,8 +77,7 @@ clps711xuart_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
clps711xuart_start_tx(struct uart_port *port, unsigned int tty_start)
|
||||
static void clps711xuart_start_tx(struct uart_port *port)
|
||||
{
|
||||
if (!tx_enabled(port)) {
|
||||
enable_irq(TX_IRQ(port));
|
||||
@@ -165,7 +163,7 @@ static irqreturn_t clps711xuart_int_tx(int irq, void *dev_id, struct pt_regs *re
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
if (uart_circ_empty(xmit) || uart_tx_stopped(port)) {
|
||||
clps711xuart_stop_tx(port, 0);
|
||||
clps711xuart_stop_tx(port);
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
@@ -182,7 +180,7 @@ static irqreturn_t clps711xuart_int_tx(int irq, void *dev_id, struct pt_regs *re
|
||||
uart_write_wakeup(port);
|
||||
|
||||
if (uart_circ_empty(xmit))
|
||||
clps711xuart_stop_tx(port, 0);
|
||||
clps711xuart_stop_tx(port);
|
||||
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ static unsigned int cpm_uart_get_mctrl(struct uart_port *port)
|
||||
/*
|
||||
* Stop transmitter
|
||||
*/
|
||||
static void cpm_uart_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
static void cpm_uart_stop_tx(struct uart_port *port)
|
||||
{
|
||||
struct uart_cpm_port *pinfo = (struct uart_cpm_port *)port;
|
||||
volatile smc_t *smcp = pinfo->smcp;
|
||||
@@ -141,7 +141,7 @@ static void cpm_uart_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
/*
|
||||
* Start transmitter
|
||||
*/
|
||||
static void cpm_uart_start_tx(struct uart_port *port, unsigned int tty_start)
|
||||
static void cpm_uart_start_tx(struct uart_port *port)
|
||||
{
|
||||
struct uart_cpm_port *pinfo = (struct uart_cpm_port *)port;
|
||||
volatile smc_t *smcp = pinfo->smcp;
|
||||
@@ -623,7 +623,7 @@ static int cpm_uart_tx_pump(struct uart_port *port)
|
||||
}
|
||||
|
||||
if (uart_circ_empty(xmit) || uart_tx_stopped(port)) {
|
||||
cpm_uart_stop_tx(port, 0);
|
||||
cpm_uart_stop_tx(port);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -656,7 +656,7 @@ static int cpm_uart_tx_pump(struct uart_port *port)
|
||||
uart_write_wakeup(port);
|
||||
|
||||
if (uart_circ_empty(xmit)) {
|
||||
cpm_uart_stop_tx(port, 0);
|
||||
cpm_uart_stop_tx(port);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+5
-5
@@ -112,7 +112,7 @@ static inline void dz_out(struct dz_port *dport, unsigned offset,
|
||||
* ------------------------------------------------------------
|
||||
*/
|
||||
|
||||
static void dz_stop_tx(struct uart_port *uport, unsigned int tty_stop)
|
||||
static void dz_stop_tx(struct uart_port *uport)
|
||||
{
|
||||
struct dz_port *dport = (struct dz_port *)uport;
|
||||
unsigned short tmp, mask = 1 << dport->port.line;
|
||||
@@ -125,7 +125,7 @@ static void dz_stop_tx(struct uart_port *uport, unsigned int tty_stop)
|
||||
spin_unlock_irqrestore(&dport->port.lock, flags);
|
||||
}
|
||||
|
||||
static void dz_start_tx(struct uart_port *uport, unsigned int tty_start)
|
||||
static void dz_start_tx(struct uart_port *uport)
|
||||
{
|
||||
struct dz_port *dport = (struct dz_port *)uport;
|
||||
unsigned short tmp, mask = 1 << dport->port.line;
|
||||
@@ -290,7 +290,7 @@ static inline void dz_transmit_chars(struct dz_port *dport)
|
||||
}
|
||||
/* if nothing to do or stopped or hardware stopped */
|
||||
if (uart_circ_empty(xmit) || uart_tx_stopped(&dport->port)) {
|
||||
dz_stop_tx(&dport->port, 0);
|
||||
dz_stop_tx(&dport->port);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -308,7 +308,7 @@ static inline void dz_transmit_chars(struct dz_port *dport)
|
||||
|
||||
/* Are we done */
|
||||
if (uart_circ_empty(xmit))
|
||||
dz_stop_tx(&dport->port, 0);
|
||||
dz_stop_tx(&dport->port);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -440,7 +440,7 @@ static int dz_startup(struct uart_port *uport)
|
||||
*/
|
||||
static void dz_shutdown(struct uart_port *uport)
|
||||
{
|
||||
dz_stop_tx(uport, 0);
|
||||
dz_stop_tx(uport);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -989,18 +989,16 @@ static unsigned int icom_get_mctrl(struct uart_port *port)
|
||||
return result;
|
||||
}
|
||||
|
||||
static void icom_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
static void icom_stop_tx(struct uart_port *port)
|
||||
{
|
||||
unsigned char cmdReg;
|
||||
|
||||
if (tty_stop) {
|
||||
trace(ICOM_PORT, "STOP", 0);
|
||||
cmdReg = readb(&ICOM_PORT->dram->CmdReg);
|
||||
writeb(cmdReg | CMD_HOLD_XMIT, &ICOM_PORT->dram->CmdReg);
|
||||
}
|
||||
trace(ICOM_PORT, "STOP", 0);
|
||||
cmdReg = readb(&ICOM_PORT->dram->CmdReg);
|
||||
writeb(cmdReg | CMD_HOLD_XMIT, &ICOM_PORT->dram->CmdReg);
|
||||
}
|
||||
|
||||
static void icom_start_tx(struct uart_port *port, unsigned int tty_start)
|
||||
static void icom_start_tx(struct uart_port *port)
|
||||
{
|
||||
unsigned char cmdReg;
|
||||
|
||||
|
||||
+23
-5
@@ -124,7 +124,7 @@ static void imx_timeout(unsigned long data)
|
||||
/*
|
||||
* interrupts disabled on entry
|
||||
*/
|
||||
static void imx_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
static void imx_stop_tx(struct uart_port *port)
|
||||
{
|
||||
struct imx_port *sport = (struct imx_port *)port;
|
||||
UCR1((u32)sport->port.membase) &= ~UCR1_TXMPTYEN;
|
||||
@@ -165,13 +165,13 @@ static inline void imx_transmit_buffer(struct imx_port *sport)
|
||||
} while (!(UTS((u32)sport->port.membase) & UTS_TXFULL));
|
||||
|
||||
if (uart_circ_empty(xmit))
|
||||
imx_stop_tx(&sport->port, 0);
|
||||
imx_stop_tx(&sport->port);
|
||||
}
|
||||
|
||||
/*
|
||||
* interrupts disabled on entry
|
||||
*/
|
||||
static void imx_start_tx(struct uart_port *port, unsigned int tty_start)
|
||||
static void imx_start_tx(struct uart_port *port)
|
||||
{
|
||||
struct imx_port *sport = (struct imx_port *)port;
|
||||
|
||||
@@ -196,7 +196,7 @@ static irqreturn_t imx_txint(int irq, void *dev_id, struct pt_regs *regs)
|
||||
}
|
||||
|
||||
if (uart_circ_empty(xmit) || uart_tx_stopped(&sport->port)) {
|
||||
imx_stop_tx(&sport->port, 0);
|
||||
imx_stop_tx(&sport->port);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -291,13 +291,31 @@ static unsigned int imx_tx_empty(struct uart_port *port)
|
||||
return USR2((u32)sport->port.membase) & USR2_TXDC ? TIOCSER_TEMT : 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* We have a modem side uart, so the meanings of RTS and CTS are inverted.
|
||||
*/
|
||||
static unsigned int imx_get_mctrl(struct uart_port *port)
|
||||
{
|
||||
return TIOCM_CTS | TIOCM_DSR | TIOCM_CAR;
|
||||
struct imx_port *sport = (struct imx_port *)port;
|
||||
unsigned int tmp = TIOCM_DSR | TIOCM_CAR;
|
||||
|
||||
if (USR1((u32)sport->port.membase) & USR1_RTSS)
|
||||
tmp |= TIOCM_CTS;
|
||||
|
||||
if (UCR2((u32)sport->port.membase) & UCR2_CTS)
|
||||
tmp |= TIOCM_RTS;
|
||||
|
||||
return tmp;
|
||||
}
|
||||
|
||||
static void imx_set_mctrl(struct uart_port *port, unsigned int mctrl)
|
||||
{
|
||||
struct imx_port *sport = (struct imx_port *)port;
|
||||
|
||||
if (mctrl & TIOCM_RTS)
|
||||
UCR2((u32)sport->port.membase) |= UCR2_CTS;
|
||||
else
|
||||
UCR2((u32)sport->port.membase) &= ~UCR2_CTS;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -2373,10 +2373,9 @@ static unsigned int ic4_tx_empty(struct uart_port *the_port)
|
||||
/**
|
||||
* ic4_stop_tx - stop the transmitter
|
||||
* @port: Port to operate on
|
||||
* @tty_stop: Set to 1 if called via uart_stop
|
||||
*
|
||||
*/
|
||||
static void ic4_stop_tx(struct uart_port *the_port, unsigned int tty_stop)
|
||||
static void ic4_stop_tx(struct uart_port *the_port)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -2471,10 +2470,9 @@ static unsigned int ic4_get_mctrl(struct uart_port *the_port)
|
||||
/**
|
||||
* ic4_start_tx - Start transmitter, flush any output
|
||||
* @port: Port to operate on
|
||||
* @tty_stop: Set to 1 if called via uart_start
|
||||
*
|
||||
*/
|
||||
static void ic4_start_tx(struct uart_port *the_port, unsigned int tty_stop)
|
||||
static void ic4_start_tx(struct uart_port *the_port)
|
||||
{
|
||||
struct ioc4_port *port = get_ioc4_port(the_port);
|
||||
unsigned long flags;
|
||||
|
||||
@@ -592,7 +592,7 @@ static void ip22zilog_set_mctrl(struct uart_port *port, unsigned int mctrl)
|
||||
}
|
||||
|
||||
/* The port lock is held and interrupts are disabled. */
|
||||
static void ip22zilog_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
static void ip22zilog_stop_tx(struct uart_port *port)
|
||||
{
|
||||
struct uart_ip22zilog_port *up = (struct uart_ip22zilog_port *) port;
|
||||
|
||||
@@ -600,7 +600,7 @@ static void ip22zilog_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
}
|
||||
|
||||
/* The port lock is held and interrupts are disabled. */
|
||||
static void ip22zilog_start_tx(struct uart_port *port, unsigned int tty_start)
|
||||
static void ip22zilog_start_tx(struct uart_port *port)
|
||||
{
|
||||
struct uart_ip22zilog_port *up = (struct uart_ip22zilog_port *) port;
|
||||
struct zilog_channel *channel = ZILOG_CHANNEL_FROM_PORT(port);
|
||||
|
||||
@@ -113,7 +113,7 @@ static void jsm_tty_set_mctrl(struct uart_port *port, unsigned int mctrl)
|
||||
udelay(10);
|
||||
}
|
||||
|
||||
static void jsm_tty_start_tx(struct uart_port *port, unsigned int tty_start)
|
||||
static void jsm_tty_start_tx(struct uart_port *port)
|
||||
{
|
||||
struct jsm_channel *channel = (struct jsm_channel *)port;
|
||||
|
||||
@@ -125,7 +125,7 @@ static void jsm_tty_start_tx(struct uart_port *port, unsigned int tty_start)
|
||||
jsm_printk(IOCTL, INFO, &channel->ch_bd->pci_dev, "finish\n");
|
||||
}
|
||||
|
||||
static void jsm_tty_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
static void jsm_tty_stop_tx(struct uart_port *port)
|
||||
{
|
||||
struct jsm_channel *channel = (struct jsm_channel *)port;
|
||||
|
||||
|
||||
@@ -275,7 +275,7 @@ serial_out(struct uart_sio_port *up, int offset, int value)
|
||||
__sio_out(value, offset);
|
||||
}
|
||||
|
||||
static void m32r_sio_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
static void m32r_sio_stop_tx(struct uart_port *port)
|
||||
{
|
||||
struct uart_sio_port *up = (struct uart_sio_port *)port;
|
||||
|
||||
@@ -285,7 +285,7 @@ static void m32r_sio_stop_tx(struct uart_port *port, unsigned int tty_stop)
|
||||
}
|
||||
}
|
||||
|
||||
static void m32r_sio_start_tx(struct uart_port *port, unsigned int tty_start)
|
||||
static void m32r_sio_start_tx(struct uart_port *port)
|
||||
{
|
||||
#ifdef CONFIG_SERIAL_M32R_PLDSIO
|
||||
struct uart_sio_port *up = (struct uart_sio_port *)port;
|
||||
@@ -425,7 +425,7 @@ static _INLINE_ void transmit_chars(struct uart_sio_port *up)
|
||||
return;
|
||||
}
|
||||
if (uart_circ_empty(xmit) || uart_tx_stopped(&up->port)) {
|
||||
m32r_sio_stop_tx(&up->port, 0);
|
||||
m32r_sio_stop_tx(&up->port);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -446,7 +446,7 @@ static _INLINE_ void transmit_chars(struct uart_sio_port *up)
|
||||
DEBUG_INTR("THRE...");
|
||||
|
||||
if (uart_circ_empty(xmit))
|
||||
m32r_sio_stop_tx(&up->port, 0);
|
||||
m32r_sio_stop_tx(&up->port);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user