mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-07 10:29:52 +00:00
eth: lan743x: reject extts for non-pci11x1x devices
[ Upstream commitcb4b12071a] Remove PTP_PF_EXTTS support for non-PCI11x1x devices since they do not support the PTP-IO Input event triggered timestamping mechanisms added Fixes:60942c397a("net: lan743x: Add support for PTP-IO Event Input External Timestamp (extts)") Signed-off-by: Raju Lakkaraju <Raju.Lakkaraju@microchip.com> Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
49c1729b55
commit
d06ee1cbff
@@ -1049,6 +1049,10 @@ static int lan743x_ptpci_verify_pin_config(struct ptp_clock_info *ptp,
|
|||||||
enum ptp_pin_function func,
|
enum ptp_pin_function func,
|
||||||
unsigned int chan)
|
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;
|
int result = 0;
|
||||||
|
|
||||||
/* Confirm the requested function is supported. Parameter
|
/* 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) {
|
switch (func) {
|
||||||
case PTP_PF_NONE:
|
case PTP_PF_NONE:
|
||||||
case PTP_PF_PEROUT:
|
case PTP_PF_PEROUT:
|
||||||
|
break;
|
||||||
case PTP_PF_EXTTS:
|
case PTP_PF_EXTTS:
|
||||||
|
if (!adapter->is_pci11x1x)
|
||||||
|
result = -1;
|
||||||
break;
|
break;
|
||||||
case PTP_PF_PHYSYNC:
|
case PTP_PF_PHYSYNC:
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user