habanalabs: prefer ASYNC device probing
authorOded Gabbay <ogabbay@kernel.org>
Wed, 26 May 2021 08:14:21 +0000 (11:14 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 18 Jun 2021 12:23:41 +0000 (15:23 +0300)
commit135ade0c6afccbe874bdda811201733e5b57c9bc
treefca6754d9de8e9ab61a6912d7961778e977d00ef
parentae151bcfab04f3580382a81b608a72773d19c25d
habanalabs: prefer ASYNC device probing

There is no dependency when probing multiple devices so indicate to the
kernel that it can probe our devices in ASYNC fashion.

This shortens insmod of the driver from ~2 minutes to 20 seconds on
a system with 8 devices.

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