projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bd17eb
)
be2net: convert hdr.timeout in be_cmd_loopback_test() to le32
author
Sathya Perla
<sathyap@serverengines.com>
Tue, 1 Jun 2010 07:19:33 +0000
(
00:19
-0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 1 Jun 2010 07:19:33 +0000
(
00:19
-0700)
The current code fails on ppc as hdr.timeout is not being converted
to le32.
Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_cmds.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/benet/be_cmds.c
b/drivers/net/benet/be_cmds.c
index 9e305d7fb4bdb8623cc29a6633b61b2fa56c2187..b9ad799c719f1d5b541a33d93d095318e6c362fc 100644
(file)
--- a/
drivers/net/benet/be_cmds.c
+++ b/
drivers/net/benet/be_cmds.c
@@
-1593,7
+1593,7
@@
int be_cmd_loopback_test(struct be_adapter *adapter, u32 port_num,
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_LOWLEVEL,
OPCODE_LOWLEVEL_LOOPBACK_TEST, sizeof(*req));
- req->hdr.timeout =
4
;
+ req->hdr.timeout =
cpu_to_le32(4)
;
req->pattern = cpu_to_le64(pattern);
req->src_port = cpu_to_le32(port_num);