diff options
author | Ben Segal <bpsegal20@gmail.com> | 2019-07-23 11:22:42 +0300 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2019-07-29 11:40:25 +0300 |
commit | 75035fe22b808a520e1d712ebe913684ba406e01 (patch) | |
tree | 8b9668c0e0b03d24daebb6f81ff72ba83c3fc879 /drivers/misc/habanalabs/goya | |
parent | 609488bc979f99f805f34e9a32c1e3b71179d10b (diff) | |
download | linux-75035fe22b808a520e1d712ebe913684ba406e01.tar.xz |
habanalabs: fix F/W download in BE architecture
writeX macros might perform byte-swapping in BE architectures. As our F/W
is in LE format, we need to make sure no byte-swapping will occur.
There is a standard kernel function (called memcpy_toio) for copying data
to I/O area which is used in a lot of drivers to download F/W to PCIe
adapters. That function also makes sure the data is copied "as-is",
without byte-swapping.
This patch use that function to copy the F/W to the GOYA ASIC instead of
writeX macros.
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>
Diffstat (limited to 'drivers/misc/habanalabs/goya')
0 files changed, 0 insertions, 0 deletions