Thread (18 messages) 18 messages, 4 authors, 2017-12-01

[PATCH 3/4] [v6] pinctrl: qcom: disable GPIO groups with no pins

From: Stephen Boyd <hidden>
Date: 2017-11-17 02:43:32
Also in: linux-arm-msm, linux-gpio

On 11/07, 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.

A new boolean 'sparse' indicates whether the GPIO map is sparse.  If any
GPIO has an 'npins' value of 0, then 'sparse' must be set to True.

Most access to unavailable GPIOs can be blocked via the gpio_chip.request
function.  The one exception is when gpiochip_add_data() scans all of
If patch 1 is applied is this statement still true?
the GPIOs without "requesting" them.  To cover this case,
s/GPIOs/GPIOs for their direction/ perhaps?
msm_gpio_get_direction() separately checks if the GPIO is available.
-- 
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