Re: [PATCH] pwm: Unexport children before chip removal

2016-09-05 Thread Greg KH
On Mon, Sep 05, 2016 at 04:46:41PM +0200, Thierry Reding wrote: > On Tue, Aug 09, 2016 at 02:57:46PM -0700, David Hsu wrote: > > Exported pwm channels aren't removed before the pwmchip and are > > leaked. This results in invalid sysfs files. This fix removes > > all exported pwm channels before

Re: [PATCH] pwm: Unexport children before chip removal

2016-09-05 Thread Greg KH
On Mon, Sep 05, 2016 at 04:46:41PM +0200, Thierry Reding wrote: > On Tue, Aug 09, 2016 at 02:57:46PM -0700, David Hsu wrote: > > Exported pwm channels aren't removed before the pwmchip and are > > leaked. This results in invalid sysfs files. This fix removes > > all exported pwm channels before

Re: [PATCH] pwm: Unexport children before chip removal

2016-09-05 Thread Thierry Reding
On Tue, Aug 09, 2016 at 02:57:46PM -0700, David Hsu wrote: > Exported pwm channels aren't removed before the pwmchip and are > leaked. This results in invalid sysfs files. This fix removes > all exported pwm channels before chip removal. > > Signed-off-by: David Hsu > --- >

Re: [PATCH] pwm: Unexport children before chip removal

2016-09-05 Thread Thierry Reding
On Tue, Aug 09, 2016 at 02:57:46PM -0700, David Hsu wrote: > Exported pwm channels aren't removed before the pwmchip and are > leaked. This results in invalid sysfs files. This fix removes > all exported pwm channels before chip removal. > > Signed-off-by: David Hsu > --- > drivers/pwm/core.c

Re: [PATCH] pwm: Unexport children before chip removal

2016-08-10 Thread David Hsu
On Wed, Aug 10, 2016 at 1:49 AM, Greg KH wrote: > On Tue, Aug 09, 2016 at 02:57:46PM -0700, David Hsu wrote: >> Exported pwm channels aren't removed before the pwmchip and are >> leaked. This results in invalid sysfs files. This fix removes >> all exported pwm channels

Re: [PATCH] pwm: Unexport children before chip removal

2016-08-10 Thread David Hsu
On Wed, Aug 10, 2016 at 1:49 AM, Greg KH wrote: > On Tue, Aug 09, 2016 at 02:57:46PM -0700, David Hsu wrote: >> Exported pwm channels aren't removed before the pwmchip and are >> leaked. This results in invalid sysfs files. This fix removes >> all exported pwm channels before chip removal. >> >>

[PATCH] pwm: Unexport children before chip removal

2016-08-09 Thread David Hsu
Exported pwm channels aren't removed before the pwmchip and are leaked. This results in invalid sysfs files. This fix removes all exported pwm channels before chip removal. Signed-off-by: David Hsu --- drivers/pwm/core.c | 2 ++ drivers/pwm/sysfs.c | 18 ++

[PATCH] pwm: Unexport children before chip removal

2016-08-09 Thread David Hsu
Exported pwm channels aren't removed before the pwmchip and are leaked. This results in invalid sysfs files. This fix removes all exported pwm channels before chip removal. Signed-off-by: David Hsu --- drivers/pwm/core.c | 2 ++ drivers/pwm/sysfs.c | 18 ++ include/linux/pwm.h