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:
Lingutla Chandrasekhar <clingutla@codeaurora.org>
Loading
Please register or sign in to comment