lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1485535c-ee0a-c25c-7f1f-5c0e8ede6b45@skidata.com>
Date:   Tue, 13 Mar 2018 11:20:53 +0100
From:   Richard Leitner <richard.leitner@...data.com>
To:     Greg KH <gregkh@...uxfoundation.org>,
        Richard Leitner <dev@...l1n.net>
CC:     <linux-usb@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        <stern@...land.harvard.edu>, <linux@...ck-us.net>,
        <mathias.nyman@...ux.intel.com>, <johan@...nel.org>,
        <felipe.balbi@...ux.intel.com>, <ekorenevsky@...il.com>,
        <peter.chen@....com>, <drake@...lessm.com>, <joe@...ches.com>
Subject: Re: [PATCH v2] usb: core: introduce per-port over-current counters

Hi Greg,

On 03/09/2018 06:19 PM, Greg KH wrote:
>> diff --git a/Documentation/ABI/testing/sysfs-bus-usb b/Documentation/ABI/testing/sysfs-bus-usb
>> index 0bd731cbb50c..27020293c85b 100644
>> --- a/Documentation/ABI/testing/sysfs-bus-usb
>> +++ b/Documentation/ABI/testing/sysfs-bus-usb
>> @@ -189,6 +189,15 @@ Description:
>>  		The file will read "hotplug", "wired" and "not used" if the
>>  		information is available, and "unknown" otherwise.
>>  
>> +What:		/sys/bus/usb/devices/.../(hub interface)/portX/over_current_count
>> +Date:		February 2018
>> +Contact:	Richard Leitner <richard.leitner@...data.com>
>> +Description:
>> +		Most hubs are able to detect over-current situations on their
>> +		ports and report them to the kernel. This attribute is to expose
>> +		the number of over-current situation occurred on a specific port
>> +		to user space. This file will contain an unsigned int.
> "unsigned int" is very vague :)
> 
> How about "this is a 32bit value"?
> 
> And what happens when this wraps?  Is that allowed?

Thank you for your feedback. I'll improve the description for v3!

> 
> thanks,
> 
> greg k-h

regards;Richard.L

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ