drm/mcde: Fix DSI transfers
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 3 Sep 2019 17:08:04 +0000 (19:08 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 4 Sep 2019 20:05:34 +0000 (22:05 +0200)
commit88537ddbbe4c755e193aa220a306395edf08a4cf
treefa9e476c6a36402b7c7f75973c4563dfbfa6a3b2
parent45d0dbd15a3b89ced53e058bc71b751e6473b664
drm/mcde: Fix DSI transfers

There were bugs in the DSI transfer (read and write) function
as it was only tested with displays ever needing a single byte
to be written. Fixed it up and tested so we can now write
messages of up to 16 bytes and read up to 4 bytes from the
display.

Tested with a Sony ACX424AKP display: this display now self-
identifies and can control backlight in command mode.

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: 5fc537bfd000 ("drm/mcde: Add new driver for ST-Ericsson MCDE")
Reviewed-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190903170804.17053-1-linus.walleij@linaro.org
drivers/gpu/drm/mcde/mcde_dsi.c