>From a quick look.
It seems that it is 'pwmchip%d' for a long time.

https://elixir.bootlin.com/linux/v4.0/source/drivers/pwm/sysfs.c#L314

Erez

-----Original Message-----
From: Richard Cochran <richardcoch...@gmail.com>
Sent: Saturday, 16 May 2020 21:15
To: Lokesh Vutla <lokeshvu...@ti.com>
Cc: Sekhar Nori <nsek...@ti.com>; linuxptp-devel@lists.sourceforge.net; 
e-ru...@ti.com
Subject: Re: [Linuxptp-devel] [RFC PATCH v2 2/3] pwm: Add helper apis to 
control pwm

On Sat, May 16, 2020 at 11:53:57PM +0530, Lokesh Vutla wrote:
> +#define PWM_CHAN_EXPORT              "/sys/class/pwm/pwmchip%d/export"

> +#define PWM_CHAN_ENABLE              "/sys/class/pwm/pwmchip%d/pwm%d/enable"
> +#define PWM_CHAN_PERIOD              "/sys/class/pwm/pwmchip%d/pwm%d/period"

Hm, this is strange.  I have been using pwm via sysfs on kernel 4.19, and there 
the paths are like this:

    /sys/class/pwm/pwm%d/enable

What happened to sysfs?  Did the ABI change?

Looks like there will be more work needed here, in order to deal with the (at 
least) two different ABIs.

:(

Richard


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Flinuxptp-devel&amp;data=02%7C01%7Cerez.geva.ext%40siemens.com%7C4f8629e3f807483229c108d7f9cda6d6%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637252533971915054&amp;sdata=%2FqoHl08HgDyaVrfgm3pliszetPtRpocnRberVYs%2B5cI%3D&amp;reserved=0


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to