net: stmmac: ptp: stmmac_enable(): move change of plat->flags into mutex
authorJohannes Zink <j.zink@pengutronix.de>
Wed, 18 Oct 2023 07:09:56 +0000 (09:09 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 19 Oct 2023 11:01:33 +0000 (13:01 +0200)
commit7d3077482578fcc6eef6faeef7b8174fd32b7619
tree77545588a0efce69eca32dbf5f151fbeb507dcc3
parent1dbfe73bd648bdc3a2d8c9e5b23ae70e3333b592
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: Johannes Zink <j.zink@pengutronix.de>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c