qlcnic: Fix flash access interface to application
authorJitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Mon, 18 Aug 2014 13:31:53 +0000 (09:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
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 <jitendra.kalsaria@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c