habanalabs: move HW dirty check to a proper location
authorOfir Bitton <obitton@habana.ai>
Mon, 19 Oct 2020 14:04:20 +0000 (17:04 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:33 +0000 (10:47 +0200)
commitd1ddd90551b2ec3ed3b72daa09ecf38c174c1f61
tree351df0e8f1f9712d0ba67dd4443681ffed7fb707
parent28e052c95292410922d487c48d2f841ccd6495e7
habanalabs: move HW dirty check to a proper location

Driver must verify if HW is dirty before trying to fetch preboot
information. Hence, we move this validation to a prior stage of
the boot sequence.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/device.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/habanalabs_drv.c
drivers/misc/habanalabs/common/pci.c
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c