]> git.baikalelectronics.ru Git - kernel.git/commit
libertas: read SD8688 firmware status from new register
authorBing Zhao <bzhao@marvell.com>
Thu, 21 May 2009 18:32:34 +0000 (11:32 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 22 May 2009 18:06:02 +0000 (14:06 -0400)
commitb945563f50ce818482f6282209705b7456880684
treed62ba6cc2f8d5449a8eabcaec2fb40c4f91033d8
parent7a56b9fd8872404a364e2ede3ed67387785f8df3
libertas: read SD8688 firmware status from new register

The scratch pad register is used to store firmware status after
firmware is downloaded and initialized. After firmware status is
verified OK, the same register is used to store RX packet length.
Hence the firmware status code is no longer valid afterwards.

SD8688 firmware introduces a new register for firmware status
which will never be overwritten.

Also add scratch_reg variable to if_sdio_card structure and
initialize it based on the model of the card during probe.

Signed-off-by: Bing Zhao <bzhao@marvell.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/if_sdio.c
drivers/net/wireless/libertas/if_sdio.h