On 5/8/2021 11:52 AM, Richard Cochran wrote: > On Sat, May 08, 2021 at 12:13:39AM +0000, Gao Meitao(高玫涛) wrote: >> MY HW doesn't support Sync and Delay_req at the same time. But it could >> be changed with setting ptp event id by register. >> Does it help ? > > Unfortunately it does not help. The kernel device driver alone has > access to the register, but the driver cannot determine which port > role is active, or when the role changes. > > So your device cannot work with the standardized Linux API. >
Couldn't ptp4l itself send a new "request timestamp mode" for selecting the proper Rx timestamp mode when it is in the relevant mode? That wouldn't even require kernel changes. Just ptp4l having to understand that the device is limited and only does one at a time. Probably not really worth the effort... > Sorry, > Richard > > > > _______________________________________________ > Linuxptp-users mailing list > Linuxptp-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linuxptp-users > _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users