]> 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)
commit2b6a050228ddc23c82937fd823273564bf0cbca8
tree71abe07837d62bbf92fabc65b1b2c1a1bd234ce7
parent288a9693d7f72257b4096ee78b477b7c6c4041d6
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