From kubito@gmail.com  Sun Sep  1 18:00:15 2013
Return-Path: <kubito@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 9B48C1A1;
	Sun,  1 Sep 2013 18:00:15 +0000 (UTC)
	(envelope-from kubito@gmail.com)
Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d])
	(using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id B70DC2C21;
	Sun,  1 Sep 2013 18:00:14 +0000 (UTC)
Received: by mail-lb0-f173.google.com with SMTP id o14so3188539lbi.32
        for <multiple recipients>; Sun, 01 Sep 2013 11:00:12 -0700 (PDT)
Received: from localhost (a91-154-115-217.elisa-laajakaista.fi. [91.154.115.217])
        by mx.google.com with ESMTPSA id b1sm4378725lah.6.1969.12.31.16.00.00
        (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sun, 01 Sep 2013 11:00:11 -0700 (PDT)
Message-Id: <522380ab.811c980a.63e7.ffff829a@mx.google.com>
Date: Sun, 01 Sep 2013 11:00:11 -0700 (PDT)
From: Raphael Kubo da Costa <rakuco@FreeBSD.org>
Sender: Raphael Kubo da Costa <kubito@gmail.com>
Reply-To: Raphael Kubo da Costa <rakuco@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: freebsd-net@FreeBSD.org, hselasky@FreeBSD.org
Subject: [PATCH] Add product ID for Asus USB-BT400 Bluetooth adaptor
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         181728
>Category:       kern
>Synopsis:       [PATCH] Add product ID for Asus USB-BT400 Bluetooth adaptor
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    eadler
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 01 18:10:00 UTC 2013
>Closed-Date:    Sun Sep 01 19:28:39 UTC 2013
>Last-Modified:  Sat Sep  7 06:50:00 UTC 2013
>Originator:     Raphael Kubo da Costa
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
FreeBSD Project
>Environment:
System: FreeBSD orwell 10.0-CURRENT FreeBSD 10.0-CURRENT #2 r255096: Sat Aug 31 19:35:58 EEST 2013 root@orwell:/usr/obj/usr/src/sys/ORWELL amd64


	
>Description:
The attached patch adds another product ID to the list of devices using the BCM20702A0 chipset, ASUS USB-BT400. usbconfig dump_device_desc output:

ugen2.3: <BCM20702A0 Broadcom Corp> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x00ff
  bDeviceSubClass = 0x0001
  bDeviceProtocol = 0x0001
  bMaxPacketSize0 = 0x0040
  idVendor = 0x0b05
  idProduct = 0x17cb
  bcdDevice = 0x0112
  iManufacturer = 0x0001  <Broadcom Corp>
  iProduct = 0x0002  <BCM20702A0>
  iSerialNumber = 0x0003  <000272C64400>
  bNumConfigurations = 0x0001

>How-To-Repeat:
	
>Fix:

	


--- ng_ubt-asus-17cb.diff begins here ---
Index: sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
===================================================================
--- sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c	(revision 255096)
+++ sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c	(working copy)
@@ -494,6 +494,7 @@
 
 	/* Broadcom BCM20702A0 */
 	{ USB_VPI(USB_VENDOR_ASUS, 0x17b5, 0) },
+	{ USB_VPI(USB_VENDOR_ASUS, 0x17cb, 0) },
 	{ USB_VPI(USB_VENDOR_LITEON, 0x2003, 0) },
 	{ USB_VPI(USB_VENDOR_FOXCONN, 0xe042, 0) },
 	{ USB_VPI(USB_VENDOR_DELL, 0x8197, 0) },
--- ng_ubt-asus-17cb.diff ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: rakuco 
Responsible-Changed-When: Sun Sep 1 18:39:45 UTC 2013 
Responsible-Changed-Why:  
On to freebsd-net. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181728 
Responsible-Changed-From-To: freebsd-net->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Sun Sep 1 18:40:40 UTC 2013 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181728 
State-Changed-From-To: open->closed 
State-Changed-By: eadler 
State-Changed-When: Sun Sep 1 19:28:39 UTC 2013 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181728 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/181728: commit references a PR
Date: Sun,  1 Sep 2013 19:27:40 +0000 (UTC)

 Author: eadler
 Date: Sun Sep  1 19:27:32 2013
 New Revision: 255128
 URL: http://svnweb.freebsd.org/changeset/base/255128
 
 Log:
   Add support for the BCM20702A0 chipset, ASUS USB-BT400.
   
   PR:		kern/181728
   Submitted by:	rakuco
 
 Modified:
   head/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
 
 Modified: head/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
 ==============================================================================
 --- head/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c	Sun Sep  1 18:59:09 2013	(r255127)
 +++ head/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c	Sun Sep  1 19:27:32 2013	(r255128)
 @@ -494,6 +494,7 @@ static const STRUCT_USB_HOST_ID ubt_devs
  
  	/* Broadcom BCM20702A0 */
  	{ USB_VPI(USB_VENDOR_ASUS, 0x17b5, 0) },
 +	{ USB_VPI(USB_VENDOR_ASUS, 0x17cb, 0) },
  	{ USB_VPI(USB_VENDOR_LITEON, 0x2003, 0) },
  	{ USB_VPI(USB_VENDOR_FOXCONN, 0xe042, 0) },
  	{ USB_VPI(USB_VENDOR_DELL, 0x8197, 0) },
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/181728: commit references a PR
Date: Sat,  7 Sep 2013 06:38:42 +0000 (UTC)

 Author: hselasky
 Date: Sat Sep  7 06:38:34 2013
 New Revision: 255345
 URL: http://svnweb.freebsd.org/changeset/base/255345
 
 Log:
   MFC r255090 and r255128:
   
   PR:		kern/181728
 
 Modified:
   stable/9/sys/dev/usb/usbdevs
   stable/9/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
 Directory Properties:
   stable/9/sys/   (props changed)
   stable/9/sys/dev/   (props changed)
 
 Modified: stable/9/sys/dev/usb/usbdevs
 ==============================================================================
 --- stable/9/sys/dev/usb/usbdevs	Sat Sep  7 05:44:53 2013	(r255344)
 +++ stable/9/sys/dev/usb/usbdevs	Sat Sep  7 06:38:34 2013	(r255345)
 @@ -515,11 +515,13 @@ vendor USR		0x0baf	U.S. Robotics
  vendor AMBIT		0x0bb2	Ambit Microsystems
  vendor HTC		0x0bb4	HTC
  vendor REALTEK		0x0bda	Realtek
 +vendor ERICSSON2	0x0bdb	Ericsson
  vendor MEI		0x0bed	MEI
  vendor ADDONICS2	0x0bf6	Addonics Technology
  vendor FSC		0x0bf8	Fujitsu Siemens Computers
  vendor AGATE		0x0c08	Agate Technologies
  vendor DMI		0x0c0b	DMI
 +vendor CANYON		0x0c10	Canyon
  vendor ICOM		0x0c26	Icom Inc.
  vendor GNOTOMETRICS	0x0c33	GN Otometrics
  vendor CHICONY2		0x0c45	Chicony
 
 Modified: stable/9/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
 ==============================================================================
 --- stable/9/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c	Sat Sep  7 05:44:53 2013	(r255344)
 +++ stable/9/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c	Sat Sep  7 06:38:34 2013	(r255345)
 @@ -404,6 +404,67 @@ static const STRUCT_USB_HOST_ID ubt_devs
  	  USB_IFACE_CLASS(UICLASS_VENDOR),
  	  USB_IFACE_SUBCLASS(UDSUBCLASS_RF),
  	  USB_IFACE_PROTOCOL(UDPROTO_BLUETOOTH) },
 +
 +	/* Apple-specific (Broadcom) devices */
 +	{ USB_VENDOR(USB_VENDOR_APPLE),
 +	  USB_IFACE_CLASS(UICLASS_VENDOR),
 +	  USB_IFACE_SUBCLASS(UDSUBCLASS_RF),
 +	  USB_IFACE_PROTOCOL(UDPROTO_BLUETOOTH) },
 +
 +	/* Foxconn - Hon Hai */
 +	{ USB_VENDOR(USB_VENDOR_FOXCONN),
 +	  USB_IFACE_CLASS(UICLASS_VENDOR),
 +	  USB_IFACE_SUBCLASS(UDSUBCLASS_RF),
 +	  USB_IFACE_PROTOCOL(UDPROTO_BLUETOOTH) },
 +
 +	/* MediaTek MT76x0E */
 +	{ USB_VPI(USB_VENDOR_MEDIATEK, 0x763f, 0) },
 +
 +	/* Broadcom SoftSailing reporting vendor specific */
 +	{ USB_VPI(USB_VENDOR_BROADCOM, 0x21e1, 0) },
 +
 +	/* Apple MacBookPro 7,1 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x8213, 0) },
 +
 +	/* Apple iMac11,1 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x8215, 0) },
 +
 +	/* Apple MacBookPro6,2 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x8218, 0) },
 +
 +	/* Apple MacBookAir3,1, MacBookAir3,2 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x821b, 0) },
 +
 +	/* Apple MacBookAir4,1 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x821f, 0) },
 +
 +	/* MacBookAir6,1 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x828f, 0) },
 +
 +	/* Apple MacBookPro8,2 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x821a, 0) },
 +
 +	/* Apple MacMini5,1 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x8281, 0) },
 +
 +	/* Bluetooth Ultraport Module from IBM */
 +	{ USB_VPI(USB_VENDOR_TDK, 0x030a, 0) },
 +
 +	/* ALPS Modules with non-standard ID */
 +	{ USB_VPI(USB_VENDOR_ALPS, 0x3001, 0) },
 +	{ USB_VPI(USB_VENDOR_ALPS, 0x3002, 0) },
 +
 +	{ USB_VPI(USB_VENDOR_ERICSSON2, 0x1002, 0) },
 +
 +	/* Canyon CN-BTU1 with HID interfaces */
 +	{ USB_VPI(USB_VENDOR_CANYON, 0x0000, 0) },
 +
 +	/* Broadcom BCM20702A0 */
 +	{ USB_VPI(USB_VENDOR_ASUS, 0x17b5, 0) },
 +	{ USB_VPI(USB_VENDOR_ASUS, 0x17cb, 0) },
 +	{ USB_VPI(USB_VENDOR_LITEON, 0x2003, 0) },
 +	{ USB_VPI(USB_VENDOR_FOXCONN, 0xe042, 0) },
 +	{ USB_VPI(USB_VENDOR_DELL, 0x8197, 0) },
  };
  
  /*
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/181728: commit references a PR
Date: Sat,  7 Sep 2013 06:41:30 +0000 (UTC)

 Author: hselasky
 Date: Sat Sep  7 06:41:22 2013
 New Revision: 255346
 URL: http://svnweb.freebsd.org/changeset/base/255346
 
 Log:
   MFC r255090 and r255128:
   Add more USB IDs.
   
   PR:		kern/181728
 
 Modified:
   stable/8/sys/dev/usb/usbdevs
   stable/8/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/dev/   (props changed)
   stable/8/sys/dev/usb/   (props changed)
   stable/8/sys/netgraph/   (props changed)
 
 Modified: stable/8/sys/dev/usb/usbdevs
 ==============================================================================
 --- stable/8/sys/dev/usb/usbdevs	Sat Sep  7 06:38:34 2013	(r255345)
 +++ stable/8/sys/dev/usb/usbdevs	Sat Sep  7 06:41:22 2013	(r255346)
 @@ -514,11 +514,13 @@ vendor USR		0x0baf	U.S. Robotics
  vendor AMBIT		0x0bb2	Ambit Microsystems
  vendor HTC		0x0bb4	HTC
  vendor REALTEK		0x0bda	Realtek
 +vendor ERICSSON2	0x0bdb	Ericsson
  vendor MEI		0x0bed	MEI
  vendor ADDONICS2	0x0bf6	Addonics Technology
  vendor FSC		0x0bf8	Fujitsu Siemens Computers
  vendor AGATE		0x0c08	Agate Technologies
  vendor DMI		0x0c0b	DMI
 +vendor CANYON		0x0c10	Canyon
  vendor ICOM		0x0c26	Icom Inc.
  vendor GNOTOMETRICS	0x0c33	GN Otometrics
  vendor CHICONY2		0x0c45	Chicony
 
 Modified: stable/8/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
 ==============================================================================
 --- stable/8/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c	Sat Sep  7 06:38:34 2013	(r255345)
 +++ stable/8/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c	Sat Sep  7 06:41:22 2013	(r255346)
 @@ -404,6 +404,67 @@ static const STRUCT_USB_HOST_ID ubt_devs
  	  USB_IFACE_CLASS(UICLASS_VENDOR),
  	  USB_IFACE_SUBCLASS(UDSUBCLASS_RF),
  	  USB_IFACE_PROTOCOL(UDPROTO_BLUETOOTH) },
 +
 +	/* Apple-specific (Broadcom) devices */
 +	{ USB_VENDOR(USB_VENDOR_APPLE),
 +	  USB_IFACE_CLASS(UICLASS_VENDOR),
 +	  USB_IFACE_SUBCLASS(UDSUBCLASS_RF),
 +	  USB_IFACE_PROTOCOL(UDPROTO_BLUETOOTH) },
 +
 +	/* Foxconn - Hon Hai */
 +	{ USB_VENDOR(USB_VENDOR_FOXCONN),
 +	  USB_IFACE_CLASS(UICLASS_VENDOR),
 +	  USB_IFACE_SUBCLASS(UDSUBCLASS_RF),
 +	  USB_IFACE_PROTOCOL(UDPROTO_BLUETOOTH) },
 +
 +	/* MediaTek MT76x0E */
 +	{ USB_VPI(USB_VENDOR_MEDIATEK, 0x763f, 0) },
 +
 +	/* Broadcom SoftSailing reporting vendor specific */
 +	{ USB_VPI(USB_VENDOR_BROADCOM, 0x21e1, 0) },
 +
 +	/* Apple MacBookPro 7,1 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x8213, 0) },
 +
 +	/* Apple iMac11,1 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x8215, 0) },
 +
 +	/* Apple MacBookPro6,2 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x8218, 0) },
 +
 +	/* Apple MacBookAir3,1, MacBookAir3,2 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x821b, 0) },
 +
 +	/* Apple MacBookAir4,1 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x821f, 0) },
 +
 +	/* MacBookAir6,1 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x828f, 0) },
 +
 +	/* Apple MacBookPro8,2 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x821a, 0) },
 +
 +	/* Apple MacMini5,1 */
 +	{ USB_VPI(USB_VENDOR_APPLE, 0x8281, 0) },
 +
 +	/* Bluetooth Ultraport Module from IBM */
 +	{ USB_VPI(USB_VENDOR_TDK, 0x030a, 0) },
 +
 +	/* ALPS Modules with non-standard ID */
 +	{ USB_VPI(USB_VENDOR_ALPS, 0x3001, 0) },
 +	{ USB_VPI(USB_VENDOR_ALPS, 0x3002, 0) },
 +
 +	{ USB_VPI(USB_VENDOR_ERICSSON2, 0x1002, 0) },
 +
 +	/* Canyon CN-BTU1 with HID interfaces */
 +	{ USB_VPI(USB_VENDOR_CANYON, 0x0000, 0) },
 +
 +	/* Broadcom BCM20702A0 */
 +	{ USB_VPI(USB_VENDOR_ASUS, 0x17b5, 0) },
 +	{ USB_VPI(USB_VENDOR_ASUS, 0x17cb, 0) },
 +	{ USB_VPI(USB_VENDOR_LITEON, 0x2003, 0) },
 +	{ USB_VPI(USB_VENDOR_FOXCONN, 0xe042, 0) },
 +	{ USB_VPI(USB_VENDOR_DELL, 0x8197, 0) },
  };
  
  /*
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
