Re: [PATCHv2 2/2] gpio: mvebu: fix gpio bank registration when pwm is used

2017-06-09 Thread Linus Walleij
On Thu, Jun 1, 2017 at 2:18 PM, Richard Genoud wrote: > If more than one gpio bank has the "pwm" property, only one will be > registered successfully, all the others will fail with: > mvebu-gpio: probe of f1018140.gpio failed with error -17 > > That's because in alloc_pwms(), the chip->base (aka

Re: [PATCHv2 2/2] gpio: mvebu: fix gpio bank registration when pwm is used

2017-06-01 Thread Gregory CLEMENT
Hi Richard, On jeu., juin 01 2017, Richard Genoud wrote: > If more than one gpio bank has the "pwm" property, only one will be > registered successfully, all the others will fail with: > mvebu-gpio: probe of f1018140.gpio failed with error -17 > > That's because in alloc_pwms(), the chip->base

[PATCHv2 2/2] gpio: mvebu: fix gpio bank registration when pwm is used

2017-06-01 Thread Richard Genoud
If more than one gpio bank has the "pwm" property, only one will be registered successfully, all the others will fail with: mvebu-gpio: probe of f1018140.gpio failed with error -17 That's because in alloc_pwms(), the chip->base (aka "int pwm"), was not set (thus, ==0) ; and 0 is a meaningful start