Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 54837652 authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar Committed by Gerrit - the friendly Code Review server
Browse files

pinctrl: qcom: synchronize pin descriptor and group array indices



msm pinctrl driver maintains every pin in msm pin groups array,
and pinctrl subsystem maintains those pins as descriptors in rb tree.
Pinctrl subsystem uses rb tree for gpio request and for same pin
msm gpio callbacks uses pin group's array index to access the pin
hardware registers.

If pin doesn't support gpio functionality or pin is not present, then
pin descriptor in rb tree and its group array index would not be one
to one mapped. Which leads user requests one pin and msm gpio callbacks
would configure other pin hardware registers.

Make sure pin number and its group array index matches, so that
pin descriptor in rbtree and its index in gpio array are synchronized.

And update sdm670 driver with latest configuration.

Change-Id: I1cf3b92e2926f711eef4fb09d91071628dc814ba
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent 4d9a308b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment