• Rahul Rameshbabu's avatar
    ptp: idt82p33: Add .getmaxphase ptp_clock_info callback · e156e4d2
    Rahul Rameshbabu authored
    Advertise the maximum offset the .adjphase callback is capable of
    supporting in nanoseconds for IDT devices.
    
    Refactor the negation of the offset stored in the register to be after the
    boundary check of the offset value rather than before. Boundary check based
    on the intended value rather than its device-specific representation.
    Depend on ptp_clock_adjtime for handling out-of-range offsets.
    ptp_clock_adjtime returns -ERANGE instead of clamping out-of-range offsets.
    
    Cc: Richard Cochran <richardcochran@gmail.com>
    Cc: Min Li <min.li.xe@renesas.com>
    Signed-off-by: default avatarRahul Rameshbabu <rrameshbabu@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    e156e4d2
ptp_idt82p33.c 32.5 KB