diff --git a/tools/testing/selftests/ptp/testptp.c b/tools/testing/selftests/ptp/testptp.c index d78d52f028ab..84e86898f4b4 100644 --- a/tools/testing/selftests/ptp/testptp.c +++ b/tools/testing/selftests/ptp/testptp.c @@ -121,7 +121,6 @@ static void usage(char *progname) " -d name device to open\n" " -e val read 'val' external time stamp events\n" " -f val adjust the ptp clock frequency by 'val' ppb\n" - " -F chan Enable single channel mask and keep device open for debugfs verification.\n" " -g get the ptp clock time\n" " -h prints this message\n" " -i val index for event/trigger\n" @@ -190,7 +189,6 @@ int main(int argc, char *argv[]) int seconds = 0; int readonly = 0; int settime = 0; - int channel = -1; int64_t t1, t2, tp; int64_t interval, offset; @@ -200,7 +198,7 @@ int main(int argc, char *argv[]) progname = strrchr(argv[0], '/'); progname = progname ? 1+progname : argv[0]; - while (EOF != (c = getopt(argc, argv, "cd:e:f:F:ghH:i:k:lL:n:o:p:P:rsSt:T:w:x:Xz"))) { + while (EOF != (c = getopt(argc, argv, "cd:e:f:ghH:i:k:lL:n:o:p:P:rsSt:T:w:x:Xz"))) { switch (c) { case 'c': capabilities = 1; @@ -214,9 +212,6 @@ int main(int argc, char *argv[]) case 'f': adjfreq = atoi(optarg); break; - case 'F': - channel = atoi(optarg); - break; case 'g': gettime = 1; break; @@ -616,18 +611,6 @@ int main(int argc, char *argv[]) free(xts); } - if (channel >= 0) { - if (ioctl(fd, PTP_MASK_CLEAR_ALL)) { - perror("PTP_MASK_CLEAR_ALL"); - } else if (ioctl(fd, PTP_MASK_EN_SINGLE, (unsigned int *)&channel)) { - perror("PTP_MASK_EN_SINGLE"); - } else { - printf("Channel %d exclusively enabled. Check on debugfs.\n", channel); - printf("Press any key to continue\n."); - getchar(); - } - } - close(fd); return 0; }