habanalabs: use common wrapper for MMU cache invalidation
authorOded Gabbay <ogabbay@kernel.org>
Mon, 10 Jan 2022 19:58:42 +0000 (21:58 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 28 Feb 2022 12:22:02 +0000 (14:22 +0200)
commit6ba2c0ce26929bc7dcae88e3c3450bd75d9a2423
tree2c83e7a9db7b1309930793a2384658f8c925f065
parent2491533808d71c2229582d7427dffbd9494cc85f
habanalabs: use common wrapper for MMU cache invalidation

We have a common function that wraps the call to the MMU cache
invalidation function, which is ASIC-specific. The wrapper checks
the return value and prints error if necessary. For consistency, try
to use the wrapper when possible.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c