mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
dwc_eth_qos: use GFP_KERNEL in dma_alloc_coherent()
Since we are in non-atomic context here we can pass GFP_KERNEL to dma_alloc_coherent(). This enables use of the CMA. Signed-off-by: Rabin Vincent <[email protected]> Signed-off-by: Lars Persson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
d4dc35f26e
commit
e8b0c32eae
1 changed files with 2 additions and 2 deletions
|
|
@ -1113,7 +1113,7 @@ static int dwceqos_descriptor_init(struct net_local *lp)
|
|||
/* Allocate DMA descriptors */
|
||||
size = DWCEQOS_RX_DCNT * sizeof(struct dwceqos_dma_desc);
|
||||
lp->rx_descs = dma_alloc_coherent(lp->ndev->dev.parent, size,
|
||||
&lp->rx_descs_addr, 0);
|
||||
&lp->rx_descs_addr, GFP_KERNEL);
|
||||
if (!lp->rx_descs)
|
||||
goto err_out;
|
||||
lp->rx_descs_tail_addr = lp->rx_descs_addr +
|
||||
|
|
@ -1121,7 +1121,7 @@ static int dwceqos_descriptor_init(struct net_local *lp)
|
|||
|
||||
size = DWCEQOS_TX_DCNT * sizeof(struct dwceqos_dma_desc);
|
||||
lp->tx_descs = dma_alloc_coherent(lp->ndev->dev.parent, size,
|
||||
&lp->tx_descs_addr, 0);
|
||||
&lp->tx_descs_addr, GFP_KERNEL);
|
||||
if (!lp->tx_descs)
|
||||
goto err_out;
|
||||
lp->tx_descs_tail_addr = lp->tx_descs_addr +
|
||||
|
|
|
|||
Loading…
Reference in a new issue