]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37fcd2d61966ba9d6150447b14c2e70b8b79dd35
tree8647b3947a596decaa7ed745cde8fc0f3c2c9d96
parent2597268e12217895ea216dd5ed15c50a4c8e7158
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