rt2800: add disabling of DMA before loading firmware
authorJakub Kicinski <kubakici@wp.pl>
Tue, 3 Apr 2012 01:40:48 +0000 (03:40 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 13 Apr 2012 18:32:48 +0000 (14:32 -0400)
Legacy driver disables DMA before loading firmware.

Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
Reviewed-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c

index 8aee6d4f2b91de9e1e88988c92df5cb91b147d52..cc6ca183f3bf4c3114336e26de034ec45f541c51 100644 (file)
@@ -426,6 +426,8 @@ int rt2800_load_firmware(struct rt2x00_dev *rt2x00dev,
                rt2800_register_write(rt2x00dev, PWR_PIN_CFG, 0x00000002);
        }
 
+       rt2800_disable_wpdma(rt2x00dev);
+
        /*
         * Write firmware to the device.
         */