From patchwork Thu Apr 20 10:04:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roman_Spycha=C5=82a?= X-Patchwork-Id: 752736 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3w7vph6kBKz9s7F for ; Thu, 20 Apr 2017 20:13:48 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=onet.eu header.i=@onet.eu header.b="j5u2l/pf"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031411AbdDTKNl (ORCPT ); Thu, 20 Apr 2017 06:13:41 -0400 Received: from smtpo47.poczta.onet.pl ([213.180.142.178]:43455 "EHLO smtpo47.poczta.onet.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031193AbdDTKNj (ORCPT ); Thu, 20 Apr 2017 06:13:39 -0400 X-Greylist: delayed 557 seconds by postgrey-1.27 at vger.kernel.org; Thu, 20 Apr 2017 06:13:38 EDT Received: from localhost.localdomain (unknown [83.19.220.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: roed@onet.eu) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3w7vbf5MHYzxq20H; Thu, 20 Apr 2017 12:04:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onet.eu; s=2011; t=1492682656; bh=/VhWoYBqA7mpKj+7osYX5dCkHZ4sfULx2C9mBKhWOEQ=; h=From:To:Cc:Subject:Date:From; b=j5u2l/pfUD9KgdEqRyzqOs3oTnEPt/j24dOluT6lpAtAojAQ8gR77A7DsTfaBSy0H ihVp8QpY33lox2Q5t5wpB3LNAY9CWNqHstNvtivH4DG7atLrqV8pt9DN9ELMKxAEBl L3ydcXu8eCnv2g7woEBxvYqxZ2jFZ/85RTcXfY4g= From: =?UTF-8?q?Roman=20Spycha=C5=82a?= To: linux-usb@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Roman=20Spycha=C5=82a?= Subject: [PATCH] usb: plusb: Add support for PL-27A1 Date: Thu, 20 Apr 2017 12:04:10 +0200 Message-Id: <20170420100410.3296-1-roed@onet.eu> X-Mailer: git-send-email 2.12.2 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Roman Spychała 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 --- 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");