]> git.baikalelectronics.ru Git - kernel.git/commit
testptp: set pin function before other requests
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 5 Jan 2022 15:25:06 +0000 (16:25 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Jan 2022 01:08:58 +0000 (17:08 -0800)
commit7989685b2fc0705748154564c1d9e712a2583105
treea6775c7238f261b55f9cee12bf2eee2d8062261f
parent1d4afab1c7e795c25dd52ea32762d493ff66ddac
testptp: set pin function before other requests

When the -L option of the testptp utility is specified with other
options (e.g. -p to enable PPS output), the user probably wants to
apply it to the pin configured by the -L option.

Reorder the code to set the pin function before other function requests
to avoid confusing users.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Link: https://lore.kernel.org/r/20220105152506.3256026-1-mlichvar@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/ptp/testptp.c