qlcnic: Fix flash access interface to application
authorJitendra Kalsaria <[email protected]>
Mon, 18 Aug 2014 13:31:53 +0000 (09:31 -0400)
committerDavid S. Miller <[email protected]>
Fri, 22 Aug 2014 00:43:15 +0000 (17:43 -0700)
commit26acc712526e9a8a849c819ffb8fe2d4e1f7c063
tree944ef40ac308fa7f76409887e7749fb1a49e9227
parentd7155691127d69dff28e371e61fa68375a70a456
qlcnic: Fix flash access interface to application

Application expects flash data in little endian, but driver reads/writes
flash data using readl()/writel() APIs which swaps data on big endian machine.
So, swap the data after reading from and before writing to flash memory.

Signed-off-by: Jitendra Kalsaria <[email protected]>
Signed-off-by: Shahed Shaikh <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c