USB: plusb: Add support for PL-2501
Subsystems (2)
PATCH 1/1 USB: plusb: Add support for PL-2501
From: Mikhail Peselnik <[email protected]>
This patch adds support for PL-2501 by adding the appropriate USB ID's. This chip is used in several USB 'Easy Trasfer' Cables.
Tested-by Mikhail Peselnik <[email protected]>
---
plusb driver (drivers/net/usb/plusb.c) doesn't recognize PL2501 chip. Since PL2501 uses the same code as PL2301/PL2302 (PL2501 works in compatibility mode with PL2301/PL2302), the fix is trivial and attached as a patch.
Just to note: the patch is not mine, it can be found here and there on Internet.
I've tested the patch and it works great.
Thank you.
drivers/net/usb/plusb.c renamed from drivers/net/usb/plusb.c.orig +5 -2
@@ -107,7 +107,7 @@ static int pl_reset(struct usbnet *dev) }static const struct driver_info prolific_info = { - .description ="Prolific PL-2301/PL-2302/PL-25A1" , + .description ="Prolific PL-2301/PL-2302/PL-25A1/PL-2501" , .flags =FLAG_POINTTOPOINT |FLAG_NO_SETINT ,/* some PL-2302 versions seem to fail usb_set_interface() */ .reset = pl_reset,
@@ -139,6 +139,9 @@ static const struct usb_device_id produc }, { USB_DEVICE(0x050d, 0x258a), /* Belkin F5U258/F5U279 (PL-25A1) */ .driver_info = (unsigned long ) &prolific_info, +}, { +USB_DEVICE (0x067b ,0x2501 ),/* PL-2501 */ + .driver_info = (unsigned long) &prolific_info, }, { }, // END
@@ -158,5 +161,5 @@ static struct usb_driver plusb_driver =module_usb_driver (plusb_driver);MODULE_AUTHOR ("David Brownell" ); -MODULE_DESCRIPTION ("Prolific PL-2301/2302/25A1 USB Host to Host Link Driver" ); +MODULE_DESCRIPTION ("Prolific PL-2301/2302/25A1/2501 USB Host to Host Link Driver" );MODULE_LICENSE ("GPL" );