From: Jakub Kicinski Date: Tue, 3 Apr 2012 01:40:48 +0000 (+0200) Subject: rt2800: add disabling of DMA before loading firmware X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b7e1d225f5c2d397136fd79472d32b0f87017612;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git rt2800: add disabling of DMA before loading firmware Legacy driver disables DMA before loading firmware. Signed-off-by: Jakub Kicinski Reviewed-by: Stanislaw Gruszka Acked-by: Gertjan van Wingerde Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 8aee6d4f2b91..cc6ca183f3bf 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c @@ -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. */