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

2020-07-16 Thread Sergey Organov
Jakub Kicinski writes: > On Thu, 16 Jul 2020 23:38:13 +0300 Sergey Organov wrote: >> > Applied, and added to the stable queue, thanks! >> >> Thanks, and I've also got a no-brainer patch that lets this bug fix >> compile as-is with older kernels, where there were no phy_has_hwtstamp() >> functi

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

2020-07-16 Thread Jakub Kicinski
On Thu, 16 Jul 2020 23:38:13 +0300 Sergey Organov wrote: > > Applied, and added to the stable queue, thanks! > > Thanks, and I've also got a no-brainer patch that lets this bug fix > compile as-is with older kernels, where there were no phy_has_hwtstamp() > function. Dunno how to properly handle

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

2020-07-16 Thread Sergey Organov
Jakub Kicinski writes: > On Tue, 14 Jul 2020 19:28:02 +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 ioc

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

2020-07-16 Thread Jakub Kicinski
On Tue, 14 Jul 2020 19:28:02 +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

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

2020-07-14 Thread Sergey Organov
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. I