habanalabs: fix completion queue handling when host is BE
authorBen Segal <bpsegal20@gmail.com>
Thu, 1 Aug 2019 23:22:20 +0000 (23:22 +0000)
committerOded Gabbay <oded.gabbay@gmail.com>
Mon, 12 Aug 2019 06:01:10 +0000 (09:01 +0300)
commit4e87334a0ef43663019dbaf3638ad10fd8c3320c
treeb4442f504c8f49bbc29721d712a7c6d5129d5212
parent213ad5ad016a0da975b35f54e8cd236c3b04724b
habanalabs: fix completion queue handling when host is BE

This patch fix the CQ irq handler to work in hosts with BE architecture.
It adds the correct endian-swapping macros around the relevant memory
accesses.

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