eth: lan743x: reject extts for non-pci11x1x devices
Subsystems (3)
PATCH v4 1/1 eth: lan743x: reject extts for non-pci11x1x devices
Remove PTP_PF_EXTTS support for non-PCI11x1x devices since they do not support the PTP-IO Input event triggered timestamping mechanisms added
---
Changes:
========
V3 -> V4:
- Fix the Fixes tag line split
V2 -> V3:
- Correct the Fixes tag
V1 -> V2:
- Repost against net with a Fixes tag
drivers/net/ethernet/microchip/lan743x_ptp.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/net/ethernet/microchip/lan743x_ptp.c +7 -0
@@ -1049,6 +1049,10 @@ static int lan743x_ptpci_verify_pin_config(struct ptp_clock_info *ptp, enum ptp_pin_function func, unsigned int chan) { +struct lan743x_ptp *lan_ptp = + container_of(ptp, struct lan743x_ptp, ptp_clock_info); +struct lan743x_adapter *adapter = + container_of(lan_ptp, struct lan743x_adapter, ptp);int result =0 ;/* Confirm the requested function is supported. Parameter
@@ -1057,7 +1061,10 @@ static int lan743x_ptpci_verify_pin_config(struct ptp_clock_info *ptp,switch (func) {case PTP_PF_NONE :case PTP_PF_PEROUT : +break ;case PTP_PF_EXTTS : +if (!adapter->is_pci11x1x) + result =-1 ;break ;case PTP_PF_PHYSYNC :default :
Signature · 1 line
2.25.1
The 09/28/2022 14:33, Raju Lakkaraju wrote:
Hi Raju,
I think there is a 24h waiting period before sending new patches for the same series, just to give time for other people to review it.
Quoted 4 lines
Remove
PTP_PF_EXTTSsupport for non-PCI11x1x devices since they do not support the PTP-IO Input event triggered timestamping mechanisms addedFixes 60942c397af6 ("Add support for PTP-IO Event Input External Timestamp (extts)")
This still fails for 2 reasons:
1. Empty lines around fixes tag
2. The subject line is still wrong. It doesn't match the SHA.
I would do something like:
---
---
As you noticed I have skipped Jakub's reviewed-by tag because I can't find it where you get it. Because I can't see it that you received it in v2 and you already added in v3.
Quoted 48 lines
Reviewed-by Jakub Kicinski <[email protected]>Signed-off-by Raju Lakkaraju <[email protected]>---
Changes:
========
V3 -> V4:
- Fix the Fixes tag line splitV2 -> V3:
- Correct the Fixes tagV1 -> V2:
- Repost against net with a Fixes tagdrivers/net/ethernet/microchip/lan743x_ptp.c | 7 +++++++ 1 file changed, 7 insertions(+)drivers/net/ethernet/microchip/lan743x_ptp.c +7
-0@@ -1049,6 +1049,10 @@ static int lan743x_ptpci_verify_pin_config(struct ptp_clock_info *ptp, enum ptp_pin_function func, unsigned int chan) { +struct lan743x_ptp *lan_ptp = + container_of(ptp, struct lan743x_ptp, ptp_clock_info); +struct lan743x_adapter *adapter = + container_of(lan_ptp, struct lan743x_adapter, ptp);int result =0 ;/* Confirm the requested function is supported. Parameter @@ -1057,7 +1061,10 @@ static int lan743x_ptpci_verify_pin_config(struct ptp_clock_info *ptp,switch (func) {case PTP_PF_NONE :case PTP_PF_PEROUT : +break ;case PTP_PF_EXTTS : +if (!adapter->is_pci11x1x) + result =-1 ;break ;case PTP_PF_PHYSYNC :default :Signature · 1 line
2.25.1
Signature · 1 line
/Horatiu