habanalabs: fix backward compatibility of idle check
authorOded Gabbay <ogabbay@kernel.org>
Mon, 18 Jan 2021 11:19:51 +0000 (13:19 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 21 Jan 2021 18:30:22 +0000 (20:30 +0200)
commitf8abaf379bfe19600f96ae79a6759eb37039ae05
tree08004087634b827324421f5a498ab4d5339c9fcc
parent9354f1b421f76f8368be13954f87d07bcbd6fffe
habanalabs: fix backward compatibility of idle check

Need to take the lower 32 bits of the driver's 64-bit idle mask and put
it in the legacy 32-bit variable that the userspace reads to know the
idle mask.

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