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
gpiolib.c gpiolib: allow nested threaded irqs for poll(2) 2010-08-11 08:59:09 -07:00
it8761e_gpio.c
janz-ttl.c
Kconfig gpio: Add STMPE GPIO driver 2010-08-12 11:27:55 +02:00
langwell_gpio.c
Makefile gpio: Add STMPE GPIO driver 2010-08-12 11:27:55 +02:00
max730x.c
max732x.c
max7300.c
max7301.c
mc33880.c
mcp23s08.c
pca953x.c
pcf857x.c pcf857x: support working w/o platform data 2010-08-11 08:59:08 -07:00
pl061.c
rdc321x-gpio.c
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
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