From: zyh Date: Thu, 17 Apr 2014 10:16:21 +0000 (+0800) Subject: rk3288:keep camera pwen high alwaysly to avoid leakage of lcdc electricity X-Git-Tag: firefly_0821_release~5515 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0c0794d1d6f52af604cf83fb32b8351c5dc59ea2;p=firefly-linux-kernel-4.4.55.git rk3288:keep camera pwen high alwaysly to avoid leakage of lcdc electricity --- diff --git a/drivers/media/video/rk_camsys/camsys_internal.h b/drivers/media/video/rk_camsys/camsys_internal.h index e652aec383e6..2e5a577cf181 100755 --- a/drivers/media/video/rk_camsys/camsys_internal.h +++ b/drivers/media/video/rk_camsys/camsys_internal.h @@ -290,9 +290,13 @@ static inline int camsys_sysctl_extdev(camsys_extdev_t *extdev, camsys_sysctrl_t gpio_set_value(gpio->io, gpio->active); camsys_trace(1,"Sysctl %d success, gpio(%d) set %d",devctl->ops, gpio->io, gpio->active); } else { - gpio_direction_output(gpio->io, !gpio->active); - gpio_set_value(gpio->io, !gpio->active); - camsys_trace(1,"Sysctl %d success, gpio(%d) set %d",devctl->ops, gpio->io, !gpio->active); + if(CamSys_PwrEn != devctl->ops){ + gpio_direction_output(gpio->io, !gpio->active); + gpio_set_value(gpio->io, !gpio->active); + camsys_trace(1,"Sysctl %d success, gpio(%d) set %d",devctl->ops, gpio->io, !gpio->active); + }else{ + camsys_trace(1,"don't poweroff CamSys_PwrEn now \n"); + } } } else { camsys_err("Sysctl %d failed, because gpio is NULL!",devctl->ops);