[PATCH v5] sun4i-emac.c: add dma support
Jakub Kicinski
kuba at kernel.org
Tue Dec 28 16:48:17 PST 2021
On Tue, 28 Dec 2021 19:42:04 +0800 conleylee at foxmail.com wrote:
> +static void free_emac_dma_req(struct emac_dma_req *req)
emac_free_dma_req
> +prepare_err:
> + dma_unmap_single(db->dev, rxbuf, count, DMA_FROM_DEVICE);
> + return ret;
incorrect whitespace here
> @@ -599,12 +721,25 @@ static void emac_rx(struct net_device *dev)
> if (!skb)
> continue;
> skb_reserve(skb, 2);
> - rdptr = skb_put(skb, rxlen - 4);
>
> /* Read received packet from RX SRAM */
> if (netif_msg_rx_status(db))
> dev_dbg(db->dev, "RxLen %x\n", rxlen);
>
> + rdptr = skb_put(skb, rxlen - 4);
no reason to move this line
More information about the linux-arm-kernel
mailing list