[PATCH v2 0/1] gpio: pca954x: Add vcc regulator and enable it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a system where the gpio device is attached to a gpio controlled
regulator. If not enabled prior to device probe it fails to load the
driver. Marking the regulator as always on does not always work as the
probe order changes and it's suspectible to race conditions.

I'm not aware of another way around this problem.

Changes from v1:
- Use devm_regulator_get instead of devm_regulator_get_optional.
  Core returns a dummy regultor that can be used if i doesn't exist.
  Simplify inital error handling.
- Add regulator_disable to probe error path.
- Add regulator_disable to remove.


Phil Reid (1):
  gpio: pca954x: Add vcc regulator and enable it

 drivers/gpio/gpio-pca953x.c | 41 ++++++++++++++++++++++++++++++++---------
 1 file changed, 32 insertions(+), 9 deletions(-)

-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux