Re: [PATCH net v2] net: bcmgenet: Utilize correct struct device for all DMA operations

2016-12-02 Thread David Miller
From: Florian Fainelli Date: Thu, 1 Dec 2016 09:45:45 -0800 > From: Florian Fainelli > > __bcmgenet_tx_reclaim() and bcmgenet_free_rx_buffers() are not using the > same struct device during unmap that was used for the map operation, > which makes DMA-API debugging warn about it. Fix this by al

[PATCH net v2] net: bcmgenet: Utilize correct struct device for all DMA operations

2016-12-01 Thread Florian Fainelli
From: Florian Fainelli __bcmgenet_tx_reclaim() and bcmgenet_free_rx_buffers() are not using the same struct device during unmap that was used for the map operation, which makes DMA-API debugging warn about it. Fix this by always using &priv->pdev->dev throughout the driver, using an identical dev