From: Stanislaw Gruszka Date: Fri, 18 Nov 2016 09:43:56 +0000 (+0100) Subject: rt2800: do not overwrite WPDMA_GLO_CFG_WP_DMA_BURST_SIZE X-Git-Tag: v4.14-rc1~1973^2~118^2~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4c449b1b8030fbc1635b683186c7454018dcb63;p=platform%2Fkernel%2Flinux-rpi3.git rt2800: do not overwrite WPDMA_GLO_CFG_WP_DMA_BURST_SIZE We already initlized WPDMA_GLO_CFG_WP_DMA_BURST_SIZE to 3 on rt2800_init_registers() for USB devices. For PCI devices we will use HW default setting, which is 2, so patch does not change behaviour on PCI devices. Signed-off-by: Stanislaw Gruszka Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c index 0051aef..fcee95d 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -6756,7 +6756,6 @@ int rt2800_enable_radio(struct rt2x00_dev *rt2x00dev) rt2800_register_read(rt2x00dev, WPDMA_GLO_CFG, ®); rt2x00_set_field32(®, WPDMA_GLO_CFG_ENABLE_TX_DMA, 1); rt2x00_set_field32(®, WPDMA_GLO_CFG_ENABLE_RX_DMA, 1); - rt2x00_set_field32(®, WPDMA_GLO_CFG_WP_DMA_BURST_SIZE, 2); rt2x00_set_field32(®, WPDMA_GLO_CFG_TX_WRITEBACK_DONE, 1); rt2800_register_write(rt2x00dev, WPDMA_GLO_CFG, reg);