Merge branches 'sh/pm-runtime' and 'common/clkfwk' into sh-fixes-for-linus
This commit is contained in:
@@ -450,24 +450,6 @@ static void au_serial_out(struct uart_port *p, int offset, int value)
|
||||
__raw_writel(value, p->membase + offset);
|
||||
}
|
||||
|
||||
static unsigned int tsi_serial_in(struct uart_port *p, int offset)
|
||||
{
|
||||
unsigned int tmp;
|
||||
offset = map_8250_in_reg(p, offset) << p->regshift;
|
||||
if (offset == UART_IIR) {
|
||||
tmp = readl(p->membase + (UART_IIR & ~3));
|
||||
return (tmp >> 16) & 0xff; /* UART_IIR % 4 == 2 */
|
||||
} else
|
||||
return readb(p->membase + offset);
|
||||
}
|
||||
|
||||
static void tsi_serial_out(struct uart_port *p, int offset, int value)
|
||||
{
|
||||
offset = map_8250_out_reg(p, offset) << p->regshift;
|
||||
if (!((offset == UART_IER) && (value & UART_IER_UUE)))
|
||||
writeb(value, p->membase + offset);
|
||||
}
|
||||
|
||||
static unsigned int io_serial_in(struct uart_port *p, int offset)
|
||||
{
|
||||
offset = map_8250_in_reg(p, offset) << p->regshift;
|
||||
@@ -508,11 +490,6 @@ static void set_io_from_upio(struct uart_port *p)
|
||||
p->serial_out = au_serial_out;
|
||||
break;
|
||||
|
||||
case UPIO_TSI:
|
||||
p->serial_in = tsi_serial_in;
|
||||
p->serial_out = tsi_serial_out;
|
||||
break;
|
||||
|
||||
default:
|
||||
p->serial_in = io_serial_in;
|
||||
p->serial_out = io_serial_out;
|
||||
|
@@ -24,7 +24,7 @@
|
||||
*
|
||||
*
|
||||
***********************************************************************/
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
|
@@ -19,6 +19,7 @@
|
||||
#include <linux/console.h>
|
||||
#include <linux/vt_kern.h>
|
||||
#include <linux/input.h>
|
||||
#include <linux/module.h>
|
||||
|
||||
#define MAX_CONFIG_LEN 40
|
||||
|
||||
|
@@ -43,6 +43,7 @@
|
||||
#include <linux/delay.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/serial_core.h>
|
||||
#include <linux/serial.h>
|
||||
#include <linux/spi/spi.h>
|
||||
|
@@ -36,6 +36,7 @@
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/gpio.h>
|
||||
#include <linux/sfi.h>
|
||||
#include <linux/module.h>
|
||||
#include <asm/mrst.h>
|
||||
#include "max3107.h"
|
||||
|
||||
|
@@ -36,6 +36,7 @@
|
||||
#include <linux/gpio.h>
|
||||
#include <linux/spi/spi.h>
|
||||
#include <linux/freezer.h>
|
||||
#include <linux/module.h>
|
||||
#include "max3107.h"
|
||||
|
||||
static const struct baud_table brg26_ext[] = {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
*
|
||||
*/
|
||||
#include <linux/init.h>
|
||||
#include <linux/export.h>
|
||||
#include <linux/console.h>
|
||||
#include <linux/serial.h>
|
||||
#include <linux/serial_reg.h>
|
||||
|
@@ -1465,12 +1465,8 @@ static bool filter(struct dma_chan *chan, void *slave)
|
||||
dev_dbg(chan->device->dev, "%s: slave ID %d\n", __func__,
|
||||
param->slave_id);
|
||||
|
||||
if (param->dma_dev == chan->device->dev) {
|
||||
chan->private = param;
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
chan->private = param;
|
||||
return true;
|
||||
}
|
||||
|
||||
static void rx_timer_fn(unsigned long arg)
|
||||
@@ -1496,10 +1492,10 @@ static void sci_request_dma(struct uart_port *port)
|
||||
dma_cap_mask_t mask;
|
||||
int nent;
|
||||
|
||||
dev_dbg(port->dev, "%s: port %d DMA %p\n", __func__,
|
||||
port->line, s->cfg->dma_dev);
|
||||
dev_dbg(port->dev, "%s: port %d\n", __func__,
|
||||
port->line);
|
||||
|
||||
if (!s->cfg->dma_dev)
|
||||
if (s->cfg->dma_slave_tx <= 0 || s->cfg->dma_slave_rx <= 0)
|
||||
return;
|
||||
|
||||
dma_cap_zero(mask);
|
||||
@@ -1509,7 +1505,6 @@ static void sci_request_dma(struct uart_port *port)
|
||||
|
||||
/* Slave ID, e.g., SHDMA_SLAVE_SCIF0_TX */
|
||||
param->slave_id = s->cfg->dma_slave_tx;
|
||||
param->dma_dev = s->cfg->dma_dev;
|
||||
|
||||
s->cookie_tx = -EINVAL;
|
||||
chan = dma_request_channel(mask, filter, param);
|
||||
@@ -1538,7 +1533,6 @@ static void sci_request_dma(struct uart_port *port)
|
||||
|
||||
/* Slave ID, e.g., SHDMA_SLAVE_SCIF0_RX */
|
||||
param->slave_id = s->cfg->dma_slave_rx;
|
||||
param->dma_dev = s->cfg->dma_dev;
|
||||
|
||||
chan = dma_request_channel(mask, filter, param);
|
||||
dev_dbg(port->dev, "%s: RX: got channel %p\n", __func__, chan);
|
||||
@@ -1583,9 +1577,6 @@ static void sci_free_dma(struct uart_port *port)
|
||||
{
|
||||
struct sci_port *s = to_sci_port(port);
|
||||
|
||||
if (!s->cfg->dma_dev)
|
||||
return;
|
||||
|
||||
if (s->chan_tx)
|
||||
sci_tx_dma_release(s, false);
|
||||
if (s->chan_rx)
|
||||
@@ -2000,9 +1991,9 @@ static int __devinit sci_init_single(struct platform_device *dev,
|
||||
port->serial_in = sci_serial_in;
|
||||
port->serial_out = sci_serial_out;
|
||||
|
||||
if (p->dma_dev)
|
||||
dev_dbg(port->dev, "DMA device %p, tx %d, rx %d\n",
|
||||
p->dma_dev, p->dma_slave_tx, p->dma_slave_rx);
|
||||
if (p->dma_slave_tx > 0 && p->dma_slave_rx > 0)
|
||||
dev_dbg(port->dev, "DMA tx %d, rx %d\n",
|
||||
p->dma_slave_tx, p->dma_slave_rx);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -29,6 +29,7 @@
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/ioport.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/module.h>
|
||||
|
||||
#include "timbuart.h"
|
||||
|
||||
|
@@ -20,6 +20,7 @@
|
||||
#include <linux/irq.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/module.h>
|
||||
|
||||
#define XUARTPS_TTY_NAME "ttyPS"
|
||||
#define XUARTPS_NAME "xuartps"
|
||||
|
Reference in New Issue
Block a user