drm/etnaviv: avoid runtime PM usage in etnaviv_gpu_bind
authorLucas Stach <l.stach@pengutronix.de>
Wed, 7 Jun 2023 13:02:20 +0000 (15:02 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 17 Jul 2023 09:32:21 +0000 (11:32 +0200)
commit448406eaf6c2a1f9941af1027dc610fd7461f0dc
tree66edf83fcc5ec4ab2880fcb609986f269cf4d119
parent7cb544946a138d8a1a5f4981f23895dc98c91c8a
drm/etnaviv: avoid runtime PM usage in etnaviv_gpu_bind

Nothing in this callpath actually touches the GPU, so there is no reason
to get it out of suspend state here. Only if runtime PM isn't enabled at
all we must make sure to enable the clocks, so the GPU init routine can
access the GPU later on.

This also removes the need to guard against the state where the driver
isn't fully initialized yet in the runtime PM resume handler.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c