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)
commit2c7e57981f24e9f8b732ecf1c01e16111d21b7a5
treed62ba6cc2f8d5449a8eabcaec2fb40c4f91033d8
parentbb9f8692f5043efef0dcef048cdd1db68299c2cb
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