projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36ec971
)
[SCSI] bfa: fix endianess issue for firmware stats
author
Vijaya Mohan Guvva
<vmohan@brocade.com>
Mon, 13 May 2013 09:33:32 +0000
(
02:33
-0700)
committer
James Bottomley
<JBottomley@Parallels.com>
Wed, 26 Jun 2013 23:55:27 +0000
(16:55 -0700)
Fix endianess issue on Big-endian architecture for firmware statistics
Signed-off-by: Vijaya Mohan Guvva <vmohan@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bfa/bfa_ioc.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/bfa/bfa_ioc.c
b/drivers/scsi/bfa/bfa_ioc.c
index
c31cb3c
..
a4f3741
100644
(file)
--- a/
drivers/scsi/bfa/bfa_ioc.c
+++ b/
drivers/scsi/bfa/bfa_ioc.c
@@
-1858,7
+1858,7
@@
bfa_ioc_smem_read(struct bfa_ioc_s *ioc, void *tbuf, u32 soff, u32 sz)
bfa_trc(ioc, len);
for (i = 0; i < len; i++) {
r32 = bfa_mem_read(ioc->ioc_regs.smem_page_start, loff);
- buf[i] =
be32_to_cpu
(r32);
+ buf[i] =
swab32
(r32);
loff += sizeof(u32);
/*