]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Sep 2019 08:23:20 +0000 (10:23 +0200)
commit1900d706b9c4aff70d9d599d327f283e1b5e0f15
tree1f2ba6c7d2630f55246e7e8f06b77e3bd1270323
parent79e338d70c868cf8074e54f292214f9b812af0b2
habanalabs: fix completion queue handling when host is BE

[ Upstream commit 4e87334a0ef43663019dbaf3638ad10fd8c3320c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/habanalabs/irq.c