stmmac: fix ptp init for gmac4
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Wed, 12 Oct 2016 13:42:03 +0000 (15:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 15:00:50 +0000 (11:00 -0400)
commitbe9b3174c49109457c490a0ad8976aaeb3df5585
treea2ae8fb2d0fd383fedd1c1dd3e9c68e2d75f7956
parentd4e991313bd5e10bfa66cd280b8fce6dc3f2d897
stmmac: fix ptp init for gmac4

The gmac 4.x version has not extended descriptors
(that are available on 3.x instead of).
While initializing the PTP module, the advanced PTP was
enabled in case of extended descriptors. This cannot be
applied for 4.x version where only the hardware capability
register has to show if the feature is present.
Patch also adds some extra netdev_(debug/inof) to better
dump the configuration.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre TORGUE <alexandre.torgue@st.com>
Cc: Rayagond Kokatanur <rayagond@vayavyalabs.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c