]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/net/ethernet/qualcomm/emac/emac-mac.c
net: qcom/emac: enforce DMA address restrictions
authorTimur Tabi <timur@codeaurora.org>
Wed, 11 Oct 2017 19:52:25 +0000 (14:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Oct 2017 23:01:56 +0000 (16:01 -0700)
commitdf1ec1b9d0df57e96011f175418dc95b1af46821
tree6517b0971be884eaf91b521cbfbb95bd9969f498
parent3958ffcd85060967a9c70bb92b21741073578d66
net: qcom/emac: enforce DMA address restrictions

The EMAC has a restriction that the upper 32 bits of the base addresses
for the RFD and RRD rings must be the same.  The ensure that restriction,
we allocate twice the space for the RRD and locate it at an appropriate
address.

We also re-arrange the allocations so that invalid addresses are even
less likely.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac-mac.c