]> git.baikalelectronics.ru Git - kernel.git/commit
net: qcom/emac: specify the correct DMA mask
authorTimur Tabi <timur@codeaurora.org>
Wed, 11 Oct 2017 19:52:23 +0000 (14:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Oct 2017 23:01:56 +0000 (16:01 -0700)
commit5c2c9ff0dc5c506ff646103b76d3a243ec2b3c6f
treecd2ead3cae16b5f09e9e8c4a0389607002f3b1ae
parent919e1ee1f00d00fdc93e4bc4b35e7e3f8a12e959
net: qcom/emac: specify the correct DMA mask

The 64/32-bit DMA mask hackery in the EMAC driver is not actually necessary,
and is technically not accurate.  The EMAC hardware is limted to a 45-bit
DMA address.  Although no EMAC-enabled system can have that much DDR,
an IOMMU could possible provide a larger address.  Rather than play games
with the DMA mappings, the driver should provide a correct value and
trust the DMA/IOMMU layers to do the right thing.

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