Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2018 18:34:16 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334292 - head/sys/dev/usb
Message-ID:  <201805281834.w4SIYG77060292@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Mon May 28 18:34:16 2018
New Revision: 334292
URL: https://svnweb.freebsd.org/changeset/base/334292

Log:
  Change the default USB template from the current 0 to -1.  The reason
  is that current one (mass storage device) doesn't work as it is - it
  needs to be set to 0 after the LUN is configured, which is what the
  cfumass rc script does.  In other words: the current default does not
  work, and to actually make it work it had to be set to -1 in
  /boot/loader.conf.
  
  Reviewed by:	hselasky@
  MFC after:	2 weeks
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/usb/usb_device.c

Modified: head/sys/dev/usb/usb_device.c
==============================================================================
--- head/sys/dev/usb/usb_device.c	Mon May 28 18:29:15 2018	(r334291)
+++ head/sys/dev/usb/usb_device.c	Mon May 28 18:34:16 2018	(r334292)
@@ -118,7 +118,7 @@ static void	usb_cdev_free(struct usb_device *);
 #ifdef	USB_TEMPLATE
 int	usb_template = USB_TEMPLATE;
 #else
-int	usb_template;
+int	usb_template = -1;
 #endif
 
 SYSCTL_PROC(_hw_usb, OID_AUTO, template,



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