Received: by 10.213.65.68 with SMTP id h4csp259679imn; Tue, 13 Mar 2018 03:32:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELtSxbgc+xiUg5ZZ6gVQ/NdYIOI3r5a8ZU+p8Vha5BbM53eWAkv6lzuOV0v5KAHNdUuQeW1g X-Received: by 10.99.110.199 with SMTP id j190mr77066pgc.404.1520937172167; Tue, 13 Mar 2018 03:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520937172; cv=none; d=google.com; s=arc-20160816; b=ZpTFW0VxcqDDdb3cbpjCrZlswsyltHF9loa42rakS4pX4yg+je0lqw3zk+r2vKXmDd f4sBHymOdtCY5yMaHgF/iWnRbTJ1iBa4uSmNVyI1R6ohxXWxe85ejPRm/rcyB1zfmHDU c1ZYRCSIG+Y0vWZAJqbJ+cF9zOfD+XtFBAjikejRxByCP+/Jj/sOuVrA0mkI6P2VKqBH EKadpYkkkZRsKV1yqjfOxs58hyKBSUazzPCUCog20wkwOud2QHVZpyYsDY6VGxK9SrFg dubqw5BbOtSgnq0NRjO4qgr/gwum//DwDBynFX5WG+BFhVV9QXta8qqXbwv84hGxky1I 502g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Rmy0TjLKwxm0flBIes2wbs3+EXR1wFqGa+buCtV/Qpg=; b=x30UNA10dKLAySMS8xPqOIuRUBKKok0M6QrVGH0tprg9ikUDUvUF60Nq5KNw8ah1Ns vNbcPeq4AjDBZdgKAliKrKLxUguRqOv/2kZKpSecuGXSpuuWHA92yYwfHzDz82dQu4kj 9DqD8v/8PJdAvwL0hLMXRxmPUzv8HJugic/90Bulk7QLKdTs/w/xLMZjRVWGGAaqUHeJ iZBNJfT0Ifxvvq1sAJAenJSslSRKKmhPySSrxGIRgsj6DS+RY+M8zZue+YIcRt7lakpj 6Ir7zsFEFBIjxRCVe9P+x+5VUQa14RGa+bFohBVk0MYzBl3zqF6Ypln+CW4yZxnCTc4c /NMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t66si18495pgc.606.2018.03.13.03.32.37; Tue, 13 Mar 2018 03:32:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932678AbeCMKas (ORCPT + 99 others); Tue, 13 Mar 2018 06:30:48 -0400 Received: from mail1.skidata.com ([91.230.2.99]:35027 "EHLO mail1.skidata.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932514AbeCMKaq (ORCPT ); Tue, 13 Mar 2018 06:30:46 -0400 X-Greylist: delayed 591 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 Mar 2018 06:30:46 EDT X-IronPort-AV: E=Sophos;i="5.47,464,1515452400"; d="scan'208";a="9185470" Subject: Re: [PATCH v2] usb: core: introduce per-port over-current counters To: Greg KH , Richard Leitner CC: , , , , , , , , , , References: <20180220115033.29496-1-dev@g0hl1n.net> <20180309171921.GA30438@kroah.com> From: Richard Leitner Message-ID: <1485535c-ee0a-c25c-7f1f-5c0e8ede6b45@skidata.com> Date: Tue, 13 Mar 2018 11:20:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180309171921.GA30438@kroah.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.111.252] X-ClientProxiedBy: sdex5srv.skidata.net (192.168.111.83) To sdex5srv.skidata.net (192.168.111.83) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 >> +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