Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Dec 2011 00:37:22 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        "svn-src-head@FreeBSD.org" <svn-src-head@freebsd.org>, "svn-src-all@FreeBSD.org" <svn-src-all@freebsd.org>, "src-committers@FreeBSD.org" <src-committers@freebsd.org>
Subject:   Re: svn commit: r228711 - head/sys/dev/usb/controller
Message-ID:  <201112200037.22286.hselasky@c2i.net>
In-Reply-To: <4EEF7569.4010401@FreeBSD.org>
References:  <201112191535.pBJFZ6hY063597@svn.freebsd.org> <4EEF7569.4010401@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 19 December 2011 18:33:29 Andriy Gapon wrote:
> on 19/12/2011 17:35 Hans Petter Selasky said the following:
> > Author: hselasky
> > Date: Mon Dec 19 15:35:05 2011
> > New Revision: 228711
> > URL: http://svn.freebsd.org/changeset/base/228711
> > 
> > Log:
> >   Add code to wait for USB shutdown to be executed at system shutdown.
> >   Add sysctl which can be used to skip this waiting.
> >   
> >   MFC after:	3 days
> 
> Thank you!
> One comment below.
> 
> > Modified:
> >   head/sys/dev/usb/controller/usb_controller.c
> > 
> > Modified: head/sys/dev/usb/controller/usb_controller.c
> > =========================================================================
> > ===== --- head/sys/dev/usb/controller/usb_controller.c	Mon Dec 19
> > 14:55:14 2011	(r228710) +++
> > head/sys/dev/usb/controller/usb_controller.c	Mon Dec 19 15:35:05
> > 2011	(r228711) @@ -87,7 +87,12 @@ SYSCTL_INT(_hw_usb_ctrl, OID_AUTO,
> > debug
> > 
> >  static int usb_no_boot_wait = 0;
> >  TUNABLE_INT("hw.usb.no_boot_wait", &usb_no_boot_wait);
> >  SYSCTL_INT(_hw_usb, OID_AUTO, no_boot_wait, CTLFLAG_RDTUN,
> >  &usb_no_boot_wait, 0,
> > 
> > -    "No device enumerate waiting at boot.");
> > +    "No USB device enumerate waiting at boot.");
> > +
> > +static int usb_no_shutdown_wait = 0;
> > +TUNABLE_INT("hw.usb.no_shutdown_wait", &usb_no_shutdown_wait);
> > +SYSCTL_INT(_hw_usb, OID_AUTO, no_shutdown_wait, CTLFLAG_RDTUN,
> > &usb_no_shutdown_wait, 0,
> 
> Does this knob (as well as the one before it) have to be CTLFLAG_RDTUN?
> I think that it should pretty safe to make it CTLFLAG_RW | CTLFLAG_TUN.

No, it does not need to be read only.

--HPS



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