linux-next regression caused by "gpiolib: request the gpio before querying its direction"
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Wed Aug 30 07:32:55 PDT 2017
Hello,
On Wed, 30 Aug 2017 09:22:55 -0500, Timur Tabi wrote:
> No, that's it. The question is, what exactly should the 'request'
> function do? Should it be modifying the hardware to satisfy the
> request? When I wrote my patch, I assumed that it wouldn't. I thought
> that request simply answered the question, "can I touch this GPIO"?
No, it also muxes the pin in GPIO, and you can see the "reference"
implementation pinctrl-single also does it.
Let's see what Linus W. has to say about the semantic of the "request"
operation.
But if we change the semantic of "request" to no longer mux the hardware
as GPIO, then you will also have regressions, because there are plenty
of GPIOs that are requested, but not explicitly muxed as GPIOs in the
DT, precisely because today requesting a GPIO is sufficient to have it
re-muxed as GPIO at the pinctrl level.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
More information about the linux-arm-kernel
mailing list