Re: [PATCH v2 net] net: fec: fix hardware time stamping by external devices

From: Sergey Organov
Date: Tue Jul 14 2020 - 10:27:22 EST


Richard Cochran <richardcochran@xxxxxxxxx> writes:

> On Sat, Jul 11, 2020 at 03:08:42PM +0300, Sergey Organov wrote:
>> Fix support for external PTP-aware devices such as DSA or PTP PHY:
>>
>> Make sure we never time stamp tx packets when hardware time stamping
>> is disabled.
>>
>> Check for PTP PHY being in use and then pass ioctls related to time
>> stamping of Ethernet packets to the PTP PHY rather than handle them
>> ourselves. In addition, disable our own hardware time stamping in this
>> case.
>>
>> Fixes: 6605b73 ("FEC: Add time stamping code and a PTP hardware clock")
>> Signed-off-by: Sergey Organov <sorganov@xxxxxxxxx>
>> ---
>>
>> v2:
>> - Extracted from larger patch series
>> - Description/comments updated according to discussions
>> - Added Fixes: tag
>
> Acked-by: Richard Cochran <richardcochran@xxxxxxxxx>

Thanks for reviewing!

-- Sergey