libertas: add two-stage firmware request helper
authorDan Williams <dcbw@redhat.com>
Sun, 8 Aug 2010 02:14:33 +0000 (21:14 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Aug 2010 19:26:43 +0000 (15:26 -0400)
commit72f7a6671e8a1433467757e94c883d39eeccd4ba
treee243ce8fede1d762fadf7aa62a582c6ffaa512ce
parent5cddea816eec8b5f6ab76d3fafcbb1533c8c2b9d
libertas: add two-stage firmware request helper

SDIO, GSPI, and CS all use 2-stage firmware and the loading
process and logic should be the same.  Allow module parameters
to override the automatic firmware choice, otherwise just walk
the bus driver's firmware table and pick out the first firmware
pair that exists for the given model.

Some special care is taken to allow overriding of just the helper
or the main firmware, but let the other of the pair be chosen
automatically.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/decl.h
drivers/net/wireless/libertas/main.c