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)
commit3d8623e60054e6ada897e6295f137fa7f1399a97
tree71abe07837d62bbf92fabc65b1b2c1a1bd234ce7
parentd874df58ff2eefadd22623d4e53ff92e38117b40
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