From 6ad033c2f1427a32d2b4a29108966d1120bf20a7 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Thu, 24 May 2018 18:02:02 +0000 Subject: [PATCH] Clarify that USB bus power consumption is measured in mA at 5V. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation --- share/man/man4/usb_template.4 | 4 ++-- sys/dev/usb/template/usb_template.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/share/man/man4/usb_template.4 b/share/man/man4/usb_template.4 index e1bea49e1938..4766b35f73d7 100644 --- a/share/man/man4/usb_template.4 +++ b/share/man/man4/usb_template.4 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd May 23, 2018 +.Dd May 24, 2018 .Dt USB_TEMPLATE 4 .Os . @@ -101,7 +101,7 @@ tunables: Currently selected template. Set to -1 to make the device disappear from the USB host point of view. .It Va hw.usb.template_power -USB bus power consumption in mA. +USB bus power consumption in mA at 5V. Must be between 0 and 500. Setting to 0 marks the device as self-powered. Defaults to 500mA. diff --git a/sys/dev/usb/template/usb_template.c b/sys/dev/usb/template/usb_template.c index 44170c8103bd..7377c20ac9f5 100644 --- a/sys/dev/usb/template/usb_template.c +++ b/sys/dev/usb/template/usb_template.c @@ -120,7 +120,7 @@ SYSCTL_NODE(_hw_usb, OID_AUTO, templates, CTLFLAG_RW, 0, SYSCTL_PROC(_hw_usb, OID_AUTO, template_power, CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, NULL, 0, sysctl_hw_usb_template_power, - "I", "USB bus power consumption in mA"); + "I", "USB bus power consumption in mA at 5V"); static int usb_template_power = 500; /* 500mA */