diff options
author | Johan Hovold <johan@kernel.org> | 2019-11-07 14:28:55 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2019-11-12 09:56:39 +0100 |
commit | 1c333550ea92a9c7a5fdf0f3474eba3387478f20 (patch) | |
tree | 38f7a2063f663c916b8794f5ea3513c48b2f0bf8 /drivers/usb/serial/mos7840.c | |
parent | 375cb533c00a237264cc1d810d22f70de30362c2 (diff) | |
download | linux-1c333550ea92a9c7a5fdf0f3474eba3387478f20.tar.bz2 |
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/mos7840.c')
-rw-r--r-- | drivers/usb/serial/mos7840.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index f13cf723fa6c..6de41a3c2dab 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c @@ -1955,6 +1955,13 @@ static int mos7840_ioctl(struct tty_struct *tty, 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) { int i, pass_count = 0; |