Commit 76868642 authored by Wojtek Wasko's avatar Wojtek Wasko Committed by David S. Miller
Browse files

testptp: Add option to open PHC in readonly mode



PTP Hardware Clocks no longer require WRITE permission to perform
readonly operations, such as listing device capabilities or listening to
EXTTS events once they have been enabled by a process with WRITE
permissions.

Add '-r' option to testptp to open the PHC in readonly mode instead of
the default read-write mode. Skip enabling EXTTS if readonly mode is
requested.

Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
Reviewed-by: default avatarVadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: default avatarWojtek Wasko <wwasko@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b4e53b15
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment