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 <[email protected]>
> Co-developed-by: Prahlad Valluru <[email protected]>
> Signed-off-by: Prahlad Valluru <[email protected]>
> ---



> +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

Reply via email to