Received: by 10.213.65.68 with SMTP id h4csp221643imn; Tue, 20 Mar 2018 01:35:50 -0700 (PDT) X-Google-Smtp-Source: AG47ELua2X73Y3cxtdloTBRnIm3t2XwRwqDBfCN4pOx9QKQev0CBVAVZlXWI36kLoKEftOywntcq X-Received: by 2002:a17:902:6547:: with SMTP id d7-v6mr12012185pln.253.1521534950708; Tue, 20 Mar 2018 01:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521534950; cv=none; d=google.com; s=arc-20160816; b=ZAuhrdszWGpx2HOc2r/+kw/GjLyjfFLKa7Iy9nDWwH6SKahl19q7149w3a15ten6Kw 5d1N91jW+3CXoRFPiYg60LF29dxmoMo/II8wBCeIULa6FBSl+QhYTRS7LC9uL2FFhkou j6ctMQ//b8ZswT+TawqwOqJRg/ZhQv7b0mOYK3O0NU2eUWmMX2tCXL/3Q4cfROGVLzTS wzj8PX0DaPYMGcniTaaBaAxzDz74HN8j8ShdCVq7oUX5YEpkEWfbDgHmOo8MkgABsGq4 q4zhToBGPewHxToZc2P9S/sVEqOXPxX1ikrZ+Bx3sG/fFzq1NnqiapjwFDCyJjEflsOS cRkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=RYJRq5X4n/Qi1SKOfrUt3I4bU2YKCX0zepGa2rflICI=; b=n0xeuF3qpyJCFUJPKrg1ogJNtQO6xqTzf0DTy/xyQrZzim+Kx4kWUkbiseLVP3FgyT ZCsOtKbhjtihJmjGOmTBvsQjii6wiV1DQtpm4iSVd6qTA6Rxra8e0CZVh5KrxIAKbbVW OFBA7C+3qesEWk+/iv80AZOLTbakkdcEX52BZVtbOSPzD/+cnEC4WIecBKGk8JrqNzAF hkPk0YzQJSJRrElEjszyTWyrMJFYNB5Pww9KwkM0sWALg43oyZ0Lw/STZt1OPq/wpac5 puYG6aVWdRRDacNDv7BHXHFEG7HdwAUYKSI/FLQqc4dlXX2XDNkLCbdZr7KDh/NLlDZF g57w== 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 c8si867909pgt.225.2018.03.20.01.35.33; Tue, 20 Mar 2018 01:35:50 -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 S1751774AbeCTIeJ (ORCPT + 99 others); Tue, 20 Mar 2018 04:34:09 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55002 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751687AbeCTIeH (ORCPT ); Tue, 20 Mar 2018 04:34:07 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id CADE2D1D; Tue, 20 Mar 2018 08:34:06 +0000 (UTC) Date: Tue, 20 Mar 2018 09:34:05 +0100 From: Greg KH To: Richard Leitner Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stern@rowland.harvard.edu, linux@roeck-us.net, mathias.nyman@linux.intel.com, johan@kernel.org, felipe.balbi@linux.intel.com, ekorenevsky@gmail.com, peter.chen@nxp.com, drake@endlessm.com, joe@perches.com, Richard Leitner Subject: Re: [PATCH v3] usb: core: introduce per-port over-current counters Message-ID: <20180320083405.GA23588@kroah.com> References: <20180314095109.18260-1-dev@g0hl1n.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180314095109.18260-1-dev@g0hl1n.net> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 14, 2018 at 10:51:09AM +0100, Richard Leitner wrote: > From: Richard Leitner > > For some userspace applications information on the number of > over-current conditions at specific USB hub ports is relevant. > > In our case we have a series of USB hardware (using the cp210x driver) > which communicates using a proprietary protocol. These devices sometimes > trigger an over-current situation on some hubs. In case of such an > over-current situation the USB devices offer an interface for reducing > the max used power. As these conditions are quite rare and imply > performance reductions of the device we don't want to reduce the max > power always. > > Therefore give user-space applications the possibility to react > adequately by introducing an over_current_counter in the usb port struct > which is exported via sysfs. > > Signed-off-by: Richard Leitner > --- > Documentation/ABI/testing/sysfs-bus-usb | 10 ++++++++++ > drivers/usb/core/hub.c | 4 +++- > drivers/usb/core/hub.h | 1 + > drivers/usb/core/port.c | 10 ++++++++++ > 4 files changed, 24 insertions(+), 1 deletion(-) What changed from the previous versions? Always include that below the --- line so we have an idea of what is going on here. v4? thanks, greg k-h