Skip to content

*** Update is_enabled flag to be consistent ***

[email protected] linux-arm-msm linux-gpio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pinctrl: qcom: spmi-gpio: Read REG_EN_CTL to get initial enable statedrivers/pinctrl/qcom/pinctrl-spmi-gpio.c+7 -21 reply
2/2pinctrl: qcom: spmi-gpio: Set is_enabled flag in set_mux()drivers/pinctrl/qcom/pinctrl-spmi-gpio.c+1 -03 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchBjorn Andersson
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH V1 0/2] *** Update is_enabled flag to be consistent ***

From: Fenglin Wu <[email protected]>

Currently, is_enabled flag is always set to true in pmic_gpio_populate() regardless of the hardware real time status. This is not correct and it gives the wrong information for the GPIOs which are disabled initially in hardware. Add two patches to fix this: One is set the is_enabled flag via reading the REG_EN_CTL register then its value can reflect the corrent initial hardware enable state; Another is set is_enable flag in pmic_gpio_set_mux() so that any disabled GPIO could be enabled right after setting pinmux.

Fenglin Wu (2):
pinctrl: qcom: spmi-gpio: Read REG_EN_CTL to get initial enable state
pinctrl: qcom: spmi-gpio: Set is_enabled flag in set_mux()

 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project.