Skip to content

Commit

Permalink
can: gs_usb: add HW timestamp bits
Browse files Browse the repository at this point in the history
Link: candle-usb/candleLight_fw@44431f4
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
marckleinebudde committed Nov 26, 2021
1 parent 1bb491f commit 86f7bf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/can/usb/gs_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ struct gs_device_config {
#define GS_CAN_MODE_LOOP_BACK BIT(1)
#define GS_CAN_MODE_TRIPLE_SAMPLE BIT(2)
#define GS_CAN_MODE_ONE_SHOT BIT(3)
#define GS_CAN_MODE_HW_TIMESTAMP BIT(4)

struct gs_device_mode {
__le32 mode;
Expand Down Expand Up @@ -148,6 +149,7 @@ struct gs_host_frame {
u8 reserved;

u8 data[8];
u32 timestamp_us;
} __packed;
/* The GS USB devices make use of the same flags and masks as in
* linux/can.h and linux/can/error.h, and no additional mapping is necessary.
Expand Down

0 comments on commit 86f7bf6

Please sign in to comment.