From: Ajit Khaparde Date: Tue, 16 Feb 2010 00:18:46 +0000 (+0000) Subject: be2net: set proper value to version field in req hdr X-Git-Tag: v3.0~6002^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07793d33b4fba00f5bd1dac78fa038bb0e23fa5c;p=platform%2Fkernel%2Flinux-amlogic.git be2net: set proper value to version field in req hdr Before sending a command to the ASIC, set version properly. This is necessary for the ARM firmware to send correct data to the driver. This also fixes a bug in certain skews of the ASIC where the statistics are misreported. Signed-off-by: Ajit Khaparde Signed-off-by: David S. Miller --- diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c index fee6eee..006cb2ef 100644 --- a/drivers/net/benet/be_cmds.c +++ b/drivers/net/benet/be_cmds.c @@ -296,6 +296,7 @@ static void be_cmd_hdr_prepare(struct be_cmd_req_hdr *req_hdr, req_hdr->opcode = opcode; req_hdr->subsystem = subsystem; req_hdr->request_length = cpu_to_le32(cmd_len - sizeof(*req_hdr)); + req_hdr->version = 0; } static void be_cmd_page_addrs_prepare(struct phys_addr *pages, u32 max_pages,