f81232.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. /*
  2. * Fintek F81232 USB to serial adaptor driver
  3. *
  4. * Copyright (C) 2012 Greg Kroah-Hartman (gregkh@linuxfoundation.org)
  5. * Copyright (C) 2012 Linux Foundation
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License version 2 as published by
  9. * the Free Software Foundation.
  10. *
  11. */
  12. #include <linux/kernel.h>
  13. #include <linux/errno.h>
  14. #include <linux/slab.h>
  15. #include <linux/tty.h>
  16. #include <linux/tty_driver.h>
  17. #include <linux/tty_flip.h>
  18. #include <linux/serial.h>
  19. #include <linux/module.h>
  20. #include <linux/moduleparam.h>
  21. #include <linux/mutex.h>
  22. #include <linux/uaccess.h>
  23. #include <linux/usb.h>
  24. #include <linux/usb/serial.h>
  25. #include <linux/serial_reg.h>
  26. static const struct usb_device_id id_table[] = {
  27. { USB_DEVICE(0x1934, 0x0706) },
  28. { } /* Terminating entry */
  29. };
  30. MODULE_DEVICE_TABLE(usb, id_table);
  31. /* Maximum baudrate for F81232 */
  32. #define F81232_MAX_BAUDRATE 115200
  33. /* USB Control EP parameter */
  34. #define F81232_REGISTER_REQUEST 0xa0
  35. #define F81232_GET_REGISTER 0xc0
  36. #define F81232_SET_REGISTER 0x40
  37. #define SERIAL_BASE_ADDRESS 0x0120
  38. #define RECEIVE_BUFFER_REGISTER (0x00 + SERIAL_BASE_ADDRESS)
  39. #define INTERRUPT_ENABLE_REGISTER (0x01 + SERIAL_BASE_ADDRESS)
  40. #define FIFO_CONTROL_REGISTER (0x02 + SERIAL_BASE_ADDRESS)
  41. #define LINE_CONTROL_REGISTER (0x03 + SERIAL_BASE_ADDRESS)
  42. #define MODEM_CONTROL_REGISTER (0x04 + SERIAL_BASE_ADDRESS)
  43. #define MODEM_STATUS_REGISTER (0x06 + SERIAL_BASE_ADDRESS)
  44. struct f81232_private {
  45. struct mutex lock;
  46. u8 modem_control;
  47. u8 modem_status;
  48. struct work_struct interrupt_work;
  49. struct usb_serial_port *port;
  50. };
  51. static int calc_baud_divisor(speed_t baudrate)
  52. {
  53. return DIV_ROUND_CLOSEST(F81232_MAX_BAUDRATE, baudrate);
  54. }
  55. static int f81232_get_register(struct usb_serial_port *port, u16 reg, u8 *val)
  56. {
  57. int status;
  58. u8 *tmp;
  59. struct usb_device *dev = port->serial->dev;
  60. tmp = kmalloc(sizeof(*val), GFP_KERNEL);
  61. if (!tmp)
  62. return -ENOMEM;
  63. status = usb_control_msg(dev,
  64. usb_rcvctrlpipe(dev, 0),
  65. F81232_REGISTER_REQUEST,
  66. F81232_GET_REGISTER,
  67. reg,
  68. 0,
  69. tmp,
  70. sizeof(*val),
  71. USB_CTRL_GET_TIMEOUT);
  72. if (status != sizeof(*val)) {
  73. dev_err(&port->dev, "%s failed status: %d\n", __func__, status);
  74. if (status < 0)
  75. status = usb_translate_errors(status);
  76. else
  77. status = -EIO;
  78. } else {
  79. status = 0;
  80. *val = *tmp;
  81. }
  82. kfree(tmp);
  83. return status;
  84. }
  85. static int f81232_set_register(struct usb_serial_port *port, u16 reg, u8 val)
  86. {
  87. int status;
  88. u8 *tmp;
  89. struct usb_device *dev = port->serial->dev;
  90. tmp = kmalloc(sizeof(val), GFP_KERNEL);
  91. if (!tmp)
  92. return -ENOMEM;
  93. *tmp = val;
  94. status = usb_control_msg(dev,
  95. usb_sndctrlpipe(dev, 0),
  96. F81232_REGISTER_REQUEST,
  97. F81232_SET_REGISTER,
  98. reg,
  99. 0,
  100. tmp,
  101. sizeof(val),
  102. USB_CTRL_SET_TIMEOUT);
  103. if (status != sizeof(val)) {
  104. dev_err(&port->dev, "%s failed status: %d\n", __func__, status);
  105. if (status < 0)
  106. status = usb_translate_errors(status);
  107. else
  108. status = -EIO;
  109. } else {
  110. status = 0;
  111. }
  112. kfree(tmp);
  113. return status;
  114. }
  115. static void f81232_read_msr(struct usb_serial_port *port)
  116. {
  117. int status;
  118. u8 current_msr;
  119. struct tty_struct *tty;
  120. struct f81232_private *priv = usb_get_serial_port_data(port);
  121. mutex_lock(&priv->lock);
  122. status = f81232_get_register(port, MODEM_STATUS_REGISTER,
  123. &current_msr);
  124. if (status) {
  125. dev_err(&port->dev, "%s fail, status: %d\n", __func__, status);
  126. mutex_unlock(&priv->lock);
  127. return;
  128. }
  129. if (!(current_msr & UART_MSR_ANY_DELTA)) {
  130. mutex_unlock(&priv->lock);
  131. return;
  132. }
  133. priv->modem_status = current_msr;
  134. if (current_msr & UART_MSR_DCTS)
  135. port->icount.cts++;
  136. if (current_msr & UART_MSR_DDSR)
  137. port->icount.dsr++;
  138. if (current_msr & UART_MSR_TERI)
  139. port->icount.rng++;
  140. if (current_msr & UART_MSR_DDCD) {
  141. port->icount.dcd++;
  142. tty = tty_port_tty_get(&port->port);
  143. if (tty) {
  144. usb_serial_handle_dcd_change(port, tty,
  145. current_msr & UART_MSR_DCD);
  146. tty_kref_put(tty);
  147. }
  148. }
  149. wake_up_interruptible(&port->port.delta_msr_wait);
  150. mutex_unlock(&priv->lock);
  151. }
  152. static int f81232_set_mctrl(struct usb_serial_port *port,
  153. unsigned int set, unsigned int clear)
  154. {
  155. u8 val;
  156. int status;
  157. struct f81232_private *priv = usb_get_serial_port_data(port);
  158. if (((set | clear) & (TIOCM_DTR | TIOCM_RTS)) == 0)
  159. return 0; /* no change */
  160. /* 'set' takes precedence over 'clear' */
  161. clear &= ~set;
  162. /* force enable interrupt with OUT2 */
  163. mutex_lock(&priv->lock);
  164. val = UART_MCR_OUT2 | priv->modem_control;
  165. if (clear & TIOCM_DTR)
  166. val &= ~UART_MCR_DTR;
  167. if (clear & TIOCM_RTS)
  168. val &= ~UART_MCR_RTS;
  169. if (set & TIOCM_DTR)
  170. val |= UART_MCR_DTR;
  171. if (set & TIOCM_RTS)
  172. val |= UART_MCR_RTS;
  173. dev_dbg(&port->dev, "%s new:%02x old:%02x\n", __func__,
  174. val, priv->modem_control);
  175. status = f81232_set_register(port, MODEM_CONTROL_REGISTER, val);
  176. if (status) {
  177. dev_err(&port->dev, "%s set MCR status < 0\n", __func__);
  178. mutex_unlock(&priv->lock);
  179. return status;
  180. }
  181. priv->modem_control = val;
  182. mutex_unlock(&priv->lock);
  183. return 0;
  184. }
  185. static void f81232_update_line_status(struct usb_serial_port *port,
  186. unsigned char *data,
  187. size_t actual_length)
  188. {
  189. struct f81232_private *priv = usb_get_serial_port_data(port);
  190. if (!actual_length)
  191. return;
  192. switch (data[0] & 0x07) {
  193. case 0x00: /* msr change */
  194. dev_dbg(&port->dev, "IIR: MSR Change: %02x\n", data[0]);
  195. schedule_work(&priv->interrupt_work);
  196. break;
  197. case 0x02: /* tx-empty */
  198. break;
  199. case 0x04: /* rx data available */
  200. break;
  201. case 0x06: /* lsr change */
  202. /* we can forget it. the LSR will read from bulk-in */
  203. dev_dbg(&port->dev, "IIR: LSR Change: %02x\n", data[0]);
  204. break;
  205. }
  206. }
  207. static void f81232_read_int_callback(struct urb *urb)
  208. {
  209. struct usb_serial_port *port = urb->context;
  210. unsigned char *data = urb->transfer_buffer;
  211. unsigned int actual_length = urb->actual_length;
  212. int status = urb->status;
  213. int retval;
  214. switch (status) {
  215. case 0:
  216. /* success */
  217. break;
  218. case -ECONNRESET:
  219. case -ENOENT:
  220. case -ESHUTDOWN:
  221. /* this urb is terminated, clean up */
  222. dev_dbg(&port->dev, "%s - urb shutting down with status: %d\n",
  223. __func__, status);
  224. return;
  225. default:
  226. dev_dbg(&port->dev, "%s - nonzero urb status received: %d\n",
  227. __func__, status);
  228. goto exit;
  229. }
  230. usb_serial_debug_data(&port->dev, __func__,
  231. urb->actual_length, urb->transfer_buffer);
  232. f81232_update_line_status(port, data, actual_length);
  233. exit:
  234. retval = usb_submit_urb(urb, GFP_ATOMIC);
  235. if (retval)
  236. dev_err(&urb->dev->dev,
  237. "%s - usb_submit_urb failed with result %d\n",
  238. __func__, retval);
  239. }
  240. static void f81232_process_read_urb(struct urb *urb)
  241. {
  242. struct usb_serial_port *port = urb->context;
  243. unsigned char *data = urb->transfer_buffer;
  244. char tty_flag;
  245. unsigned int i;
  246. u8 lsr;
  247. /*
  248. * When opening the port we get a 1-byte packet with the current LSR,
  249. * which we discard.
  250. */
  251. if ((urb->actual_length < 2) || (urb->actual_length % 2))
  252. return;
  253. /* bulk-in data: [LSR(1Byte)+DATA(1Byte)][LSR(1Byte)+DATA(1Byte)]... */
  254. for (i = 0; i < urb->actual_length; i += 2) {
  255. tty_flag = TTY_NORMAL;
  256. lsr = data[i];
  257. if (lsr & UART_LSR_BRK_ERROR_BITS) {
  258. if (lsr & UART_LSR_BI) {
  259. tty_flag = TTY_BREAK;
  260. port->icount.brk++;
  261. usb_serial_handle_break(port);
  262. } else if (lsr & UART_LSR_PE) {
  263. tty_flag = TTY_PARITY;
  264. port->icount.parity++;
  265. } else if (lsr & UART_LSR_FE) {
  266. tty_flag = TTY_FRAME;
  267. port->icount.frame++;
  268. }
  269. if (lsr & UART_LSR_OE) {
  270. port->icount.overrun++;
  271. tty_insert_flip_char(&port->port, 0,
  272. TTY_OVERRUN);
  273. }
  274. }
  275. if (port->port.console && port->sysrq) {
  276. if (usb_serial_handle_sysrq_char(port, data[i + 1]))
  277. continue;
  278. }
  279. tty_insert_flip_char(&port->port, data[i + 1], tty_flag);
  280. }
  281. tty_flip_buffer_push(&port->port);
  282. }
  283. static void f81232_break_ctl(struct tty_struct *tty, int break_state)
  284. {
  285. /* FIXME - Stubbed out for now */
  286. /*
  287. * break_state = -1 to turn on break, and 0 to turn off break
  288. * see drivers/char/tty_io.c to see it used.
  289. * last_set_data_urb_value NEVER has the break bit set in it.
  290. */
  291. }
  292. static void f81232_set_baudrate(struct usb_serial_port *port, speed_t baudrate)
  293. {
  294. u8 lcr;
  295. int divisor;
  296. int status = 0;
  297. divisor = calc_baud_divisor(baudrate);
  298. status = f81232_get_register(port, LINE_CONTROL_REGISTER,
  299. &lcr); /* get LCR */
  300. if (status) {
  301. dev_err(&port->dev, "%s failed to get LCR: %d\n",
  302. __func__, status);
  303. return;
  304. }
  305. status = f81232_set_register(port, LINE_CONTROL_REGISTER,
  306. lcr | UART_LCR_DLAB); /* Enable DLAB */
  307. if (status) {
  308. dev_err(&port->dev, "%s failed to set DLAB: %d\n",
  309. __func__, status);
  310. return;
  311. }
  312. status = f81232_set_register(port, RECEIVE_BUFFER_REGISTER,
  313. divisor & 0x00ff); /* low */
  314. if (status) {
  315. dev_err(&port->dev, "%s failed to set baudrate MSB: %d\n",
  316. __func__, status);
  317. goto reapply_lcr;
  318. }
  319. status = f81232_set_register(port, INTERRUPT_ENABLE_REGISTER,
  320. (divisor & 0xff00) >> 8); /* high */
  321. if (status) {
  322. dev_err(&port->dev, "%s failed to set baudrate LSB: %d\n",
  323. __func__, status);
  324. }
  325. reapply_lcr:
  326. status = f81232_set_register(port, LINE_CONTROL_REGISTER,
  327. lcr & ~UART_LCR_DLAB);
  328. if (status) {
  329. dev_err(&port->dev, "%s failed to set DLAB: %d\n",
  330. __func__, status);
  331. }
  332. }
  333. static int f81232_port_enable(struct usb_serial_port *port)
  334. {
  335. u8 val;
  336. int status;
  337. /* fifo on, trigger8, clear TX/RX*/
  338. val = UART_FCR_TRIGGER_8 | UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_RCVR |
  339. UART_FCR_CLEAR_XMIT;
  340. status = f81232_set_register(port, FIFO_CONTROL_REGISTER, val);
  341. if (status) {
  342. dev_err(&port->dev, "%s failed to set FCR: %d\n",
  343. __func__, status);
  344. return status;
  345. }
  346. /* MSR Interrupt only, LSR will read from Bulk-in odd byte */
  347. status = f81232_set_register(port, INTERRUPT_ENABLE_REGISTER,
  348. UART_IER_MSI);
  349. if (status) {
  350. dev_err(&port->dev, "%s failed to set IER: %d\n",
  351. __func__, status);
  352. return status;
  353. }
  354. return 0;
  355. }
  356. static int f81232_port_disable(struct usb_serial_port *port)
  357. {
  358. int status;
  359. status = f81232_set_register(port, INTERRUPT_ENABLE_REGISTER, 0);
  360. if (status) {
  361. dev_err(&port->dev, "%s failed to set IER: %d\n",
  362. __func__, status);
  363. return status;
  364. }
  365. return 0;
  366. }
  367. static void f81232_set_termios(struct tty_struct *tty,
  368. struct usb_serial_port *port, struct ktermios *old_termios)
  369. {
  370. u8 new_lcr = 0;
  371. int status = 0;
  372. speed_t baudrate;
  373. /* Don't change anything if nothing has changed */
  374. if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
  375. return;
  376. if (C_BAUD(tty) == B0)
  377. f81232_set_mctrl(port, 0, TIOCM_DTR | TIOCM_RTS);
  378. else if (old_termios && (old_termios->c_cflag & CBAUD) == B0)
  379. f81232_set_mctrl(port, TIOCM_DTR | TIOCM_RTS, 0);
  380. baudrate = tty_get_baud_rate(tty);
  381. if (baudrate > 0) {
  382. if (baudrate > F81232_MAX_BAUDRATE) {
  383. baudrate = F81232_MAX_BAUDRATE;
  384. tty_encode_baud_rate(tty, baudrate, baudrate);
  385. }
  386. f81232_set_baudrate(port, baudrate);
  387. }
  388. if (C_PARENB(tty)) {
  389. new_lcr |= UART_LCR_PARITY;
  390. if (!C_PARODD(tty))
  391. new_lcr |= UART_LCR_EPAR;
  392. if (C_CMSPAR(tty))
  393. new_lcr |= UART_LCR_SPAR;
  394. }
  395. if (C_CSTOPB(tty))
  396. new_lcr |= UART_LCR_STOP;
  397. switch (C_CSIZE(tty)) {
  398. case CS5:
  399. new_lcr |= UART_LCR_WLEN5;
  400. break;
  401. case CS6:
  402. new_lcr |= UART_LCR_WLEN6;
  403. break;
  404. case CS7:
  405. new_lcr |= UART_LCR_WLEN7;
  406. break;
  407. default:
  408. case CS8:
  409. new_lcr |= UART_LCR_WLEN8;
  410. break;
  411. }
  412. status = f81232_set_register(port, LINE_CONTROL_REGISTER, new_lcr);
  413. if (status) {
  414. dev_err(&port->dev, "%s failed to set LCR: %d\n",
  415. __func__, status);
  416. }
  417. }
  418. static int f81232_tiocmget(struct tty_struct *tty)
  419. {
  420. int r;
  421. struct usb_serial_port *port = tty->driver_data;
  422. struct f81232_private *port_priv = usb_get_serial_port_data(port);
  423. u8 mcr, msr;
  424. /* force get current MSR changed state */
  425. f81232_read_msr(port);
  426. mutex_lock(&port_priv->lock);
  427. mcr = port_priv->modem_control;
  428. msr = port_priv->modem_status;
  429. mutex_unlock(&port_priv->lock);
  430. r = (mcr & UART_MCR_DTR ? TIOCM_DTR : 0) |
  431. (mcr & UART_MCR_RTS ? TIOCM_RTS : 0) |
  432. (msr & UART_MSR_CTS ? TIOCM_CTS : 0) |
  433. (msr & UART_MSR_DCD ? TIOCM_CAR : 0) |
  434. (msr & UART_MSR_RI ? TIOCM_RI : 0) |
  435. (msr & UART_MSR_DSR ? TIOCM_DSR : 0);
  436. return r;
  437. }
  438. static int f81232_tiocmset(struct tty_struct *tty,
  439. unsigned int set, unsigned int clear)
  440. {
  441. struct usb_serial_port *port = tty->driver_data;
  442. return f81232_set_mctrl(port, set, clear);
  443. }
  444. static int f81232_open(struct tty_struct *tty, struct usb_serial_port *port)
  445. {
  446. int result;
  447. result = f81232_port_enable(port);
  448. if (result)
  449. return result;
  450. /* Setup termios */
  451. if (tty)
  452. f81232_set_termios(tty, port, NULL);
  453. result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
  454. if (result) {
  455. dev_err(&port->dev, "%s - failed submitting interrupt urb,"
  456. " error %d\n", __func__, result);
  457. return result;
  458. }
  459. result = usb_serial_generic_open(tty, port);
  460. if (result) {
  461. usb_kill_urb(port->interrupt_in_urb);
  462. return result;
  463. }
  464. return 0;
  465. }
  466. static void f81232_close(struct usb_serial_port *port)
  467. {
  468. f81232_port_disable(port);
  469. usb_serial_generic_close(port);
  470. usb_kill_urb(port->interrupt_in_urb);
  471. }
  472. static void f81232_dtr_rts(struct usb_serial_port *port, int on)
  473. {
  474. if (on)
  475. f81232_set_mctrl(port, TIOCM_DTR | TIOCM_RTS, 0);
  476. else
  477. f81232_set_mctrl(port, 0, TIOCM_DTR | TIOCM_RTS);
  478. }
  479. static int f81232_carrier_raised(struct usb_serial_port *port)
  480. {
  481. u8 msr;
  482. struct f81232_private *priv = usb_get_serial_port_data(port);
  483. mutex_lock(&priv->lock);
  484. msr = priv->modem_status;
  485. mutex_unlock(&priv->lock);
  486. if (msr & UART_MSR_DCD)
  487. return 1;
  488. return 0;
  489. }
  490. static int f81232_get_serial_info(struct usb_serial_port *port,
  491. unsigned long arg)
  492. {
  493. struct serial_struct ser;
  494. memset(&ser, 0, sizeof(ser));
  495. ser.type = PORT_16550A;
  496. ser.line = port->minor;
  497. ser.port = port->port_number;
  498. ser.baud_base = F81232_MAX_BAUDRATE;
  499. if (copy_to_user((void __user *)arg, &ser, sizeof(ser)))
  500. return -EFAULT;
  501. return 0;
  502. }
  503. static int f81232_ioctl(struct tty_struct *tty,
  504. unsigned int cmd, unsigned long arg)
  505. {
  506. struct usb_serial_port *port = tty->driver_data;
  507. switch (cmd) {
  508. case TIOCGSERIAL:
  509. return f81232_get_serial_info(port, arg);
  510. default:
  511. break;
  512. }
  513. return -ENOIOCTLCMD;
  514. }
  515. static void f81232_interrupt_work(struct work_struct *work)
  516. {
  517. struct f81232_private *priv =
  518. container_of(work, struct f81232_private, interrupt_work);
  519. f81232_read_msr(priv->port);
  520. }
  521. static int f81232_port_probe(struct usb_serial_port *port)
  522. {
  523. struct f81232_private *priv;
  524. priv = kzalloc(sizeof(*priv), GFP_KERNEL);
  525. if (!priv)
  526. return -ENOMEM;
  527. mutex_init(&priv->lock);
  528. INIT_WORK(&priv->interrupt_work, f81232_interrupt_work);
  529. usb_set_serial_port_data(port, priv);
  530. port->port.drain_delay = 256;
  531. priv->port = port;
  532. return 0;
  533. }
  534. static int f81232_port_remove(struct usb_serial_port *port)
  535. {
  536. struct f81232_private *priv;
  537. priv = usb_get_serial_port_data(port);
  538. kfree(priv);
  539. return 0;
  540. }
  541. static struct usb_serial_driver f81232_device = {
  542. .driver = {
  543. .owner = THIS_MODULE,
  544. .name = "f81232",
  545. },
  546. .id_table = id_table,
  547. .num_ports = 1,
  548. .bulk_in_size = 256,
  549. .bulk_out_size = 256,
  550. .open = f81232_open,
  551. .close = f81232_close,
  552. .dtr_rts = f81232_dtr_rts,
  553. .carrier_raised = f81232_carrier_raised,
  554. .ioctl = f81232_ioctl,
  555. .break_ctl = f81232_break_ctl,
  556. .set_termios = f81232_set_termios,
  557. .tiocmget = f81232_tiocmget,
  558. .tiocmset = f81232_tiocmset,
  559. .tiocmiwait = usb_serial_generic_tiocmiwait,
  560. .process_read_urb = f81232_process_read_urb,
  561. .read_int_callback = f81232_read_int_callback,
  562. .port_probe = f81232_port_probe,
  563. .port_remove = f81232_port_remove,
  564. };
  565. static struct usb_serial_driver * const serial_drivers[] = {
  566. &f81232_device,
  567. NULL,
  568. };
  569. module_usb_serial_driver(serial_drivers, id_table);
  570. MODULE_DESCRIPTION("Fintek F81232 USB to serial adaptor driver");
  571. MODULE_AUTHOR("Greg Kroah-Hartman <gregkh@linuxfoundation.org>");
  572. MODULE_AUTHOR("Peter Hong <peter_hong@fintek.com.tw>");
  573. MODULE_LICENSE("GPL v2");