habanalabs: fix device IRQ unmasking for BE host
authorBen Segal <bpsegal20@gmail.com>
Wed, 7 Aug 2019 13:54:54 +0000 (13:54 +0000)
committerOded Gabbay <oded.gabbay@gmail.com>
Mon, 12 Aug 2019 06:01:10 +0000 (09:01 +0300)
commitb421d83a3947369fd5718824aecfaebe1efbf7ed
tree8647b3947a596decaa7ed745cde8fc0f3c2c9d96
parentb9040c99414ba5b85090595a61abc686a5dbb388
habanalabs: fix device IRQ unmasking for BE host

When unmasking IRQs inside the ASIC, the driver passes an array of all the
IRQ to unmask. The ASIC's CPU is working in LE so when running in a BE
host, the driver needs to do the proper endianness swapping when preparing
this array.

In addition, this patch also fixes the endianness of a couple of kernel log
debug messages that print values of packets

Signed-off-by: Ben Segal <bpsegal20@gmail.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/goya/goya.c