Re: [PATCH v4] pwm: add sysfs interface

2013-06-19 Thread Thierry Reding
On Wed, Jun 19, 2013 at 11:09:13AM -0500, H Hartley Sweeten wrote: > On Tuesday, June 11, 2013 12:48 PM, Thierry Reding wrote: > > > > I'm tempted to take your v5 patch and make a note to clean that up > > separately at some point (along with similar changes for the DEBUG_FS > > support). > >

RE: [PATCH v4] pwm: add sysfs interface

2013-06-19 Thread H Hartley Sweeten
On Tuesday, June 11, 2013 12:48 PM, Thierry Reding wrote: > > I'm tempted to take your v5 patch and make a note to clean that up > separately at some point (along with similar changes for the DEBUG_FS > support). Thierry, So you want a v6 of this patch or are you ok with v5? Thanks, Hartley --

RE: [PATCH v4] pwm: add sysfs interface

2013-06-19 Thread H Hartley Sweeten
On Tuesday, June 11, 2013 12:48 PM, Thierry Reding wrote: I'm tempted to take your v5 patch and make a note to clean that up separately at some point (along with similar changes for the DEBUG_FS support). Thierry, So you want a v6 of this patch or are you ok with v5? Thanks, Hartley -- To

Re: [PATCH v4] pwm: add sysfs interface

2013-06-19 Thread Thierry Reding
On Wed, Jun 19, 2013 at 11:09:13AM -0500, H Hartley Sweeten wrote: On Tuesday, June 11, 2013 12:48 PM, Thierry Reding wrote: I'm tempted to take your v5 patch and make a note to clean that up separately at some point (along with similar changes for the DEBUG_FS support). Thierry, So

Re: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread Thierry Reding
On Tue, Jun 11, 2013 at 01:45:37PM -0500, H Hartley Sweeten wrote: > On Tuesday, June 11, 2013 11:35 AM, Thierry Reding wrote: > > On Tue, Jun 11, 2013 at 11:47:23AM -0500, H Hartley Sweeten wrote: > >> On Tuesday, June 11, 2013 9:09 AM, H Hartley Sweeten wrote: > >>> On Tuesday, June 11, 2013

RE: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread H Hartley Sweeten
On Tuesday, June 11, 2013 11:35 AM, Thierry Reding wrote: > On Tue, Jun 11, 2013 at 11:47:23AM -0500, H Hartley Sweeten wrote: >> On Tuesday, June 11, 2013 9:09 AM, H Hartley Sweeten wrote: >>> On Tuesday, June 11, 2013 4:29 AM, Ryan Mallon wrote: On 11/06/13 20:14, Thierry Reding wrote:

Re: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread Thierry Reding
On Tue, Jun 11, 2013 at 11:47:23AM -0500, H Hartley Sweeten wrote: > On Tuesday, June 11, 2013 9:09 AM, H Hartley Sweeten wrote: > > On Tuesday, June 11, 2013 4:29 AM, Ryan Mallon wrote: > >> On 11/06/13 20:14, Thierry Reding wrote: > >>> On Mon, Jun 10, 2013 at 04:12:07PM -0700, H Hartley Sweeten

Re: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread Thierry Reding
On Tue, Jun 11, 2013 at 09:28:53PM +1000, Ryan Mallon wrote: > On 11/06/13 20:14, Thierry Reding wrote: > > > On Mon, Jun 10, 2013 at 04:12:07PM -0700, H Hartley Sweeten wrote: [...] > >> +config PWM_SYSFS > >> + bool "/sys/class/pwm/... (sysfs interface)" > >> + depends on SYSFS > >> + help >

RE: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread H Hartley Sweeten
On Tuesday, June 11, 2013 9:09 AM, H Hartley Sweeten wrote: > On Tuesday, June 11, 2013 4:29 AM, Ryan Mallon wrote: >> On 11/06/13 20:14, Thierry Reding wrote: >>> On Mon, Jun 10, 2013 at 04:12:07PM -0700, H Hartley Sweeten wrote: +config PWM_SYSFS + bool "/sys/class/pwm/... (sysfs

RE: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread H Hartley Sweeten
On Tuesday, June 11, 2013 4:29 AM, Ryan Mallon wrote: > On 11/06/13 20:14, Thierry Reding wrote: >> On Mon, Jun 10, 2013 at 04:12:07PM -0700, H Hartley Sweeten wrote: >> [...] >>> +What: /sys/class/pwm/pwmchipN/pwmX/duty >>> +Date: May 2013 >>> +KernelVersion: 3.11

Re: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread Ryan Mallon
On 11/06/13 20:14, Thierry Reding wrote: > On Mon, Jun 10, 2013 at 04:12:07PM -0700, H Hartley Sweeten wrote: > [...] >> +What: /sys/class/pwm/pwmchipN/pwmX/duty >> +Date: May 2013 >> +KernelVersion: 3.11 >> +Contact:H Hartley Sweeten >> +Description: >> +

Re: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread Thierry Reding
On Mon, Jun 10, 2013 at 04:12:07PM -0700, H Hartley Sweeten wrote: [...] > +What:/sys/class/pwm/pwmchipN/pwmX/duty > +Date:May 2013 > +KernelVersion: 3.11 > +Contact: H Hartley Sweeten > +Description: > + Sets the PWM duty cycle in

Re: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread Thierry Reding
On Mon, Jun 10, 2013 at 04:12:07PM -0700, H Hartley Sweeten wrote: [...] +What:/sys/class/pwm/pwmchipN/pwmX/duty +Date:May 2013 +KernelVersion: 3.11 +Contact: H Hartley Sweeten hswee...@visionengravers.com +Description: + Sets the PWM

Re: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread Ryan Mallon
On 11/06/13 20:14, Thierry Reding wrote: On Mon, Jun 10, 2013 at 04:12:07PM -0700, H Hartley Sweeten wrote: [...] +What: /sys/class/pwm/pwmchipN/pwmX/duty +Date: May 2013 +KernelVersion: 3.11 +Contact:H Hartley Sweeten hswee...@visionengravers.com

RE: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread H Hartley Sweeten
On Tuesday, June 11, 2013 4:29 AM, Ryan Mallon wrote: On 11/06/13 20:14, Thierry Reding wrote: On Mon, Jun 10, 2013 at 04:12:07PM -0700, H Hartley Sweeten wrote: [...] +What: /sys/class/pwm/pwmchipN/pwmX/duty +Date: May 2013 +KernelVersion: 3.11 +Contact: H

RE: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread H Hartley Sweeten
On Tuesday, June 11, 2013 9:09 AM, H Hartley Sweeten wrote: On Tuesday, June 11, 2013 4:29 AM, Ryan Mallon wrote: On 11/06/13 20:14, Thierry Reding wrote: On Mon, Jun 10, 2013 at 04:12:07PM -0700, H Hartley Sweeten wrote: +config PWM_SYSFS + bool /sys/class/pwm/... (sysfs interface) +

Re: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread Thierry Reding
On Tue, Jun 11, 2013 at 09:28:53PM +1000, Ryan Mallon wrote: On 11/06/13 20:14, Thierry Reding wrote: On Mon, Jun 10, 2013 at 04:12:07PM -0700, H Hartley Sweeten wrote: [...] +config PWM_SYSFS + bool /sys/class/pwm/... (sysfs interface) + depends on SYSFS + help +Say Y here

Re: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread Thierry Reding
On Tue, Jun 11, 2013 at 11:47:23AM -0500, H Hartley Sweeten wrote: On Tuesday, June 11, 2013 9:09 AM, H Hartley Sweeten wrote: On Tuesday, June 11, 2013 4:29 AM, Ryan Mallon wrote: On 11/06/13 20:14, Thierry Reding wrote: On Mon, Jun 10, 2013 at 04:12:07PM -0700, H Hartley Sweeten wrote:

RE: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread H Hartley Sweeten
On Tuesday, June 11, 2013 11:35 AM, Thierry Reding wrote: On Tue, Jun 11, 2013 at 11:47:23AM -0500, H Hartley Sweeten wrote: On Tuesday, June 11, 2013 9:09 AM, H Hartley Sweeten wrote: On Tuesday, June 11, 2013 4:29 AM, Ryan Mallon wrote: On 11/06/13 20:14, Thierry Reding wrote: On Mon, Jun

Re: [PATCH v4] pwm: add sysfs interface

2013-06-11 Thread Thierry Reding
On Tue, Jun 11, 2013 at 01:45:37PM -0500, H Hartley Sweeten wrote: On Tuesday, June 11, 2013 11:35 AM, Thierry Reding wrote: On Tue, Jun 11, 2013 at 11:47:23AM -0500, H Hartley Sweeten wrote: On Tuesday, June 11, 2013 9:09 AM, H Hartley Sweeten wrote: On Tuesday, June 11, 2013 4:29 AM, Ryan

[PATCH v4] pwm: add sysfs interface

2013-06-10 Thread H Hartley Sweeten
Add a simple sysfs interface to the generic PWM framework. /sys/class/pwm/ `-- pwmchipN/ for each PWM chip |-- export (w/o) ask the kernel to export a PWM channel |-- npwm (r/o) number of PWM channels in this PWM chip |-- pwmX/ for each

[PATCH v4] pwm: add sysfs interface

2013-06-10 Thread H Hartley Sweeten
Add a simple sysfs interface to the generic PWM framework. /sys/class/pwm/ `-- pwmchipN/ for each PWM chip |-- export (w/o) ask the kernel to export a PWM channel |-- npwm (r/o) number of PWM channels in this PWM chip |-- pwmX/ for each