Skip to content
Commit 016e3ca9 authored by Radu Bulie's avatar Radu Bulie Committed by Greg Kroah-Hartman
Browse files

dpaa2-eth: Initialize mutex used in one step timestamping path

commit 07dd4485 upstream.

1588 Single Step Timestamping code path uses a mutex to
enforce atomicity for two events:
- update of ptp single step register
- transmit ptp event packet

Before this patch the mutex was not initialized. This
caused unexpected crashes in the Tx function.

Fixes: c5521189

 ("dpaa2-eth: support PTP Sync packet one-step timestamping")
Signed-off-by: default avatarRadu Bulie <radu-andrei.bulie@nxp.com>
Reviewed-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 50f3b00d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment