diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2018-05-28 18:34:16 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2018-05-28 18:34:16 +0000 |
commit | c140287a5bfa3726a338a97fa39ef4a7272e01db (patch) | |
tree | a8c1a65322d4b870daf37e291cad4e72f5f5939f /sys/dev | |
parent | 0eff530775f94be45fba133eb58db0693751df2e (diff) | |
download | src-c140287a5bfa3726a338a97fa39ef4a7272e01db.tar.gz src-c140287a5bfa3726a338a97fa39ef4a7272e01db.zip |
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
Notes
Notes:
svn path=/head/; revision=334292
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/usb_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_device.c b/sys/dev/usb/usb_device.c index bdaea26e314c..3f6dcda67543 100644 --- a/sys/dev/usb/usb_device.c +++ b/sys/dev/usb/usb_device.c @@ -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, |