Thread (26 messages) flat view 26 messages, 4 authors, 2018-01-09

[PATCH 2/3] [v8] pinctrl: qcom: disable GPIO groups with no pins

From: Stephen Boyd <hidden>
Date: 2017-12-13 22:37:38
Also in: linux-arm-msm, linux-gpio

On 12/13, Timur Tabi wrote:
pinctrl-msm only accepts an array of GPIOs from 0 to n-1, and it expects
each group to support have only one pin (npins == 1).

We can support "sparse" GPIO maps if we allow for some groups to have zero
pins (npins == 0).  These pins are "hidden" from the rest of the driver
and gpiolib.

Access to unavailable GPIOs is blocked via a request callback.  If the
requested GPIO is unavailable, -EACCES is returned, which prevents
further access to that GPIO.

Signed-off-by: Timur Tabi <redacted>
---
Reviewed-by: Stephen Boyd <redacted>

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help