OSDN Git Service

net: qcom/emac: extend DMA mask to 46bits
authorWang Dongsheng <dongsheng.wang@hxt-semitech.com>
Tue, 23 Jan 2018 04:25:06 +0000 (20:25 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jan 2018 21:32:29 +0000 (16:32 -0500)
commitdf262dbdcc31f5a89b39ff86a617f8e72c7949dd
treeb882f651db9824dbf34d2c447f946d9c2857c890
parent5c38bd1b82e1f76f9fa96c1e61c9897cabf1ce45
net: qcom/emac: extend DMA mask to 46bits

Bit TPD3[31] is used as a timestamp bit if PTP is enabled, but
it's used as an address bit if PTP is disabled.  Since PTP isn't
supported by the driver, we can extend the DMA address to 46 bits.

Signed-off-by: Wang Dongsheng <dongsheng.wang@hxt-semitech.com>
Acked-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac-mac.h
drivers/net/ethernet/qualcomm/emac/emac.c