drm/bridge: ti-sn65dsi83: Optimize reset line toggling
authorMarek Vasut <marex@denx.de>
Sat, 16 Oct 2021 21:04:02 +0000 (23:04 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sun, 17 Oct 2021 16:49:57 +0000 (18:49 +0200)
commit30a46873941f1422e9169c9e38d4874365054c13
treeaa8190a48686df71e30de70d4dbce997104a9da3
parent40e8c0198a51656086b746597af8c36f291b53d1
drm/bridge: ti-sn65dsi83: Optimize reset line toggling

Current code always sets reset line low in .pre_enable callback and
holds it low for 10ms. This is sub-optimal and increases the time
between enablement of the DSI83 and valid LVDS clock.

Rework the reset handling such that the reset line is held low for 10ms
both in probe() of the driver and .disable callback, which guarantees
that the reset line was always held low for more than 10ms and therefore
the reset line timing requirement is satisfied. Furthermore, move the
reset handling into .enable callback so the entire DSI83 initialization
is now in one place.

This reduces DSI83 enablement delay by up to 10ms.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Robert Foss <robert.foss@linaro.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211016210402.171595-1-marex@denx.de
drivers/gpu/drm/bridge/ti-sn65dsi83.c