stmmac: Fix incorrect spinlock release and PTP cap detection.
authorVince Bridgers <vbridgers2013@gmail.com>
Fri, 20 Dec 2013 17:19:34 +0000 (11:19 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Dec 2013 03:37:00 +0000 (22:37 -0500)
commit7cd013992335b1c5156059248ee765fb3b14d154
treee6e6743929ab64162ece4ed88f28f958bd035665
parent33c133cc7598e60976a069344910d63e56cc4401
stmmac: Fix incorrect spinlock release and PTP cap detection.

This patch corrects a problem in stmmac_ptp.c, functions
stmmac_adjust_time and stmmac_adjust_freq where the incorrect spinlocks
were released. This patch also addresses a problem in stmmac_main,
function stmmac_init_ptp where the capability detection for
advanced timestamping was masked by message masking.

This patch was touch tested using linuxptp, and runs without the previously
observed instabilities. More extensive testing is ongoing.

Vince

Signed-off-by: Vince Bridgers <vbridgers2013@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c