linux/drivers/gpio
Gregory Bean 5affb60772 gpio: sx150x: correct and refine reset-on-probe behavior
Replace the arbitrary software-reset call from the device-probe
method, because:

- It is defective.  To work correctly, it should be two byte writes,
  not a single word write.  As it stands, it does nothing.

- Some devices with sx150x expanders installed have their NRESET pins
  ganged on the same line, so resetting one causes the others to reset -
  not a nice thing to do arbitrarily!

- The probe, usually taking place at boot, implies a recent hard-reset,
  so a software reset at this point is just a waste of energy anyway.

Therefore, make it optional, defaulting to off, as this will match the
common case of probing at powerup and also matches the current broken
no-op behavior.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-09-09 18:57:24 -07:00
..
adp5520-gpio.c
adp5588-gpio.c
bt8xxgpio.c
cs5535-gpio.c Andres has moved 2010-07-20 16:25:41 -07:00
gpiolib.c gpiolib: allow nested threaded irqs for poll(2) 2010-08-11 08:59:09 -07:00
it8761e_gpio.c drivers/gpio/it8761e_gpio: check return value of gpiochip_remove() 2010-05-27 09:12:42 -07:00
janz-ttl.c gpio: Add support for Janz VMOD-TTL Digital IO module 2010-05-28 01:37:33 +02:00
Kconfig gpio: Add STMPE GPIO driver 2010-08-12 11:27:55 +02:00
langwell_gpio.c gpio: add Penwell gpio support 2010-05-27 09:12:42 -07:00
Makefile gpio: Add STMPE GPIO driver 2010-08-12 11:27:55 +02:00
max730x.c gpio: max730x: make pullups configurable via platformdata 2010-08-11 08:59:08 -07:00
max732x.c gpio: max732x: fix input configuration for open-drain pins 2010-05-27 09:12:41 -07:00
max7300.c
max7301.c
mc33880.c
mcp23s08.c
pca953x.c gpiolib: make names array and its values const 2010-05-27 09:12:41 -07:00
pcf857x.c pcf857x: support working w/o platform data 2010-08-11 08:59:08 -07:00
pl061.c ARM: Fix section build warnings for AMBA drivers 2010-07-27 10:48:43 +01:00
rdc321x-gpio.c gpio: Fix inverted rdc321x gpio data out registers 2010-05-28 01:37:59 +02:00
sch_gpio.c
stmpe-gpio.c gpio: Add STMPE GPIO driver 2010-08-12 11:27:55 +02:00
sx150x.c gpio: sx150x: correct and refine reset-on-probe behavior 2010-09-09 18:57:24 -07:00
tc35892-gpio.c gpio: Add TC35892 GPIO driver 2010-05-28 01:37:43 +02:00
timbgpio.c
twl4030-gpio.c
ucb1400_gpio.c
vr41xx_giu.c
wm831x-gpio.c gpiolib: Implement set_debounce for WM831x GPIOs 2010-08-12 11:27:57 +02:00
wm8350-gpiolib.c
wm8994-gpio.c
xilinx_gpio.c of/gpio: add default of_xlate function if device has a node pointer 2010-07-05 16:14:30 -06:00