OSDN Git Service

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)
commit34e88f9e2fff2d46a206e4d94c9e8fdf45b85d9a
treeaff0300cba05ef87c87b4c98c37dd9a07266bd74
parentadbb48bcf4002fdf0901b936bd75db21bca8f514
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: a1d2a6339961 ("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