Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Mar 2016 08:47:27 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r296342 - head/sys/dev/usb/quirk
Message-ID:  <201603030847.u238lRUY063818@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Mar  3 08:47:27 2016
New Revision: 296342
URL: https://svnweb.freebsd.org/changeset/base/296342

Log:
  Allow for overlapping quirk device ranges. Prior to this patch only
  the first device entry matching the USB vendor, product and revision
  would be searched for quirks. After this patch all device entries will
  be searched for quirks.
  
  MFC after:	1 week

Modified:
  head/sys/dev/usb/quirk/usb_quirk.c

Modified: head/sys/dev/usb/quirk/usb_quirk.c
==============================================================================
--- head/sys/dev/usb/quirk/usb_quirk.c	Thu Mar  3 07:30:55 2016	(r296341)
+++ head/sys/dev/usb/quirk/usb_quirk.c	Thu Mar  3 08:47:27 2016	(r296342)
@@ -682,8 +682,6 @@ usb_test_quirk_by_info(const struct usbd
 				return (1);
 			}
 		}
-		/* no quirk found */
-		break;
 	}
 	mtx_unlock(&usb_quirk_mtx);
 done:



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