]> 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)
commit2d2a4e23ade86c40403e6d857930119129678a73
treeaff0300cba05ef87c87b4c98c37dd9a07266bd74
parent1bd60c12a2cc309c5b5673186f77827b33c5131c
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: 6ea757b843a1 ("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