]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/bridge: ti-sn65dsi86: Clear old error bits before AUX transfers
authorDouglas Anderson <dianders@chromium.org>
Fri, 8 May 2020 23:33:29 +0000 (16:33 -0700)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 18 May 2020 18:01:14 +0000 (20:01 +0200)
commitbaef4d56195b6d6e0f681f6eac03d8c6db011d34
tree06e6cd947897eb5b1ccd29b1f0e90f2b9086d29f
parent1dbc979172afcf5380932e8aa76429d6e564a69c
drm/bridge: ti-sn65dsi86: Clear old error bits before AUX transfers

The AUX channel transfer error bits in the status register are latched
and need to be cleared.  Clear them before doing our transfer so we
don't see old bits and get confused.

Without this patch having a single failure would mean that all future
transfers would look like they failed.

Fixes: b814ec6d4535 ("drm/bridge: ti-sn65dsi86: Implement AUX channel")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200508163314.1.Idfa69d5d3fc9623083c0ff78572fea87dccb199c@changeid
drivers/gpu/drm/bridge/ti-sn65dsi86.c