mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
media: i2c: ov7251: Introduce 1 ms delay between regulators and en GPIO
commit 3d391292cdd53984ec1b9a1f6182a62a62751e03 upstream.
Lift the xshutdown (enable) GPIO 1 ms after enabling the regulators, as
required by the sensor's power-up sequence.
Fixes: d30bb512da ("media: Add a driver for the ov7251 camera sensor")
Cc: stable@vger.kernel.org
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
998642d6c6
commit
4397512185
1 changed files with 2 additions and 0 deletions
|
|
@ -748,6 +748,8 @@ static int ov7251_set_power_on(struct ov7251 *ov7251)
|
|||
return ret;
|
||||
}
|
||||
|
||||
usleep_range(1000, 1100);
|
||||
|
||||
gpiod_set_value_cansleep(ov7251->enable_gpio, 1);
|
||||
|
||||
/* wait at least 65536 external clock cycles */
|
||||
|
|
|
|||
Loading…
Reference in a new issue