Commit 1c333550 authored by Johan Hovold's avatar Johan Hovold

USB: serial: mos7840: document MCS7810 detection hack

Document the MCS7810 detection hack which relies on having the GPO and
GPI pins connected as recommended by ASIX.

Note that GPO (pin 42) is really RTS of the third port which will be
toggled for the corresponding physical port on two- and four-port
devices.
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 375cb533
...@@ -1955,6 +1955,13 @@ static int mos7840_ioctl(struct tty_struct *tty, ...@@ -1955,6 +1955,13 @@ static int mos7840_ioctl(struct tty_struct *tty,
return -ENOIOCTLCMD; return -ENOIOCTLCMD;
} }
/*
* Check if GPO (pin 42) is connected to GPI (pin 33) as recommended by ASIX
* for MCS7810 by bit-banging a 16-bit word.
*
* Note that GPO is really RTS of the third port so this will toggle RTS of
* port two or three on two- and four-port devices.
*/
static int mos7810_check(struct usb_serial *serial) static int mos7810_check(struct usb_serial *serial)
{ {
int i, pass_count = 0; int i, pass_count = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment