diff options
author | Jakub Kicinski <kubakici@wp.pl> | 2012-04-02 21:40:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-13 14:32:48 -0400 |
commit | 3a4b43fde103da510d8962a073bb748706f426bd (patch) | |
tree | 7bc1f284d7b29d24a5c4c31f34a85b7b7c4d0c59 /drivers/net/wireless/rt2x00 | |
parent | 52b8243b75598c341143f67c56b0104938487231 (diff) |
rt2800: zero registers of unused TX rings
This is needed if we take over after drivers which use those.
Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Reviewed-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800pci.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index 4366c23672f0..f9f36cf3d14e 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c | |||
@@ -393,6 +393,16 @@ static int rt2800pci_init_queues(struct rt2x00_dev *rt2x00dev) | |||
393 | rt2x00pci_register_write(rt2x00dev, TX_CTX_IDX3, 0); | 393 | rt2x00pci_register_write(rt2x00dev, TX_CTX_IDX3, 0); |
394 | rt2x00pci_register_write(rt2x00dev, TX_DTX_IDX3, 0); | 394 | rt2x00pci_register_write(rt2x00dev, TX_DTX_IDX3, 0); |
395 | 395 | ||
396 | rt2x00pci_register_write(rt2x00dev, TX_BASE_PTR4, 0); | ||
397 | rt2x00pci_register_write(rt2x00dev, TX_MAX_CNT4, 0); | ||
398 | rt2x00pci_register_write(rt2x00dev, TX_CTX_IDX4, 0); | ||
399 | rt2x00pci_register_write(rt2x00dev, TX_DTX_IDX4, 0); | ||
400 | |||
401 | rt2x00pci_register_write(rt2x00dev, TX_BASE_PTR5, 0); | ||
402 | rt2x00pci_register_write(rt2x00dev, TX_MAX_CNT5, 0); | ||
403 | rt2x00pci_register_write(rt2x00dev, TX_CTX_IDX5, 0); | ||
404 | rt2x00pci_register_write(rt2x00dev, TX_DTX_IDX5, 0); | ||
405 | |||
396 | entry_priv = rt2x00dev->rx->entries[0].priv_data; | 406 | entry_priv = rt2x00dev->rx->entries[0].priv_data; |
397 | rt2x00pci_register_write(rt2x00dev, RX_BASE_PTR, entry_priv->desc_dma); | 407 | rt2x00pci_register_write(rt2x00dev, RX_BASE_PTR, entry_priv->desc_dma); |
398 | rt2x00pci_register_write(rt2x00dev, RX_MAX_CNT, | 408 | rt2x00pci_register_write(rt2x00dev, RX_MAX_CNT, |