drm/etnaviv: move MMU context ref/unref into map/unmap_gem
authorLucas Stach <l.stach@pengutronix.de>
Wed, 23 Mar 2022 16:08:23 +0000 (17:08 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Wed, 6 Apr 2022 08:01:36 +0000 (10:01 +0200)
commit11ad6a1f181f28dccbe47a7fb41f56557573941a
tree4d4476a6e9d74309a5d7511bb101c79510c08ffb
parente168c25526cd0368af098095c2ded4a008007e1b
drm/etnaviv: move MMU context ref/unref into map/unmap_gem

This makes it a little more clear that the mapping holds a reference
to the context once the buffer has been successfully mapped into that
context and simplifies the error handling a bit.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Guido Günther <agx@sigxcpu.org>
Acked-by: Guido Günther <agx@sigxcpu.org>
drivers/gpu/drm/etnaviv/etnaviv_gem.c
drivers/gpu/drm/etnaviv/etnaviv_mmu.c