habanalabs: Handle HW_IP_INFO if device disabled or in reset
authorTomer Tayar <ttayar@habana.ai>
Thu, 8 Aug 2019 12:30:22 +0000 (12:30 +0000)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 5 Sep 2019 11:55:27 +0000 (14:55 +0300)
commit129b6a9324ad8bdf0973a5441763e29bd4e91663
tree25d765101322c77f1a624e43e870bf4269645dc3
parentea451f88ef9c8c8e8e3858e343f6fe85c694655c
habanalabs: Handle HW_IP_INFO if device disabled or in reset

The HW IP information is relevant even if the device is disabled or in
reset, so always handle the corresponding INFO IOCTL opcode.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/habanalabs_ioctl.c