aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2009-03-25 01:30:15 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-04-22 16:54:26 -0400
commitf74d0f5cacb7023422098dd5c98e3ce06787ba56 (patch)
tree00a035b35209c643dc827970b7798b36d941f0c0 /drivers/net
parent4cb9be7ab47820a1fa747569f5f035a5f628c91b (diff)
p54spi: mask value read from SPI_ADRS_DMA_WRITE_CTRL in p54spi_wait_bit
Mask value read from SPI_ADRS_DMA_WRITE_CTRL in p54spi_wait_bit. Without this, 'fw_upload not allowed to DMA write' is observed at both N800 and N810. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Acked-by: Christian Lamparter <chunkeey@web.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/p54/p54spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c
index d1fe577de3d4..55402729d21b 100644
--- a/drivers/net/wireless/p54/p54spi.c
+++ b/drivers/net/wireless/p54/p54spi.c
@@ -171,7 +171,7 @@ static int p54spi_wait_bit(struct p54s_priv *priv, u16 reg, __le32 bits)
171 171
172 for (i = 0; i < 2000; i++) { 172 for (i = 0; i < 2000; i++) {
173 p54spi_spi_read(priv, reg, &buffer, sizeof(buffer)); 173 p54spi_spi_read(priv, reg, &buffer, sizeof(buffer));
174 if (buffer == bits) 174 if ((buffer & bits) == bits)
175 return 1; 175 return 1;
176 176
177 msleep(1); 177 msleep(1);