Re: [PATCH 2/2] leds: ns2: Convert to GPIO descriptors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 7, 2020 at 3:17 PM Pavel Machek <pavel@xxxxxx> wrote:

> Ok. But what is motivation for doing this?

Zip from drivers/gpio/TODO:

Starting with commit 79a9becda894 the GPIO subsystem embarked on a journey
to move away from the global GPIO numberspace and toward a decriptor-based
approach. This means that GPIO consumers, drivers and machine descriptions
ideally have no use or idea of the global GPIO numberspace that has/was
used in the inception of the GPIO subsystem.

The motivation for that in turn is that the GPIO number space has become
unmanageable and is also unpredictable due to factors such as probe ordering
and the introduction of -EPROBE_DEFER. The number space issue is the
same as to why irq is moving away from irq numbers to IRQ descriptors.

> Was this tested?

No, I change a lot of code I can't test, I rely on volunteers to test
it, it seems
Simon volunteered.

Yours,
Linus Walleij



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux