[PATCH] regulator: convert to use gpio_desc internally

Alexandre Courbot gnurou at gmail.com
Thu Jul 3 22:52:10 PDT 2014


On Fri, Jul 4, 2014 at 7:07 AM, Linus Walleij <linus.walleij at linaro.org> wrote:
> On Tue, Jul 1, 2014 at 2:27 PM, Alexandre Courbot <gnurou at gmail.com> wrote:
>> On Tue, Jul 1, 2014 at 8:10 PM, Mark Brown <broonie at kernel.org> wrote:
>>> On Tue, Jul 01, 2014 at 09:59:01AM +0900, Alexandre Courbot wrote:
>
>>> I don't see security as a big deal - so long as normal, well written
>>> code gets the benefit of the access protection I think we're doing
>>> enough.  If something jumpst through hoops to bypass it then it's buggy
>>> but fundamentally we have to trust the kernel to at least some extent.
>>
>> The security consideration apart, making GPIOs obtained through gpiod
>> shareable seems to be a good way to solve the issue we are having
>> here.
>>
>> Linus, if you agree with the idea I can try to give it a shot sometime
>> this week.
>
> I'm game for this approach. I hope this can get Russell's original
> problem out of the way.

Great, I will give it a shot then. Could you let me know what you
think about my patch series that moves the different GPIO APIs into
their own files, so I know which base I should work on? IMHO if we are
to implement different behaviors for the integer and descriptor
interfaces, it makes all the more sense to have them in different
source files.



More information about the linux-arm-kernel mailing list