Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2014 20:29:40 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r262457 - in stable: 10/sys/dev/usb/controller 9/sys/dev/usb/controller
Message-ID:  <201402242029.s1OKTeLT099451@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Mon Feb 24 20:29:39 2014
New Revision: 262457
URL: http://svnweb.freebsd.org/changeset/base/262457

Log:
  MFC r262125:
  
  In sys/dev/usb/controller/uss820dci.c, similar to r261977, fix a warning
  about uss820dci_odevd being unused, by adding it to the part that
  handles getting descriptors.
  
  Reported by:	loos
  Reviewed by:	hselasky

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

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

Modified: stable/9/sys/dev/usb/controller/uss820dci.c
==============================================================================
--- stable/9/sys/dev/usb/controller/uss820dci.c	Mon Feb 24 19:32:15 2014	(r262456)
+++ stable/9/sys/dev/usb/controller/uss820dci.c	Mon Feb 24 20:29:39 2014	(r262457)
@@ -2004,6 +2004,13 @@ tr_handle_get_descriptor:
 		len = sizeof(uss820dci_devd);
 		ptr = (const void *)&uss820dci_devd;
 		goto tr_valid;
+	case UDESC_DEVICE_QUALIFIER:
+		if (value & 0xff) {
+			goto tr_stalled;
+		}
+		len = sizeof(uss820dci_odevd);
+		ptr = (const void *)&uss820dci_odevd;
+		goto tr_valid;
 	case UDESC_CONFIG:
 		if (value & 0xff) {
 			goto tr_stalled;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402242029.s1OKTeLT099451>