mwifiex: add custom IE framework
[deliverable/linux.git] / drivers / net / wireless / rt2x00 / rt2800pci.c
index e499389d8cd35a7986f8deed95c041eda5285506..931331d952172ca8ba92f5b77c1814e2f613b141 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,
@@ -496,8 +506,10 @@ static int rt2800pci_enable_radio(struct rt2x00_dev *rt2x00dev)
 {
        int retval;
 
-       if (unlikely(rt2800_wait_wpdma_ready(rt2x00dev) ||
-                    rt2800pci_init_queues(rt2x00dev)))
+       /* Wait for DMA, ignore error until we initialize queues. */
+       rt2800_wait_wpdma_ready(rt2x00dev);
+
+       if (unlikely(rt2800pci_init_queues(rt2x00dev)))
                return -EIO;
 
        retval = rt2800_enable_radio(rt2x00dev);
@@ -1176,7 +1188,9 @@ static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = {
        { PCI_DEVICE(0x1814, 0x3593) },
 #endif
 #ifdef CONFIG_RT2800PCI_RT53XX
+       { PCI_DEVICE(0x1814, 0x5362) },
        { PCI_DEVICE(0x1814, 0x5390) },
+       { PCI_DEVICE(0x1814, 0x5392) },
        { PCI_DEVICE(0x1814, 0x539a) },
        { PCI_DEVICE(0x1814, 0x539f) },
 #endif
This page took 0.043323 seconds and 5 git commands to generate.