OSDN Git Service

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)
commitd7e6b347560d1824d7bccfa307ad34bd3f133706
treecd2ead3cae16b5f09e9e8c4a0389607002f3b1ae
parentc7c64bca62f35351cf033a1dcea05cba522200a2
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