]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: i2c: set lt6911uxe's reset_gpio to GPIOD_OUT_LOW
authorDongcheng Yan <dongcheng.yan@intel.com>
Wed, 21 May 2025 07:15:19 +0000 (15:15 +0800)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 30 Jun 2025 06:47:41 +0000 (08:47 +0200)
reset_gpio needs to be an output and set to GPIOD_OUT_LOW, to ensure
lt6911uxe is in reset state during probe.

This issue was found on the onboard lt6911uxe, where the reset_pin was
not reset, causing the lt6911uxe to fail to probe.

Fixes: e49563c3be09d4 ("media: i2c: add lt6911uxe hdmi bridge driver")
Cc: stable@vger.kernel.org
Signed-off-by: Dongcheng Yan <dongcheng.yan@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/lt6911uxe.c

index 24857d683fcfcfcebef91db5bf77b8151ab1ac78..bdefdd157e69caddd82e0a48ba1f355694407d6f 100644 (file)
@@ -600,7 +600,7 @@ static int lt6911uxe_probe(struct i2c_client *client)
 
        v4l2_i2c_subdev_init(&lt6911uxe->sd, client, &lt6911uxe_subdev_ops);
 
-       lt6911uxe->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_IN);
+       lt6911uxe->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
        if (IS_ERR(lt6911uxe->reset_gpio))
                return dev_err_probe(dev, PTR_ERR(lt6911uxe->reset_gpio),
                                     "failed to get reset gpio\n");