mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
This commit is contained in:
commit
cf9fe114e3
745 changed files with 30125 additions and 9829 deletions
|
|
@ -137,6 +137,7 @@ struct uart_8250_port {
|
|||
unsigned char mcr;
|
||||
unsigned char mcr_mask; /* mask of user bits */
|
||||
unsigned char mcr_force; /* mask of forced bits */
|
||||
unsigned char cur_iotype; /* Running I/O type */
|
||||
|
||||
/*
|
||||
* Some bits in registers are cleared on a read, so they must
|
||||
|
|
@ -471,6 +472,7 @@ static void io_serial_out(struct uart_port *p, int offset, int value)
|
|||
|
||||
static void set_io_from_upio(struct uart_port *p)
|
||||
{
|
||||
struct uart_8250_port *up = (struct uart_8250_port *)p;
|
||||
switch (p->iotype) {
|
||||
case UPIO_HUB6:
|
||||
p->serial_in = hub6_serial_in;
|
||||
|
|
@ -509,6 +511,8 @@ static void set_io_from_upio(struct uart_port *p)
|
|||
p->serial_out = io_serial_out;
|
||||
break;
|
||||
}
|
||||
/* Remember loaded iotype */
|
||||
up->cur_iotype = p->iotype;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -1937,6 +1941,9 @@ static int serial8250_startup(struct uart_port *port)
|
|||
up->capabilities = uart_config[up->port.type].flags;
|
||||
up->mcr = 0;
|
||||
|
||||
if (up->port.iotype != up->cur_iotype)
|
||||
set_io_from_upio(port);
|
||||
|
||||
if (up->port.type == PORT_16C950) {
|
||||
/* Wake up and initialize UART */
|
||||
up->acr = 0;
|
||||
|
|
@ -2563,6 +2570,9 @@ static void serial8250_config_port(struct uart_port *port, int flags)
|
|||
if (ret < 0)
|
||||
probeflags &= ~PROBE_RSA;
|
||||
|
||||
if (up->port.iotype != up->cur_iotype)
|
||||
set_io_from_upio(port);
|
||||
|
||||
if (flags & UART_CONFIG_TYPE)
|
||||
autoconfig(up, probeflags);
|
||||
if (up->port.type != PORT_UNKNOWN && flags & UART_CONFIG_IRQ)
|
||||
|
|
@ -2671,6 +2681,11 @@ serial8250_register_ports(struct uart_driver *drv, struct device *dev)
|
|||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < nr_uarts; i++) {
|
||||
struct uart_8250_port *up = &serial8250_ports[i];
|
||||
up->cur_iotype = 0xFF;
|
||||
}
|
||||
|
||||
serial8250_isa_init_ports();
|
||||
|
||||
for (i = 0; i < nr_uarts; i++) {
|
||||
|
|
|
|||
|
|
@ -39,9 +39,9 @@ static int __init serial_init_chip(struct parisc_device *dev)
|
|||
*/
|
||||
if (parisc_parent(dev)->id.hw_type != HPHW_IOA)
|
||||
printk(KERN_INFO
|
||||
"Serial: device 0x%lx not configured.\n"
|
||||
"Serial: device 0x%llx not configured.\n"
|
||||
"Enable support for Wax, Lasi, Asp or Dino.\n",
|
||||
dev->hpa.start);
|
||||
(unsigned long long)dev->hpa.start);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1472,8 +1472,8 @@ static void icom_remove_adapter(struct icom_adapter *icom_adapter)
|
|||
|
||||
free_irq(icom_adapter->pci_dev->irq, (void *) icom_adapter);
|
||||
iounmap(icom_adapter->base_addr);
|
||||
icom_free_adapter(icom_adapter);
|
||||
pci_release_regions(icom_adapter->pci_dev);
|
||||
icom_free_adapter(icom_adapter);
|
||||
}
|
||||
|
||||
static void icom_kref_release(struct kref *kref)
|
||||
|
|
|
|||
|
|
@ -1031,6 +1031,8 @@ imx_console_setup(struct console *co, char *options)
|
|||
if (co->index == -1 || co->index >= ARRAY_SIZE(imx_ports))
|
||||
co->index = 0;
|
||||
sport = imx_ports[co->index];
|
||||
if(sport == NULL)
|
||||
return -ENODEV;
|
||||
|
||||
if (options)
|
||||
uart_parse_options(options, &baud, &parity, &bits, &flow);
|
||||
|
|
|
|||
|
|
@ -988,7 +988,7 @@ mpc52xx_console_setup(struct console *co, char *options)
|
|||
pr_debug("mpc52xx_console_setup co=%p, co->index=%i, options=%s\n",
|
||||
co, co->index, options);
|
||||
|
||||
if ((co->index < 0) || (co->index > MPC52xx_PSC_MAXNUM)) {
|
||||
if ((co->index < 0) || (co->index >= MPC52xx_PSC_MAXNUM)) {
|
||||
pr_debug("PSC%x out of range\n", co->index);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue