drm/bridge: ti-sn65dsi86: ensure bridge suspend happens during PM sleep
authorHarigovindan P <harigovi@codeaurora.org>
Tue, 9 Jun 2020 12:04:55 +0000 (17:34 +0530)
committerNeil Armstrong <narmstrong@baylibre.com>
Fri, 26 Jun 2020 11:39:59 +0000 (13:39 +0200)
commitfbd12537b0173810f95fb6bc24a8bd190b8b500f
tree42e5d2b26a2c583a86132caa7e926e419eba9565
parent41752663b410c6265e24ff0570350b0b05ecdafe
drm/bridge: ti-sn65dsi86: ensure bridge suspend happens during PM sleep

ti-sn65dsi86 bridge is enumerated as a runtime device. When
suspend is triggered, PM core adds a refcount on all the
devices and calls device suspend, since usage count is
already incremented, runtime suspend will not be called
and it kept the bridge regulators and gpios ON which resulted
in platform not entering into XO shutdown.

Add changes to force suspend on the runtime device during pm sleep.

Signed-off-by: Harigovindan P <harigovi@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200609120455.20458-1-harigovi@codeaurora.org
drivers/gpu/drm/bridge/ti-sn65dsi86.c