Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
can: gs_usb: gs_usb_get_timestamp(): fix endpoint parameter for usb_c…
…ontrol_msg_recv() The 2nd argument of usb_control_msg_recv() is the "endpoint", usb_control_msg_recv() will internally convert the endpoint into a pipe with usb_rcvctrlpipe(). In gs_usb_get_timestamp() not the endpoint "0" is passed, but the pipe. This worked by accident as endpoint is a __u8 and the lowest 8 bits of the pipe are 0. Fix this copy/paste error by using the correct endpoint of "0". Fixes: 45dfa45 ("can: gs_usb: add RX and TX hardware timestamp support") Link: https://lore.kernel.org/all/[email protected] Cc: John Whittington <[email protected]> Tested-by: John Whittington <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
- Loading branch information