]> git.baikalelectronics.ru Git - kernel.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)
commita0270adf2349b314e75f714ef930ac4c59553249
tree6ef7cf2f32e0352242fb06fad132722546eb1980
parent17b2a086f9903a155505787c0c7034c2477a4462
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