diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/phy/dp83640.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/phy/dp83640.c b/drivers/net/phy/dp83640.c index eabecff9b740..ab4811242458 100644 --- a/drivers/net/phy/dp83640.c +++ b/drivers/net/phy/dp83640.c | |||
@@ -510,6 +510,16 @@ static int ptp_dp83640_enable(struct ptp_clock_info *ptp, | |||
510 | static int ptp_dp83640_verify(struct ptp_clock_info *ptp, unsigned int pin, | 510 | static int ptp_dp83640_verify(struct ptp_clock_info *ptp, unsigned int pin, |
511 | enum ptp_pin_function func, unsigned int chan) | 511 | enum ptp_pin_function func, unsigned int chan) |
512 | { | 512 | { |
513 | struct dp83640_clock *clock = | ||
514 | container_of(ptp, struct dp83640_clock, caps); | ||
515 | |||
516 | if (clock->caps.pin_config[pin].func == PTP_PF_PHYSYNC && | ||
517 | !list_empty(&clock->phylist)) | ||
518 | return 1; | ||
519 | |||
520 | if (func == PTP_PF_PHYSYNC) | ||
521 | return 1; | ||
522 | |||
513 | return 0; | 523 | return 0; |
514 | } | 524 | } |
515 | 525 | ||