Skip to content

Commit d24f059

Browse files
alexhenriegregkh
authored andcommitted
usb: misc: uss720: add support for another variant of the Belkin F5U002
This device is a gray USB parallel port adapter with "F5U002" imprinted on the plastic and a sticker that says both "F5U002" and "P80453-A". It's identified in lsusb as "05ab:1001 In-System Design BAYI Printer Class Support". It's subtly different from the other gray cable I have that has "F5U002 Rev 2" and "P80453-B" on its sticker and device ID 050d:0002. The uss720 driver appears to work flawlessly with this device, although the device evidently does not support ECP. Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Link: https://lore.kernel.org/r/20240326150723.99939-4-alexhenrie24@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent fabce53 commit d24f059

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/usb/misc/uss720.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ static int uss720_probe(struct usb_interface *intf,
693693

694694
interface = intf->cur_altsetting;
695695

696-
if (interface->desc.bNumEndpoints < 3) {
696+
if (interface->desc.bNumEndpoints < 2) {
697697
usb_put_dev(usbdev);
698698
return -ENODEV;
699699
}
@@ -719,7 +719,9 @@ static int uss720_probe(struct usb_interface *intf,
719719

720720
priv->pp = pp;
721721
pp->private_data = priv;
722-
pp->modes = PARPORT_MODE_PCSPP | PARPORT_MODE_TRISTATE | PARPORT_MODE_EPP | PARPORT_MODE_ECP | PARPORT_MODE_COMPAT;
722+
pp->modes = PARPORT_MODE_PCSPP | PARPORT_MODE_TRISTATE | PARPORT_MODE_EPP | PARPORT_MODE_COMPAT;
723+
if (interface->desc.bNumEndpoints >= 3)
724+
pp->modes |= PARPORT_MODE_ECP;
723725
pp->dev = &usbdev->dev;
724726

725727
/* set the USS720 control register to manual mode, no ECP compression, enable all ints */
@@ -774,6 +776,7 @@ static const struct usb_device_id uss720_table[] = {
774776
{ USB_DEVICE(0x050d, 0x1202) }, /* Belkin F5U120-PC */
775777
{ USB_DEVICE(0x0557, 0x2001) },
776778
{ USB_DEVICE(0x05ab, 0x0002) }, /* Belkin F5U002 ISD-101 */
779+
{ USB_DEVICE(0x05ab, 0x1001) }, /* Belkin F5U002 P80453-A */
777780
{ USB_DEVICE(0x06c6, 0x0100) }, /* Infowave ISD-103 */
778781
{ USB_DEVICE(0x0729, 0x1284) },
779782
{ USB_DEVICE(0x1293, 0x0002) },

0 commit comments

Comments
 (0)