habanalabs: fix MMU debugfs operations
authorMoti Haimovski <mhaimovski@habana.ai>
Tue, 27 Oct 2020 08:55:42 +0000 (10:55 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:35 +0000 (10:47 +0200)
commit00e1b59c8b155d524cf416155607c3e52c54c32a
tree554117b7cf33b76154b0dffd36bcd3f45b6c8a5c
parentfe2bc2d249539c117cc887dc1f960ffcbba52d1e
habanalabs: fix MMU debugfs operations

After the MMU-code refactoring, the existing MMU debugfs operations
are no longer working so we need to fix them.
In addition, remove the duplicate code that was in the debugfs code
and use the already existing MMU-code.

Signed-off-by: Moti Haimovski <mhaimovski@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/debugfs.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/mmu.c
drivers/misc/habanalabs/common/mmu_v1.c