]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Merge branch 'tty-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Feb 2011 20:19:58 +0000 (12:19 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Feb 2011 20:19:58 +0000 (12:19 -0800)
* 'tty-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6:
  serial: bfin_5xx: split uart RX lock from uart port lock to avoid deadlock
  68360serial: Plumb in rs_360_get_icount()
  n_gsm: copy mtu over when configuring via ioctl interface
  virtio: console: Move file back to drivers/char/

1  2 
drivers/char/virtio_console.c

index 239d86f9d5607d72943b5c19d9c4e6b100ed2221,5feadeefef3f82daa12340c5b29886aef585a04e..490393186338dae5b8a7a7804923b801a381263a
@@@ -1,7 -1,6 +1,7 @@@
  /*
   * Copyright (C) 2006, 2007, 2009 Rusty Russell, IBM Corporation
 - * Copyright (C) 2009, 2010 Red Hat, Inc.
 + * Copyright (C) 2009, 2010, 2011 Red Hat, Inc.
 + * Copyright (C) 2009, 2010, 2011 Amit Shah <amit.shah@redhat.com>
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
@@@ -32,7 -31,7 +32,7 @@@
  #include <linux/virtio_console.h>
  #include <linux/wait.h>
  #include <linux/workqueue.h>
- #include "hvc_console.h"
+ #include "../tty/hvc/hvc_console.h"
  
  /*
   * This is a global struct for storing common data for all the devices
@@@ -1463,17 -1462,6 +1463,17 @@@ static void control_work_handler(struc
        spin_unlock(&portdev->cvq_lock);
  }
  
 +static void out_intr(struct virtqueue *vq)
 +{
 +      struct port *port;
 +
 +      port = find_port_by_vq(vq->vdev->priv, vq);
 +      if (!port)
 +              return;
 +
 +      wake_up_interruptible(&port->waitqueue);
 +}
 +
  static void in_intr(struct virtqueue *vq)
  {
        struct port *port;
@@@ -1578,7 -1566,7 +1578,7 @@@ static int init_vqs(struct ports_devic
         */
        j = 0;
        io_callbacks[j] = in_intr;
 -      io_callbacks[j + 1] = NULL;
 +      io_callbacks[j + 1] = out_intr;
        io_names[j] = "input";
        io_names[j + 1] = "output";
        j += 2;
                for (i = 1; i < nr_ports; i++) {
                        j += 2;
                        io_callbacks[j] = in_intr;
 -                      io_callbacks[j + 1] = NULL;
 +                      io_callbacks[j + 1] = out_intr;
                        io_names[j] = "input";
                        io_names[j + 1] = "output";
                }