]> git.baikalelectronics.ru Git - kernel.git/commit
libertas: fix IEEE PS mode in GSPI driver
authorAndrey Yurovsky <andrey@cozybit.com>
Fri, 12 Jun 2009 19:45:36 +0000 (12:45 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Jun 2009 19:05:51 +0000 (15:05 -0400)
commit791635e55944ba9c00f32c8e07d6ea0b35491ae6
treed715fc68a73b3ef8cf697d4cce8b5f790f513260
parent055c18bd1a0eb22d6194017b4dabcd5daa596023
libertas: fix IEEE PS mode in GSPI driver

The card firmware does not set the Command Download Ready interrupt bit
when IEEE PS mode is enabled, preventing the driver from sending
commands (such as the command to exit IEEE PS mode) since there is no
indication that the card is ready to accept commands.

This patch works around the problem by using the the TX Download Ready
bit in place of the Command Download Ready Bit while in IEEE PS mode.
TX Download Ready is set in IEEE PS mode.

Signed-off-by: Andrey Yurovsky <andrey@cozybit.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/if_spi.c