Re: [PATCH 2/2] drm/bridge: add support for lontium lt8713sx bridge driver

From: Krzysztof Kozlowski

Date: Sat Nov 15 2025 - 05:42:20 EST


On 15/11/2025 02:03, Vishnu Saini wrote:
> The lt8713sx is a Type-C/DP1.4 to Type-C/DP1.4/HDMI2.0 converter,
> with three configurable DP1.4/HDMI2.0/DP++ output interfaces and
> audio output interface.
>
> Driver is required for firmware upgrade in the bridge chip.
>
> Signed-off-by: Vishnu Saini <vishnu.saini@xxxxxxxxxxxxxxxx>
> Co-developed-by: Prahlad Valluru <vvalluru@xxxxxxxxxxxxxxxx>
> Signed-off-by: Prahlad Valluru <vvalluru@xxxxxxxxxxxxxxxx>
> ---



> +static int lt8713sx_gpio_init(struct lt8713sx *lt8713sx)
> +{
> + struct device *dev = lt8713sx->dev;
> +
> + lt8713sx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
> + if (IS_ERR(lt8713sx->reset_gpio)) {
> + dev_err(dev, "failed to acquire reset gpio\n");
> + return PTR_ERR(lt8713sx->reset_gpio);
> + }
> +
> + /* power enable gpio */
> + lt8713sx->enable_gpio = devm_gpiod_get_optional(dev, "enable", GPIOD_OUT_HIGH);
> + if (IS_ERR(lt8713sx->enable_gpio)) {
> + dev_err(dev, "failed to acquire enable gpio\n");

Syntax is return dev_err_probe. In multiple other places as well. You
need to handle deferred probe.

Best regards,
Krzysztof