Re: [PATCH] usb: core: introduce per-port over-current counters

2018-02-19 Thread Greg KH
On Mon, Feb 19, 2018 at 05:05:34PM +0100, Richard Leitner wrote: > > On 02/19/2018 04:59 PM, Greg KH wrote: > > On Mon, Feb 19, 2018 at 01:01:07PM +0100, Richard Leitner wrote: > >> From: Richard Leitner > >> > >> For some userspace applications information on the number of > >> over-current cond

Re: [PATCH] usb: core: introduce per-port over-current counters

2018-02-19 Thread Richard Leitner
On 02/19/2018 04:59 PM, Greg KH wrote: > On Mon, Feb 19, 2018 at 01:01:07PM +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. Therefore >> introduce a oc_count

Re: [PATCH] usb: core: introduce per-port over-current counters

2018-02-19 Thread Greg KH
On Mon, Feb 19, 2018 at 01:01:07PM +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. Therefore > introduce a oc_counter in the usb port struct which is exported vi

Re: [PATCH] usb: core: introduce per-port over-current counters

2018-02-19 Thread Richard Leitner
Hi, On 02/19/2018 02:53 PM, Felipe Balbi wrote: > > Hi, > > Richard Leitner writes: > >> From: Richard Leitner >> >> For some userspace applications information on the number of >> over-current conditions at specific USB hub ports is relevant. Therefore >> introduce a oc_counter in the usb po

Re: [PATCH] usb: core: introduce per-port over-current counters

2018-02-19 Thread Felipe Balbi
Hi, Richard Leitner writes: > From: Richard Leitner > > For some userspace applications information on the number of > over-current conditions at specific USB hub ports is relevant. Therefore > introduce a oc_counter in the usb port struct which is exported via > sysfs. relevant how? What can

[PATCH] usb: core: introduce per-port over-current counters

2018-02-19 Thread Richard Leitner
From: Richard Leitner For some userspace applications information on the number of over-current conditions at specific USB hub ports is relevant. Therefore introduce a oc_counter in the usb port struct which is exported via sysfs. Signed-off-by: Richard Leitner --- Tested on an i.MX6DL based bo