svn commit: r262213 - in stable: 10/sys/dev/usb/controller 9/sys/dev/usb/controller

Dimitry Andric dim at FreeBSD.org
Wed Feb 19 08:05:43 UTC 2014


Author: dim
Date: Wed Feb 19 08:05:42 2014
New Revision: 262213
URL: http://svnweb.freebsd.org/changeset/base/262213

Log:
  MFC r261977:
  
  In sys/dev/usb/controller/musb_otg.c, fix a warning about musbotg_odevd
  being unused, by adding it to the part that handles getting descriptors.
  
  Reviewed by:	hselasky

Modified:
  stable/10/sys/dev/usb/controller/musb_otg.c
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/9/sys/dev/usb/controller/musb_otg.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/10/sys/dev/usb/controller/musb_otg.c
==============================================================================
--- stable/10/sys/dev/usb/controller/musb_otg.c	Wed Feb 19 07:59:50 2014	(r262212)
+++ stable/10/sys/dev/usb/controller/musb_otg.c	Wed Feb 19 08:05:42 2014	(r262213)
@@ -3776,6 +3776,13 @@ tr_handle_get_descriptor:
 		len = sizeof(musbotg_devd);
 		ptr = (const void *)&musbotg_devd;
 		goto tr_valid;
+	case UDESC_DEVICE_QUALIFIER:
+		if (value & 0xff) {
+			goto tr_stalled;
+		}
+		len = sizeof(musbotg_odevd);
+		ptr = (const void *)&musbotg_odevd;
+		goto tr_valid;
 	case UDESC_CONFIG:
 		if (value & 0xff) {
 			goto tr_stalled;


More information about the svn-src-stable-10 mailing list