]> bbs.cooldavid.org Git - net-next-2.6.git/commit
libertas: fix CF firmware loading for some cards
authorDan Williams <dcbw@redhat.com>
Fri, 23 Jan 2009 16:55:33 +0000 (11:55 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 21:01:27 +0000 (16:01 -0500)
commit1fac36ee7d5a0611e1216b02b485b154c8aa6dad
treec253126f16feeb038d906ab98e1695108788d71e
parent0712612741e1dccf10353c70ebe90ba8cc60d5fb
libertas: fix CF firmware loading for some cards

if_cs_poll_while_fw_download() returned the number of iterations
remaining on success, which in turn got returned as the value from
if_cs_prog_real() and if_cs_prog_helper().  But since if_cs_probe()
interprets non-zero return values from firmware load functions as an
error, this sometimes caused spurious firmware load failures.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Tested-by: Ryan Mallon <ryan@bluewatersys.com>
Acked-by: Ryan Mallon <ryan@bluewatersys.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/if_cs.c