]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00269945: reset: handle cansleep case in gpio-reset
authorShawn Guo <shawn.guo@freescale.com>
Sun, 14 Jul 2013 12:28:05 +0000 (20:28 +0800)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:53:45 +0000 (09:53 +0800)
commit22167e9f739df5619fe7b5968ab1f64e9d9ec2eb
treea165dc50725d53430636f7d9024faef579761780
parent9d52753c994cb9a18247c136f670fcd4e283c56b
ENGR00269945: reset: handle cansleep case in gpio-reset

Some gpio reset may be backed by a gpio that can sleep, e.g. pca953x
gpio output.  For such gpio, gpio_set_value_cansleep() should be
called.  Otherwise, the WARN_ON(chip->can_sleep) in gpiod_set_value()
will be hit.  Add a gpio_cansleep() check to handle cansleep gpio.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
drivers/reset/gpio-reset.c