linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] plusb added support for PL-27A1 , kernel 4.2.0-25
@ 2016-02-21 14:41 Daniel Kucera
  2016-06-02  9:12 ` Daniel Kučera
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Kucera @ 2016-02-21 14:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: David S. Miller

Hello all,

I made a patch to add support for Prolific PL-27A1 host-to-host USB 3.0 
link cable. It's the same platform as PL-25A1 but with USB3.0 interface 
so basically I only added right vendor/device id to get detected. 
Maximum throughput I managed to get was about 1.5Gbps using iperf. I'll 
investigate usbnet to  get even higher throughput, if you have any tips 
where to look, let me know.

Developed and tested under 4.2.0-25.

Best regards
Daniel Kucera.


diff --git a/drivers/net/usb/plusb.c b/drivers/net/usb/plusb.c
index 1bfe0fc..1239239 100644
--- a/drivers/net/usb/plusb.c
+++ b/drivers/net/usb/plusb.c
@@ -102,7 +102,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-27A1",
      .flags =    FLAG_POINTTOPOINT | FLAG_NO_SETINT,
          /* some PL-2302 versions seem to fail usb_set_interface() */
      .reset =    pl_reset,
@@ -139,6 +139,15 @@ static const struct usb_device_id    products [] = {
                       * Host-to-Host Cable
                       */
      .driver_info =  (unsigned long) &prolific_info,
+
+},
+
+/* super speed cables */
+{
+    USB_DEVICE(0x067b, 0x27a1),     /* goobay Active USB 3.0 Data Link
+                     * Cable (PL-27A1)
+                     */
+    .driver_info =  (unsigned long) &prolific_info,
  },

      { },        // END
@@ -158,5 +167,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/27A1 USB Host to Host 
Link Driver");
  MODULE_LICENSE("GPL");

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] plusb added support for PL-27A1 , kernel 4.2.0-25
  2016-02-21 14:41 [PATCH] plusb added support for PL-27A1 , kernel 4.2.0-25 Daniel Kucera
@ 2016-06-02  9:12 ` Daniel Kučera
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Kučera @ 2016-06-02  9:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: David S. Miller

Did I forget something when this was not accepted?
S pozdravom / Best regards
Daniel Kucera.


2016-02-21 15:41 GMT+01:00 Daniel Kucera <daniel.kucera@gmail.com>:
> Hello all,
>
> I made a patch to add support for Prolific PL-27A1 host-to-host USB 3.0 link
> cable. It's the same platform as PL-25A1 but with USB3.0 interface so
> basically I only added right vendor/device id to get detected. Maximum
> throughput I managed to get was about 1.5Gbps using iperf. I'll investigate
> usbnet to  get even higher throughput, if you have any tips where to look,
> let me know.
>
> Developed and tested under 4.2.0-25.
>
> Best regards
> Daniel Kucera.
>
>
> diff --git a/drivers/net/usb/plusb.c b/drivers/net/usb/plusb.c
> index 1bfe0fc..1239239 100644
> --- a/drivers/net/usb/plusb.c
> +++ b/drivers/net/usb/plusb.c
> @@ -102,7 +102,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-27A1",
>      .flags =    FLAG_POINTTOPOINT | FLAG_NO_SETINT,
>          /* some PL-2302 versions seem to fail usb_set_interface() */
>      .reset =    pl_reset,
> @@ -139,6 +139,15 @@ static const struct usb_device_id    products [] = {
>                       * Host-to-Host Cable
>                       */
>      .driver_info =  (unsigned long) &prolific_info,
> +
> +},
> +
> +/* super speed cables */
> +{
> +    USB_DEVICE(0x067b, 0x27a1),     /* goobay Active USB 3.0 Data Link
> +                     * Cable (PL-27A1)
> +                     */
> +    .driver_info =  (unsigned long) &prolific_info,
>  },
>
>      { },        // END
> @@ -158,5 +167,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/27A1 USB Host to Host Link
> Driver");
>  MODULE_LICENSE("GPL");
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-02  9:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-21 14:41 [PATCH] plusb added support for PL-27A1 , kernel 4.2.0-25 Daniel Kucera
2016-06-02  9:12 ` Daniel Kučera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).