net: ethernet: lantiq_etop: Fix compilation error
authorAleksander Jan Bajkowski <olek2@wp.pl>
Tue, 9 Nov 2021 22:23:54 +0000 (23:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Nov 2021 14:39:54 +0000 (14:39 +0000)
This fixes the error detected when compiling the driver.

Fixes: 14d4e308e0aa ("net: lantiq: configure the burst length in ethernet drivers")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/lantiq_etop.c

index 2258e3f19161073e2d75c4fa4ec4a3f2af90de27..6433c909c6b26d3c0c19267312f2c8f95ba5f8a7 100644 (file)
@@ -262,7 +262,7 @@ ltq_etop_hw_init(struct net_device *dev)
        /* enable crc generation */
        ltq_etop_w32(PPE32_CGEN, LQ_PPE32_ENET_MAC_CFG);
 
-       ltq_dma_init_port(DMA_PORT_ETOP, priv->tx_burst_len, rx_burst_len);
+       ltq_dma_init_port(DMA_PORT_ETOP, priv->tx_burst_len, priv->rx_burst_len);
 
        for (i = 0; i < MAX_DMA_CHAN; i++) {
                int irq = LTQ_DMA_CH0_INT + i;