Re: [PATCH] pwm: lp3943: Dynamically allocate pwm chip base

2020-11-11 Thread Thierry Reding
On Fri, Oct 30, 2020 at 07:11:35PM +0530, Lokesh Vutla wrote: > When there are other pwm controllers enabled along with pwm-lp3943, > pwm-lp3942 is failing to probe with -EEXIST error. This is because > other pwm controller is probed first and assigned pwmchip 0 and > pwm-lp3943 is requesting for 0

Re: [PATCH] pwm: lp3943: Dynamically allocate pwm chip base

2020-11-01 Thread Lokesh Vutla
Hi Uwe, On 31/10/20 1:41 am, Uwe Kleine-König wrote: > On Fri, Oct 30, 2020 at 07:11:35PM +0530, Lokesh Vutla wrote: >> When there are other pwm controllers enabled along with pwm-lp3943, >> pwm-lp3942 is failing to probe with -EEXIST error. This is because >> other pwm controller is probed first

Re: [PATCH] pwm: lp3943: Dynamically allocate pwm chip base

2020-10-30 Thread Uwe Kleine-König
On Fri, Oct 30, 2020 at 07:11:35PM +0530, Lokesh Vutla wrote: > When there are other pwm controllers enabled along with pwm-lp3943, > pwm-lp3942 is failing to probe with -EEXIST error. This is because > other pwm controller is probed first and assigned pwmchip 0 and > pwm-lp3943 is requesting for 0

[PATCH] pwm: lp3943: Dynamically allocate pwm chip base

2020-10-30 Thread Lokesh Vutla
When there are other pwm controllers enabled along with pwm-lp3943, pwm-lp3942 is failing to probe with -EEXIST error. This is because other pwm controller is probed first and assigned pwmchip 0 and pwm-lp3943 is requesting for 0 again. In order to avoid this, assign the chip base with -1, so that