]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d2686e4ddc623a159a60ee793cd854f6be93bdc
treee6e6743929ab64162ece4ed88f28f958bd035665
parentbb4afb2a73f1f5df4dead92913b3cb43aaf1d850
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