]> git.baikalelectronics.ru Git - kernel.git/commit
drm/dbi: Print errors for mipi_dbi_command()
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 2 Jul 2021 13:56:01 +0000 (15:56 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 4 Jul 2021 22:22:51 +0000 (00:22 +0200)
commit1110a786e720fcde99ccb3ea8bf286159ce4b0ea
tree7a3998608200a560a9c410c9927c87d1dd097b93
parentba1866f8cb818ce2700faf99be6199b8ab31f535
drm/dbi: Print errors for mipi_dbi_command()

The macro mipi_dbi_command() does not report errors unless you wrap it
in another macro to do the error reporting.

Report a rate-limited error so we know what is going on.

After this any code wishing to send command arrays can rely on
mipi_dbi_command() providing an appropriate error message if something
goes wrong.

Suggested-by: Noralf Trønnes <noralf@tronnes.org>
Suggested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210702135601.3952726-1-linus.walleij@linaro.org
include/drm/drm_mipi_dbi.h