|
@@ -86,17 +86,12 @@ int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
break;
|
|
break;
|
|
case PTP_PF_PHYSYNC:
|
|
case PTP_PF_PHYSYNC:
|
|
- pr_err("sorry, cannot reassign the calibration pin\n");
|
|
|
|
- return -EINVAL;
|
|
|
|
|
|
+ if (chan != 0)
|
|
|
|
+ return -EINVAL;
|
|
default:
|
|
default:
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
- if (pin2->func == PTP_PF_PHYSYNC) {
|
|
|
|
- pr_err("sorry, cannot reprogram the calibration pin\n");
|
|
|
|
- return -EINVAL;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (info->verify(info, pin, func, chan)) {
|
|
if (info->verify(info, pin, func, chan)) {
|
|
pr_err("driver cannot use function %u on pin %u\n", func, chan);
|
|
pr_err("driver cannot use function %u on pin %u\n", func, chan);
|
|
return -EOPNOTSUPP;
|
|
return -EOPNOTSUPP;
|