mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
media: i2c: ov2735: request reset GPIO as initially asserted
The reset GPIO must be requested in the asserted (HIGH) state to keep the sensor in standby during probe and power sequencing. Signed-off-by: Elgin Perumbilly <elgin.perumbilly@siliconsignals.io> Acked-by: Tarang Raval <tarang.raval@siliconsignals.io> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
committed by
Hans Verkuil
parent
290fb5a1b4
commit
1a84924258
@@ -993,7 +993,7 @@ static int ov2735_probe(struct i2c_client *client)
|
||||
"failed to parse endpoint configuration\n");
|
||||
|
||||
ov2735->reset_gpio = devm_gpiod_get_optional(ov2735->dev,
|
||||
"reset", GPIOD_OUT_LOW);
|
||||
"reset", GPIOD_OUT_HIGH);
|
||||
if (IS_ERR(ov2735->reset_gpio))
|
||||
return dev_err_probe(ov2735->dev, PTR_ERR(ov2735->reset_gpio),
|
||||
"failed to get reset GPIO\n");
|
||||
|
||||
Reference in New Issue
Block a user