aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorMartin Whitaker <[email protected]>2024-08-17 10:41:41 +0100
committerJakub Kicinski <[email protected]>2024-08-20 15:53:56 -0700
commit6efea5135417ae8194485d1d05ea79a21cf1a11c (patch)
tree884c0357982f5e03deeb425fbfcfe084289d35e3 /lib/crypto/mpi/mpi-inline.h
parent8aba27c4a5020abdf60149239198297f88338a8d (diff)
net: dsa: microchip: fix PTP config failure when using multiple ports
When performing the port_hwtstamp_set operation, ptp_schedule_worker() will be called if hardware timestamoing is enabled on any of the ports. When using multiple ports for PTP, port_hwtstamp_set is executed for each port. When called for the first time ptp_schedule_worker() returns 0. On subsequent calls it returns 1, indicating the worker is already scheduled. Currently the ksz driver treats 1 as an error and fails to complete the port_hwtstamp_set operation, thus leaving the timestamping configuration for those ports unchanged. This patch fixes this by ignoring the ptp_schedule_worker() return value. Cc: [email protected] Link: https://lore.kernel.org/[email protected] Fixes: bb01ad30570b0 ("net: dsa: microchip: ptp: manipulating absolute time using ptp hw clock") Signed-off-by: Martin Whitaker <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Acked-by: Arun Ramadoss <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions