From patchwork Fri Jun 19 07:11:28 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Brownell X-Patchwork-Id: 28900 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 6FDABB728D for ; Fri, 19 Jun 2009 17:11:37 +1000 (EST) Received: by ozlabs.org (Postfix) id 5F0E9DDDA0; Fri, 19 Jun 2009 17:11:37 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id E8560DDD1C for ; Fri, 19 Jun 2009 17:11:36 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753233AbZFSHL2 (ORCPT ); Fri, 19 Jun 2009 03:11:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752467AbZFSHL1 (ORCPT ); Fri, 19 Jun 2009 03:11:27 -0400 Received: from smtp109.sbc.mail.gq1.yahoo.com ([67.195.14.39]:33806 "HELO smtp109.sbc.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751978AbZFSHL0 (ORCPT ); Fri, 19 Jun 2009 03:11:26 -0400 Received: (qmail 87244 invoked from network); 19 Jun 2009 07:11:29 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=pacbell.net; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:Date:User-Agent:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=IC7ATpDyePgy4Ps1ZLegnLRFBSTFHb1Um5ZWkay9IiOMnLV+3gGilJalLUohdC7SS3FKW9oo+9GuqVGs+0hrPGGjknbme4aZFH21Cu9p5+iDsWMLnw5NlkhmLnZc4C1QM0ar54kCz+P4KYNR9GkrAep/UZqQDdrln8A3FEzZiV0= ; Received: from unknown (HELO albert) (david-b@69.226.220.141 with plain) by smtp109.sbc.mail.gq1.yahoo.com with SMTP; 19 Jun 2009 07:11:29 -0000 X-Yahoo-SMTP: HIlLYKCswBDnjrunw3O.NnLyvismjGf1HBYfVTvuneM- X-YMail-OSG: 94uSrVwVM1m8KKrSCl61dhAtPovhBRZMpG0syQLE0S4LLsn9DBFKFH6dkqDMlm19NBYqMeRA8G8EiRcppMX9wld9JetXipLgW7Mts_MOS.dAjIZ.QvFnfrq2YTZz3OnGNSES9Yp9NGZvOVuA0bQq6tjVTfX3sHSjWh5G4MJ6_Sy3TgogmQ9_QkE2IBltUhBgn6Nw12hOjdNLVO1a_KrVuLvU4kMDSx.2gUd.yWP35ihEFeR3JFl3HxeHlzRp5SS3g24FN5EhAVow4f5MCyF6Z9Oz6jREnuGVd5jtey_TkH6lRWbe0A0v0zV_Gu0e1qlI261K_RbYgRlVbUAGCznIWaXOBmwkvw-- X-Yahoo-Newman-Property: ymail-3 From: David Brownell To: Network development list Subject: [patch] usbnet cdc_subset: fix issues talking to PXA gadgets Date: Fri, 19 Jun 2009 00:11:28 -0700 User-Agent: KMail/1.9.10 Cc: "Aric D. Blumer" MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200906190011.28320.david-b@pacbell.net> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: David Brownell The host-side CDC subset driver is binding more specifically than it should ... only to PXA 210/25x/26x Linux-USB gadgets. Loosen that restriction to match the gadget driver itself. This helps various PXA 27x and PXA 3xx devices be happier when talking to Linux hosts; and a few other gadgets too. Signed-off-by: David Brownell Tested-by: Aric D. Blumer --- Appropriate for -stable ... behaves like a protocol bug. drivers/net/usb/cdc_subset.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 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 --- a/drivers/net/usb/cdc_subset.c +++ b/drivers/net/usb/cdc_subset.c @@ -307,9 +307,10 @@ static const struct usb_device_id produc USB_DEVICE (0x1286, 0x8001), // "blob" bootloader .driver_info = (unsigned long) &blob_info, }, { - // Linux Ethernet/RNDIS gadget on pxa210/25x/26x, second config - // e.g. Gumstix, current OpenZaurus, ... - USB_DEVICE_VER (0x0525, 0xa4a2, 0x0203, 0x0203), + // Linux Ethernet/RNDIS gadget, mostly on PXA, second config + // e.g. Gumstix, current OpenZaurus, ... or anything else + // that just enables this gadget option. + USB_DEVICE_VER (0x0525, 0xa4a2), .driver_info = (unsigned long) &linuxdev_info, }, #endif