[kernel] r17016 - in dists/squeeze/linux-2.6/debian: . patches/bugfix/all patches/series

Ben Hutchings benh at alioth.debian.org
Mon Mar 7 01:25:14 UTC 2011


Author: benh
Date: Mon Mar  7 01:25:12 2011
New Revision: 17016

Log:
usbfs: Show correct speed for SuperSpeed USB devices (Closes: #613531)

Added:
   dists/squeeze/linux-2.6/debian/patches/bugfix/all/usb_superspeed_devices_spd.patch
Modified:
   dists/squeeze/linux-2.6/debian/changelog
   dists/squeeze/linux-2.6/debian/patches/series/31

Modified: dists/squeeze/linux-2.6/debian/changelog
==============================================================================
--- dists/squeeze/linux-2.6/debian/changelog	Mon Mar  7 01:13:17 2011	(r17015)
+++ dists/squeeze/linux-2.6/debian/changelog	Mon Mar  7 01:25:12 2011	(r17016)
@@ -44,6 +44,7 @@
   * ipv6: Silence privacy extensions initialization (Closes: #590653)
   * [x86] Enable VT6656, loading firmware from a separate file (requires
     firmware-linux-nonfree 0.28+squeeze1) (Closes: #568454)
+  * usbfs: Show correct speed for SuperSpeed USB devices (Closes: #613531)
 
   [ dann frazier ]
   * xfs: Fix information leak using stale NFS handle (CVE-2010-2943)

Added: dists/squeeze/linux-2.6/debian/patches/bugfix/all/usb_superspeed_devices_spd.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/squeeze/linux-2.6/debian/patches/bugfix/all/usb_superspeed_devices_spd.patch	Mon Mar  7 01:25:12 2011	(r17016)
@@ -0,0 +1,151 @@
+From: Alan Stern <stern at rowland.harvard.edu>
+Date: Mon, 13 Sep 2010 14:43:25 +0000 (-0400)
+Subject: USB: teach "devices" file about Wireless and SuperSpeed USB
+
+commit 834e2312e7a384877a876b0d34dffc3046c96bcb upstream.
+
+USB: teach "devices" file about Wireless and SuperSpeed USB
+
+The /sys/kernel/debug/usb/devices file doesn't know about Wireless or
+SuperSpeed USB.  This patch (as1416b) teaches it, and updates the
+Documentation/usb/proc_sub_info.txt file accordingly.
+
+Signed-off-by: Alan Stern <stern at rowland.harvard.edu>
+CC: David Vrabel <david.vrabel at csr.com>
+CC: Sarah Sharp <sarah.a.sharp at linux.intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
+[Julien Blache: The original commit also added the correct speed for
+ USB_SPEED_WIRELESS, I removed it as it's not supported in 2.6.32.]
+---
+
+diff --git a/Documentation/usb/proc_usb_info.txt b/Documentation/usb/proc_usb_info.txt
+index fafcd47..afe596d 100644
+--- a/Documentation/usb/proc_usb_info.txt
++++ b/Documentation/usb/proc_usb_info.txt
+@@ -1,12 +1,17 @@
+ /proc/bus/usb filesystem output
+ ===============================
+-(version 2003.05.30)
++(version 2010.09.13)
+ 
+ 
+ The usbfs filesystem for USB devices is traditionally mounted at
+ /proc/bus/usb.  It provides the /proc/bus/usb/devices file, as well as
+ the /proc/bus/usb/BBB/DDD files.
+ 
++In many modern systems the usbfs filsystem isn't used at all.  Instead
++USB device nodes are created under /dev/usb/ or someplace similar.  The
++"devices" file is available in debugfs, typically as
++/sys/kernel/debug/usb/devices.
++
+ 
+ **NOTE**: If /proc/bus/usb appears empty, and a host controller
+ 	  driver has been linked, then you need to mount the
+@@ -106,8 +111,8 @@ Legend:
+ 
+ Topology info:
+ 
+-T:  Bus=dd Lev=dd Prnt=dd Port=dd Cnt=dd Dev#=ddd Spd=ddd MxCh=dd
+-|   |      |      |       |       |      |        |       |__MaxChildren
++T:  Bus=dd Lev=dd Prnt=dd Port=dd Cnt=dd Dev#=ddd Spd=dddd MxCh=dd
++|   |      |      |       |       |      |        |        |__MaxChildren
+ |   |      |      |       |       |      |        |__Device Speed in Mbps
+ |   |      |      |       |       |      |__DeviceNumber
+ |   |      |      |       |       |__Count of devices at this level
+@@ -120,8 +125,13 @@ T:  Bus=dd Lev=dd Prnt=dd Port=dd Cnt=dd Dev#=ddd Spd=ddd MxCh=dd
+     Speed may be:
+     	1.5	Mbit/s for low speed USB
+ 	12	Mbit/s for full speed USB
+-	480	Mbit/s for high speed USB (added for USB 2.0)
++	480	Mbit/s for high speed USB (added for USB 2.0);
++		  also used for Wireless USB, which has no fixed speed
++	5000	Mbit/s for SuperSpeed USB (added for USB 3.0)
+ 
++    For reasons lost in the mists of time, the Port number is always
++    too low by 1.  For example, a device plugged into port 4 will
++    show up with "Port=03".
+ 
+ Bandwidth info:
+ B:  Alloc=ddd/ddd us (xx%), #Int=ddd, #Iso=ddd
+@@ -291,7 +301,7 @@ Here's an example, from a system which has a UHCI root hub,
+ an external hub connected to the root hub, and a mouse and
+ a serial converter connected to the external hub.
+ 
+-T:  Bus=00 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
++T:  Bus=00 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12   MxCh= 2
+ B:  Alloc= 28/900 us ( 3%), #Int=  2, #Iso=  0
+ D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
+ P:  Vendor=0000 ProdID=0000 Rev= 0.00
+@@ -301,21 +311,21 @@ C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
+ I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
+ E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
+ 
+-T:  Bus=00 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 4
++T:  Bus=00 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12   MxCh= 4
+ D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
+ P:  Vendor=0451 ProdID=1446 Rev= 1.00
+ C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
+ I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
+ E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=255ms
+ 
+-T:  Bus=00 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=1.5 MxCh= 0
++T:  Bus=00 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=1.5  MxCh= 0
+ D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
+ P:  Vendor=04b4 ProdID=0001 Rev= 0.00
+ C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
+ I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=mouse
+ E:  Ad=81(I) Atr=03(Int.) MxPS=   3 Ivl= 10ms
+ 
+-T:  Bus=00 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#=  4 Spd=12  MxCh= 0
++T:  Bus=00 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#=  4 Spd=12   MxCh= 0
+ D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
+ P:  Vendor=0565 ProdID=0001 Rev= 1.08
+ S:  Manufacturer=Peracom Networks, Inc.
+@@ -330,12 +340,12 @@ E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=  8ms
+ Selecting only the "T:" and "I:" lines from this (for example, by using
+ "procusb ti"), we have:
+ 
+-T:  Bus=00 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
+-T:  Bus=00 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 4
++T:  Bus=00 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12   MxCh= 2
++T:  Bus=00 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12   MxCh= 4
+ I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
+-T:  Bus=00 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=1.5 MxCh= 0
++T:  Bus=00 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=1.5  MxCh= 0
+ I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=mouse
+-T:  Bus=00 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#=  4 Spd=12  MxCh= 0
++T:  Bus=00 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#=  4 Spd=12   MxCh= 0
+ I:  If#= 0 Alt= 0 #EPs= 3 Cls=00(>ifc ) Sub=00 Prot=00 Driver=serial
+ 
+ 
+diff --git a/drivers/usb/core/devices.c b/drivers/usb/core/devices.c
+index 3449742..ddb4dc9 100644
+--- a/drivers/usb/core/devices.c
++++ b/drivers/usb/core/devices.c
+@@ -65,8 +65,8 @@
+ #define ALLOW_SERIAL_NUMBER
+ 
+ static const char *format_topo =
+-/* T:  Bus=dd Lev=dd Prnt=dd Port=dd Cnt=dd Dev#=ddd Spd=ddd MxCh=dd */
+-"\nT:  Bus=%2.2d Lev=%2.2d Prnt=%2.2d Port=%2.2d Cnt=%2.2d Dev#=%3d Spd=%3s MxCh=%2d\n";
++/* T:  Bus=dd Lev=dd Prnt=dd Port=dd Cnt=dd Dev#=ddd Spd=dddd MxCh=dd */
++"\nT:  Bus=%2.2d Lev=%2.2d Prnt=%2.2d Port=%2.2d Cnt=%2.2d Dev#=%3d Spd=%-4s MxCh=%2d\n";
+ 
+ static const char *format_string_manufacturer =
+ /* S:  Manufacturer=xxxx */
+@@ -509,11 +509,13 @@
+ 		speed = "1.5"; break;
+ 	case USB_SPEED_UNKNOWN:		/* usb 1.1 root hub code */
+ 	case USB_SPEED_FULL:
+-		speed = "12 "; break;
++		speed = "12"; break;
+ 	case USB_SPEED_HIGH:
+ 		speed = "480"; break;
++	case USB_SPEED_SUPER:
++		speed = "5000"; break;
+ 	default:
+-		speed = "?? ";
++		speed = "??";
+ 	}
+ 	data_end = pages_start + sprintf(pages_start, format_topo,
+ 			bus->busnum, level, parent_devnum,

Modified: dists/squeeze/linux-2.6/debian/patches/series/31
==============================================================================
--- dists/squeeze/linux-2.6/debian/patches/series/31	Mon Mar  7 01:13:17 2011	(r17015)
+++ dists/squeeze/linux-2.6/debian/patches/series/31	Mon Mar  7 01:25:12 2011	(r17016)
@@ -55,3 +55,4 @@
 + bugfix/all/drm-i915-fix-memory-corruption-with-GM965-and-4GB-RAM.patch
 + bugfix/all/ipv6-Silence-privacy-extensions-initialization.patch
 + features/all/vt6656-Use-request_firmware-to-load-firmware.patch
++ bugfix/all/usb_superspeed_devices_spd.patch



More information about the Kernel-svn-changes mailing list