]> git.baikalelectronics.ru Git - kernel.git/commit
drm/lima: Reduce the amount of logs on deferred probe
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 21 Jun 2019 16:21:15 +0000 (18:21 +0200)
committerQiang Yu <yuq825@gmail.com>
Sun, 23 Jun 2019 03:23:02 +0000 (11:23 +0800)
commit4e4e3bd42e705f8af1c0613325393beef3fd89fc
treeaff0300cba05ef87c87b4c98c37dd9a07266bd74
parentbbb27e02fc427980acd92e5b17301a21ab88a462
drm/lima: Reduce the amount of logs on deferred probe

There is no point to print deferred probe (and its failures to get
resources) as an error.  For example getting a regulator causes three
unneeded error messages:

    lima 13000000.gpu: failed to get regulator: -517
    lima 13000000.gpu: regulator init fail -517
    lima 13000000.gpu: Fatal error during GPU init

Also do not print clock rates before the initialization finishes
because they will be duplicated after deferral.  Each probe step already
prints error so remove the final error message "Fatal error during GPU
init".

In case of multiple probe tries this would pollute the dmesg.

Fixes: 6e27e10dac7b ("drm/lima: driver for ARM Mali4xx GPUs")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190621162117.22533-2-krzk@kernel.org
drivers/gpu/drm/lima/lima_device.c
drivers/gpu/drm/lima/lima_drv.c