]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita97f52792e397940f894825f154e5d01af619413
treea2ae8fb2d0fd383fedd1c1dd3e9c68e2d75f7956
parent14038f4d34346c2174b90252f428aea572419154
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