Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] drm/panel: s6e3ha8: wrong initial reset level in s6e3ha8_probe() --
commit 638501e49b28649968fb13a048f427c682aad406 Author: David Heidelberg <[email protected]> drm/panel: s6e3ha8: Correct the polarity logic within This commit inverts the reset GPIO sequence in s6e3ha8_amb577px01_wqhd_reset() and adds gpiod_toggle_active_low() for the deprecated "samsung,s6e3ha8" compatible to preserve compatibility with existing device trees that specify GPIO_ACTIVE_HIGH. > diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c > b/drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c > index f5b3992d948bc..99290913de69a 100644 > --- a/drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c > +++ b/drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c [ ... ] > @@ -288,6 +300,9 @@ static int s6e3ha8_probe(struct mipi_dsi_device *dsi) > return dev_err_probe(dev, PTR_ERR(priv->reset_gpio), > "Failed to get reset-gpios\n"); > > + if (priv->desc->broken_reset_polarity) > + gpiod_toggle_active_low(priv->reset_gpio); > + [Severity: Medium] Does calling gpiod_toggle_active_low() after devm_gpiod_get(..., GPIOD_OUT_HIGH) leave priv->reset_gpio at the wrong initial physical level on legacy device trees? devm_gpiod_get() configures the output using the untoggled GPIO_ACTIVE_HIGH polarity from the device tree, driving the physical line high (reset deasserted). gpiod_toggle_active_low() then only flips GPIOD_FLAG_ACTIVE_LOW in desc->flags without updating the hardware output, so reset stays deasserted after probe and through the 120 ms power-on delay in s6e3ha8_amb577px01_wqhd_prepare() until s6e3ha8_amb577px01_wqhd_reset() runs. Driving the GPIO to 1 after gpiod_toggle_active_low() (or passing GPIOD_OUT_LOW to devm_gpiod_get() when broken_reset_polarity is set) would keep the panel in reset initially. -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=5
