]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
libertas: Fix sd8686 firmware reload
authorPaul Fox <pgf@laptop.org>
Fri, 29 Oct 2010 13:57:28 +0000 (14:57 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 29 Oct 2010 18:33:25 +0000 (14:33 -0400)
commit731b2034999bbfe86c9074f1b0d611940bf7c323
tree6ef7cf2f32e0352242fb06fad132722546eb1980
parent4fc4fbd1d9a05fa4f348b499aca3a6f8d3c9bbe6
libertas: Fix sd8686 firmware reload

For the SD8686, we cannot rely on the scratch register to read the firmware
load status, because the same register is used for storing RX packet length.
Broaden the check to account for this.

The module can now be unloaded/reloaded successfully.

Based on the implementation from libertas_tf.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Steve deRosier <steve@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/if_sdio.c