[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180809154305.GE20006@lunn.ch>
Date: Thu, 9 Aug 2018 17:43:05 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Richard Genoud <richard.genoud@...il.com>
Cc: Aditya Prayoga <aditya@...ol.io>, linux-gpio@...r.kernel.org,
Gregory CLEMENT <gregory.clement@...tlin.com>,
Gauthier Provost <gauthier@...ol.io>,
Alban Browaeys <alban.browaeys@...il.com>,
Thierry Reding <thierry.reding@...il.com>,
Linus Walleij <linus.walleij@...aro.org>,
linux-pwm@...r.kernel.org, linux-kernel@...r.kernel.org,
Dennis Gilmore <dennis@...il.us>,
Ralph Sennhauser <ralph.sennhauser@...il.com>
Subject: Re: [PATCH RESEND 2/2] gpio: mvebu: Allow to use non-default PWM
counter
> I'm not sure that the logic:
> 1. Default counter assigned to the bank
> 2. Unused counter that is assigned to other bank
> 3. Fallback to default counter
> is the best one.
Hi Richard
It it totally broken, as you point out. That is why i said it needs to
be limited to two PWMs.
> IMHO, I would either:
> - allow only 2 pwm and no more (but that's a pity)
> - allow lots of fans, but once 2 different speeds are set, return
> EINVAL for another different speed (even if it's on another bank)
This second option also breaks the Linux PWM model.
What you should be thinking about is extending the Linux PWM model so
that one PWM can drive more than one pin.
Andrew
Powered by blists - more mailing lists