linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V1 0/2] *** Update is_enabled flag to be consistent ***
@ 2017-10-13  6:15 fenglinw
  2017-10-13  6:15 ` [PATCH V1 1/2] pinctrl: qcom: spmi-gpio: Read REG_EN_CTL to get initial enable state fenglinw
  2017-10-13  6:15 ` [PATCH V1 2/2] pinctrl: qcom: spmi-gpio: Set is_enabled flag in set_mux() fenglinw
  0 siblings, 2 replies; 7+ messages in thread
From: fenglinw @ 2017-10-13  6:15 UTC (permalink / raw)
  To: linux-arm-msm, linux-kernel
  Cc: collinsd, aghayal, wruan, subbaram, kgunda, Fenglin Wu

From: Fenglin Wu <fenglinw@codeaurora.org>

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(-)

-- 
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-10-20  9:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-13  6:15 [PATCH V1 0/2] *** Update is_enabled flag to be consistent *** fenglinw
2017-10-13  6:15 ` [PATCH V1 1/2] pinctrl: qcom: spmi-gpio: Read REG_EN_CTL to get initial enable state fenglinw
2017-10-16 22:19   ` Bjorn Andersson
2017-10-13  6:15 ` [PATCH V1 2/2] pinctrl: qcom: spmi-gpio: Set is_enabled flag in set_mux() fenglinw
2017-10-16 22:29   ` Bjorn Andersson
2017-10-17  4:36     ` Fenglin Wu
2017-10-20  9:51       ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).