Re: [PATCH v4 2/9] ptp: Add generic ptp message type function

2020-08-18 Thread Kurt Kanzenbach
On Tue Aug 18 2020, Russell King wrote: > On Tue, Aug 18, 2020 at 12:32:44PM +0200, Kurt Kanzenbach wrote: >> The message type is located at different offsets within the ptp header >> depending >> on the ptp version (v1 or v2). Therefore, drivers which also deal with ptp v1 >> have some code for i

Re: [PATCH v4 2/9] ptp: Add generic ptp message type function

2020-08-18 Thread Russell King - ARM Linux admin
On Tue, Aug 18, 2020 at 12:32:44PM +0200, Kurt Kanzenbach wrote: > The message type is located at different offsets within the ptp header > depending > on the ptp version (v1 or v2). Therefore, drivers which also deal with ptp v1 > have some code for it. > > Extract this into a helper function fo

[PATCH v4 2/9] ptp: Add generic ptp message type function

2020-08-18 Thread Kurt Kanzenbach
The message type is located at different offsets within the ptp header depending on the ptp version (v1 or v2). Therefore, drivers which also deal with ptp v1 have some code for it. Extract this into a helper function for drivers to be used. Signed-off-by: Kurt Kanzenbach Reviewed-by: Richard Co