tg3: Enhance firmware download code to support fragmented firmware
authorNithin Sujir <nsujir@broadcom.com>
Wed, 6 Mar 2013 17:02:33 +0000 (17:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Mar 2013 20:31:32 +0000 (15:31 -0500)
commit31f11a951f1b5d262186e741ca019e572a3fafe4
tree4ef40bb1508cbb073194244c2d448c45fdd72b81
parent77997ea3f4ac84e6275bc3d6051956eee54f901a
tg3: Enhance firmware download code to support fragmented firmware

This lays the ground work to download the 57766 fragmented firmware. We
loop until we've written data equal to tp->fw->size minus headers.

Reviewed-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c