1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/dsa/microchip
Martin Whitaker 6efea51354 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: stable@vger.kernel.org
Link: https://lore.kernel.org/7aae307a-35ca-4209-a850-7b2749d40f90@martin-whitaker.me.uk
Fixes: bb01ad3057 ("net: dsa: microchip: ptp: manipulating absolute time using ptp hw clock")
Signed-off-by: Martin Whitaker <foss@martin-whitaker.me.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Link: https://patch.msgid.link/20240817094141.3332-1-foss@martin-whitaker.me.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-08-20 15:53:56 -07:00
..
Kconfig net: dsa: microchip: add support for different DCB app configurations 2024-05-08 10:35:10 +01:00
ksz8.h net: dsa: microchip: dcb: add special handling for KSZ88X3 family 2024-05-08 10:35:10 +01:00
ksz8795.c net: dsa: microchip: let DCB code do PCP and DSCP policy configuration 2024-05-08 10:35:10 +01:00
ksz8795_reg.h net: dsa: microchip: add multi queue support for KSZ88X3 variants 2024-05-08 10:35:10 +01:00
ksz8863_smi.c net: dsa: Explicitly include correct DT includes 2023-07-26 21:54:16 -07:00
ksz9477.c net: dsa: microchip: monitor potential faults in half-duplex mode 2024-06-23 10:06:58 +01:00
ksz9477.h net: dsa: microchip: monitor potential faults in half-duplex mode 2024-06-23 10:06:58 +01:00
ksz9477_acl.c net: dsa: microchip: Fix uninitialized var in ksz9477_acl_move_entries() 2023-10-10 11:12:01 +02:00
ksz9477_i2c.c net: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-06-26 07:28:08 -07:00
ksz9477_reg.h net: dsa: microchip: monitor potential faults in half-duplex mode 2024-06-23 10:06:58 +01:00
ksz9477_tc_flower.c net: dsa: microchip: ksz9477: flower: validate control flags 2024-04-15 10:33:14 +01:00
ksz_common.c net: dsa: microchip: disable EEE for KSZ8567/KSZ9567/KSZ9896/KSZ9897. 2024-08-08 09:01:31 -07:00
ksz_common.h net: dsa: microchip: lan9371/2: update MAC capabilities for port 4 2024-07-08 13:41:56 +01:00
ksz_dcb.c net: dsa: microchip: Correct initialization order for KSZ88x3 ports 2024-05-17 12:25:22 -07:00
ksz_dcb.h net: dsa: microchip: add support DSCP priority mapping 2024-05-08 10:35:11 +01:00
ksz_ptp.c net: dsa: microchip: fix PTP config failure when using multiple ports 2024-08-20 15:53:56 -07:00
ksz_ptp.h net: Add struct kernel_ethtool_ts_info 2024-07-15 08:02:26 -07:00
ksz_ptp_reg.h net: dsa: microchip: ptp: lan937x: Enable periodic output in LED pins 2023-01-13 08:40:41 +00:00
ksz_spi.c net: dsa: microchip: drop unneeded MODULE_ALIAS 2024-04-16 17:13:15 -07:00
lan937x.h net: dsa: microchip: add support for credit based shaper 2023-01-23 22:12:35 -08:00
lan937x_main.c net: dsa: microchip: lan9371/2: update MAC capabilities for port 4 2024-07-08 13:41:56 +01:00
lan937x_reg.h net: dsa: microchip: lan937x: disable VPHY support 2024-07-03 09:13:39 +01:00
Makefile net: dsa: microchip: add support for different DCB app configurations 2024-05-08 10:35:10 +01:00