linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: plusb: Add support for PL-27A1
@ 2017-04-20 10:04 Roman Spychała
  2017-04-25 14:29 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Roman Spychała @ 2017-04-20 10:04 UTC (permalink / raw)
  To: linux-usb; +Cc: netdev, linux-kernel, Roman Spychała

From: Roman Spychała <roed@onet.eu>

This patch adds support for the PL-27A1 by adding the appropriate
USB ID's. This chip is used in the goobay Active USB 3.0 Data Link
and Unitek Y-3501 cables.

Signed-off-by: Roman Spychała <roed@onet.eu>
---
 drivers/net/usb/Kconfig |  2 +-
 drivers/net/usb/plusb.c | 15 +++++++++++++--
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/drivers/net/usb/Kconfig b/drivers/net/usb/Kconfig
index 3dd490f53e48..f28bd74ac275 100644
--- a/drivers/net/usb/Kconfig
+++ b/drivers/net/usb/Kconfig
@@ -369,7 +369,7 @@ config USB_NET_NET1080
 	  optionally with LEDs that indicate traffic
 
 config USB_NET_PLUSB
-	tristate "Prolific PL-2301/2302/25A1 based cables"
+	tristate "Prolific PL-2301/2302/25A1/27A1 based cables"
 	# if the handshake/init/reset problems, from original 'plusb',
 	# are ever resolved ... then remove "experimental"
 	depends on USB_USBNET
diff --git a/drivers/net/usb/plusb.c b/drivers/net/usb/plusb.c
index 22e1a9a99a7d..6fe59373cba9 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,17 @@ static const struct usb_device_id	products [] = {
 					 * Host-to-Host Cable
 					 */
 	.driver_info =  (unsigned long) &prolific_info,
+
+},
+
+/* super speed cables */
+{
+	USB_DEVICE(0x067b, 0x27a1),     /* PL-27A1, no eeprom
+					 * also: goobay Active USB 3.0
+					 * Data Link,
+					 * Unitek Y-3501
+					 */
+	.driver_info =  (unsigned long) &prolific_info,
 },
 
 	{ },		// END
@@ -158,5 +169,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");
-- 
2.12.2

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

* Re: [PATCH] usb: plusb: Add support for PL-27A1
  2017-04-20 10:04 [PATCH] usb: plusb: Add support for PL-27A1 Roman Spychała
@ 2017-04-25 14:29 ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2017-04-25 14:29 UTC (permalink / raw)
  To: roed; +Cc: linux-usb, netdev, linux-kernel

From: Roman Spychała <roed@onet.eu>
Date: Thu, 20 Apr 2017 12:04:10 +0200

> From: Roman Spychała <roed@onet.eu>
> 
> This patch adds support for the PL-27A1 by adding the appropriate
> USB ID's. This chip is used in the goobay Active USB 3.0 Data Link
> and Unitek Y-3501 cables.
> 
> Signed-off-by: Roman Spychała <roed@onet.eu>

Applied, thank you.

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

* Re: [PATCH] usb: plusb: Add support for PL-27A1
       [not found] <CAKVPjObJXVDhzNcY-u0jJ5ovqDQGjcrJrNjVzRdjTSUD4YSD8w@mail.gmail.com>
@ 2018-03-30 22:24 ` Daniel Kučera
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Kučera @ 2018-03-30 22:24 UTC (permalink / raw)
  To: linux-kernel, netdev, usb; +Cc: roed

Hello Roman,

it would be at least polite to mention where you got the code from:

https://lkml.org/lkml/2016/2/21/14

-- 

S pozdravom / Best regards
Daniel Kucera.

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

end of thread, other threads:[~2018-03-30 22:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-20 10:04 [PATCH] usb: plusb: Add support for PL-27A1 Roman Spychała
2017-04-25 14:29 ` David Miller
     [not found] <CAKVPjObJXVDhzNcY-u0jJ5ovqDQGjcrJrNjVzRdjTSUD4YSD8w@mail.gmail.com>
2018-03-30 22:24 ` 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).