Skip to content

Commit b69578d

Browse files
mike-dunngregkh
authored andcommitted
USB: usbserial: mos7720: add support for parallel port on moschip 7715
Add support for the parallel port on the moschip MCS7715 device. The port registers itself with the parport subsystem as a low-level driver. A separate entry to the kernel configuration is added beneath that for the mos7720, to avoid the need to link with the parport subsystem code for users who don't have or don't want the parallel port. Only compatibility mode is currently supported (no ECP/EPP). Tested with both moschip devices (7720 and 7715) on UP and SMP hosts, including regression testing of serial port, concurrent operation of serial and parallel ports, and various connect / disconnect scenarios. Signed-off-by: Mike Dunn <mikedunn@newsguy.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent c220cc3 commit b69578d

File tree

3 files changed

+747
-86
lines changed

3 files changed

+747
-86
lines changed

Documentation/usb/usb-serial.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,22 @@ Winchiphead CH341 Driver
440440
For any questions or problems with this driver, please contact
441441
frank@kingswood-consulting.co.uk.
442442

443+
Moschip MCS7720, MCS7715 driver
444+
445+
These chips are present in devices sold by various manufacturers, such as Syba
446+
and Cables Unlimited. There may be others. The 7720 provides two serial
447+
ports, and the 7715 provides one serial and one standard PC parallel port.
448+
Support for the 7715's parallel port is enabled by a separate option, which
449+
will not appear unless parallel port support is first enabled at the top-level
450+
of the Device Drivers config menu. Currently only compatibility mode is
451+
supported on the parallel port (no ECP/EPP).
452+
453+
TODO:
454+
- Implement ECP/EPP modes for the parallel port.
455+
- Baud rates higher than 115200 are currently broken.
456+
- Devices with a single serial port based on the Moschip MCS7703 may work
457+
with this driver with a simple addition to the usb_device_id table. I
458+
don't have one of these devices, so I can't say for sure.
443459

444460
Generic Serial driver
445461

drivers/usb/serial/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,17 @@ config USB_SERIAL_MOS7720
425425
To compile this driver as a module, choose M here: the
426426
module will be called mos7720.
427427

428+
if USB_SERIAL_MOS7720
429+
config USB_SERIAL_MOS7715_PARPORT
430+
bool "Support for parallel port on the Moschip 7715"
431+
select PARPORT_NOT_PC
432+
depends on PARPORT
433+
---help---
434+
Say Y if you have a Moschip 7715 device and would like to use
435+
the parallel port it provides. The port will register with
436+
the parport subsystem as a low-level driver.
437+
endif
438+
428439
config USB_SERIAL_MOS7840
429440
tristate "USB Moschip 7840/7820 USB Serial Driver"
430441
---help---

0 commit comments

Comments
 (0)