habanalabs: give FW a grace time for configuring iATU
authorOfir Bitton <obitton@habana.ai>
Tue, 20 Apr 2021 07:15:25 +0000 (10:15 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 18 Jun 2021 12:23:39 +0000 (15:23 +0300)
commit38fbcc6ec9a3812f355c0360f6e37966ceb24a7c
tree97fc60bfce498a90346f78975a055916f0ca22dd
parent90bd4798a8bbea05a0383c5f430db9105b40391e
habanalabs: give FW a grace time for configuring iATU

iATU (internal Address Translation Unit of the PCI controller)
configuration is being done by FW right after driver enables
the PCI device. Hence, driver must add a minor sleep afterwards
in order to make sure FW finishes configuring iATU regions.

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/pci/pci.c