From patchwork Mon Jul 23 11:44:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kyak X-Patchwork-Id: 172632 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 B68E92C032D for ; Mon, 23 Jul 2012 21:44:34 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752403Ab2GWLoQ (ORCPT ); Mon, 23 Jul 2012 07:44:16 -0400 Received: from mail.bmail.ru ([194.67.1.203]:27066 "EHLO sovam.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750854Ab2GWLoP (ORCPT ); Mon, 23 Jul 2012 07:44:15 -0400 X-DSPAM-Result: Innocent X-DSPAM-Processed: Mon Jul 23 15:44:12 2012 X-DSPAM-Confidence: 0.9899 X-DSPAM-Probability: 0.0000 Received: from [176.14.47.109] (account bas@bmail.ru [176.14.47.109] verified) by mail-fe02.sovam.com (CommuniGate Pro SMTP 5.2.20) with ESMTPSA id 165449868; Mon, 23 Jul 2012 15:44:12 +0400 Date: Mon, 23 Jul 2012 15:44:11 +0400 (MSK) From: kyak X-X-Sender: bas@bas To: linux-kernel@vger.kernel.org cc: Sergei Shtylyov , linux-usb@vger.kernel.org, netdev@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH] USB: plusb: Add support for PL-2501 Message-ID: User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Mikhail Peselnik This patch adds support for PL-2501 by adding the appropriate USB ID's. This chip is used in several USB 'Easy Trasfer' Cables. Signed-off-by: Mikhail Peselnik Tested-by: Mikhail Peselnik --- Now with proper sign-offs and right people in cc and unwrapped lines. 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. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- linux-3.5/drivers/net/usb/plusb.c.orig 2012-07-22 21:06:41.905802795 +0400 +++ linux-3.5/drivers/net/usb/plusb.c 2012-07-22 21:07:00.345552404 +0400 @@ -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");