Skip to content
Commit 7d307748 authored by Johannes Zink's avatar Johannes Zink Committed by Paolo Abeni
Browse files

net: stmmac: ptp: stmmac_enable(): move change of plat->flags into mutex



This is a preparation patch. The next patch will check if an external TS
is active and return with an error. So we have to move the change of the
plat->flags that tracks if external timestamping is enabled after that
check.

Prepare for this change and move the plat->flags change into the mutex
and the if (on).

Signed-off-by: default avatarJohannes Zink <j.zink@pengutronix.de>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 1dbfe73b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment