]> git.decadent.org.uk Git - exar-uart-driver.git/log
exar-uart-driver.git
10 years agoComplete forward port to 3.13
Joel Stanley [Sun, 8 Jun 2014 06:27:33 +0000 (15:57 +0930)]
Complete forward port to 3.13

These changes update the driver to something close to the 3.13 cdc-acm
driver. Not all changes have been ported.

Signed-off-by: Joel Stanley <joel@jms.id.au>
10 years agoUpdate use of termios object
Joel Stanley [Mon, 2 Jun 2014 05:36:10 +0000 (15:06 +0930)]
Update use of termios object

The following commit changed the api:

  commit adc8d746caa67fff4b53ba3e5163a6cbacc3b523
  Author: Alan Cox <alan@linux.intel.com>
  Date:   Sat Jul 14 15:31:47 2012 +0100

      tty: move the termios object into the tty

This fixes the following build failure against 3.13:

  xr21v141x-lnx-3.5-pak/vizzini.c: In function ‘xr21v141x_tty_set_termios’:
  xr21v141x-lnx-3.5-pak/vizzini.c:1096:22:
  error: invalid type argument of ‘->’ (have ‘struct ktermios’)
    cflag = tty->termios->c_cflag;

Signed-off-by: Joel Stanley <joel@jms.id.au>
10 years agoUpdate use of Linux tty api
Joel Stanley [Mon, 2 Jun 2014 05:28:10 +0000 (14:58 +0930)]
Update use of Linux tty api

The following commit changed the api:

commit 05c7cd39907184328f48d3e7899f9cdd653ad336
Author: Jiri Slaby <jslaby@suse.cz>
Date:   Thu Jan 3 15:53:04 2013 +0100

    TTY: switch tty_insert_flip_string

Fixes the following build failures against 3.13:

  In file included from xr21v141x-lnx-3.5-pak/vizzini.c:39:0:
  include/linux/tty_flip.h:29:19: note: expected ‘struct tty_port *’ but argument
  is of type ‘struct tty_struct *’
   static inline int tty_insert_flip_string(struct tty_port *port,
                     ^
  xr21v141x-lnx-3.5-pak/vizzini.c:364:2: warning: passing argument 1 of
  ‘tty_flip_buffer_push’ from incompatible pointer type [enabled by default]
    tty_flip_buffer_push(tty);
    ^
  In file included from xr21v141x-lnx-3.5-pak/vizzini.c:39:0:
  include/linux/tty_flip.h:14:13: note: expected ‘struct tty_port *’ but argument
  is of type ‘struct tty_struct *’
   extern void tty_flip_buffer_push(struct tty_port *port);
               ^

Signed-off-by: Joel Stanley <joel@jms.id.au>
10 years agoAdd readme and copy of GPLv2
Joel Stanley [Mon, 2 Jun 2014 05:46:41 +0000 (15:16 +0930)]
Add readme and copy of GPLv2

Move the upstream readme aside, so we can show a sensible readme to a
user of the driver.

The readme explains where I got the code from, what I've done to it,
and how to use the module.

The existing files contain headers indicating they are GPLv2 or later.
In actual fact, they appear to be a copy of cdc-acm.c from the 3.6
kernel with the original copyrights and comments stripped.

Signed-off-by: Joel Stanley <joel@jms.id.au>
10 years agoInitial commit
Joel Stanley [Mon, 2 Jun 2014 05:25:54 +0000 (14:55 +0930)]
Initial commit

Code fetched from [1] at Mon Jun  2 14:55:00 CST 2014.

[1] http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1410

Signed-off-by: Joel Stanley <joel@jms.id.au>