From owner-p4-projects@FreeBSD.ORG Tue Jul 28 10:29:26 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6DEB21065672; Tue, 28 Jul 2009 10:29:26 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CFDE106566C for ; Tue, 28 Jul 2009 10:29:26 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1B11A8FC1B for ; Tue, 28 Jul 2009 10:29:26 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n6SATPvk047308 for ; Tue, 28 Jul 2009 10:29:25 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n6SATPUh047306 for perforce@freebsd.org; Tue, 28 Jul 2009 10:29:25 GMT (envelope-from hselasky@FreeBSD.org) Date: Tue, 28 Jul 2009 10:29:25 GMT Message-Id: <200907281029.n6SATPUh047306@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky To: Perforce Change Reviews Cc: Subject: PERFORCE change 166673 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2009 10:29:27 -0000 http://perforce.freebsd.org/chv.cgi?CH=166673 Change 166673 by hselasky@hselasky_laptop001 on 2009/07/28 10:28:46 USB controller: - allow disabling "root_mount_hold()" by setting a sysctl Affected files ... .. //depot/projects/usb/src/sys/dev/usb/controller/usb_controller.c#22 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/controller/usb_controller.c#22 (text+ko) ==== @@ -79,6 +79,10 @@ "Debug level"); #endif +static int usb_no_boot_wait = 0; +SYSCTL_INT(_hw_usb, OID_AUTO, no_boot_wait, CTLFLAG_RW, &usb_no_boot_wait, 0, + "No device enumerate waiting at boot."); + static uint8_t usb_post_init_called = 0; static devclass_t usb_devclass; @@ -132,8 +136,10 @@ return (ENXIO); } - /* delay vfs_mountroot until the bus is explored */ - bus->bus_roothold = root_mount_hold(device_get_nameunit(dev)); + if (usb_no_boot_wait == 0) { + /* delay vfs_mountroot until the bus is explored */ + bus->bus_roothold = root_mount_hold(device_get_nameunit(dev)); + } if (usb_post_init_called) { mtx_lock(&Giant);