]> git.baikalelectronics.ru Git - 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)
commit8c7651d256848f5b5df5299249795ab552a87924
tree06e6cd947897eb5b1ccd29b1f0e90f2b9086d29f
parent6d4fc71a1d1b0d9e7da0ea154689450b41b26a29
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: 05f31417ff5c ("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