]> git.baikalelectronics.ru Git - kernel.git/commit
qlcnic: Fix endianess issue in firmware load from file operation
authorShahed Shaikh <shahed.shaikh@qlogic.com>
Mon, 18 Aug 2014 13:31:55 +0000 (09:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Aug 2014 00:43:15 +0000 (17:43 -0700)
commit5a8f86ee03a9c3c892d2a4173f21927f705562c5
tree71abe07837d62bbf92fabc65b1b2c1a1bd234ce7
parenta3fb92d92cd2b5c5aa998ea1918ade95e2f300a2
qlcnic: Fix endianess issue in firmware load from file operation

Firmware binary file is in little endian. On big-endian architecture, while
writing this binary FW file to adapters memory, writel() swaps the data resulting into
corruption of FW image. So, swap the data before writing into adapters memory.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c