rt2800: zero registers of unused TX rings
authorJakub Kicinski <kubakici@wp.pl>
Tue, 3 Apr 2012 01:40:50 +0000 (03:40 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 13 Apr 2012 18:32:48 +0000 (14:32 -0400)
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>
drivers/net/wireless/rt2x00/rt2800pci.c

index 4366c23672f020eb313502e71802103c4e94af0e..f9f36cf3d14efb6aef47549a44801ebe5fc74682 100644 (file)
@@ -393,6 +393,16 @@ static int rt2800pci_init_queues(struct rt2x00_dev *rt2x00dev)
        rt2x00pci_register_write(rt2x00dev, TX_CTX_IDX3, 0);
        rt2x00pci_register_write(rt2x00dev, TX_DTX_IDX3, 0);
 
+       rt2x00pci_register_write(rt2x00dev, TX_BASE_PTR4, 0);
+       rt2x00pci_register_write(rt2x00dev, TX_MAX_CNT4, 0);
+       rt2x00pci_register_write(rt2x00dev, TX_CTX_IDX4, 0);
+       rt2x00pci_register_write(rt2x00dev, TX_DTX_IDX4, 0);
+
+       rt2x00pci_register_write(rt2x00dev, TX_BASE_PTR5, 0);
+       rt2x00pci_register_write(rt2x00dev, TX_MAX_CNT5, 0);
+       rt2x00pci_register_write(rt2x00dev, TX_CTX_IDX5, 0);
+       rt2x00pci_register_write(rt2x00dev, TX_DTX_IDX5, 0);
+
        entry_priv = rt2x00dev->rx->entries[0].priv_data;
        rt2x00pci_register_write(rt2x00dev, RX_BASE_PTR, entry_priv->desc_dma);
        rt2x00pci_register_write(rt2x00dev, RX_MAX_CNT,