Skip to content

Commit 2dde85b

Browse files
wenmliugregkh
authored andcommitted
media: i2c: imx412: Assert reset GPIO during probe
commit 8467c5f upstream. Assert the reset GPIO before first power up. This avoids a mismatch where the first power up (when the reset GPIO defaults deasserted) differs from subsequent cycles. Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com> Fixes: 9214e86 ("media: i2c: Add imx412 camera sensor driver") Cc: stable@vger.kernel.org Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 97dbf8e commit 2dde85b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/media/i2c/imx412.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ static int imx412_parse_hw_config(struct imx412 *imx412)
934934

935935
/* Request optional reset pin */
936936
imx412->reset_gpio = devm_gpiod_get_optional(imx412->dev, "reset",
937-
GPIOD_OUT_LOW);
937+
GPIOD_OUT_HIGH);
938938
if (IS_ERR(imx412->reset_gpio)) {
939939
dev_err(imx412->dev, "failed to get reset gpio %ld\n",
940940
PTR_ERR(imx412->reset_gpio));

0 commit comments

Comments
 (0)