Skip to content
Snippets Groups Projects
Commit 2421ab95 authored by Anup's avatar Anup Committed by Linux Build Service Account
Browse files

BACKPORT: can: mcp251xfd: move mcp251xfd_timestamp_start()/stop()

into mcp251xfd_chip_start/stop()

The mcp251xfd wakes up from Low Power or Sleep Mode when SPI activity
is detected. To avoid this, make sure that the timestamp worker is
stopped before shutting down the chip.

Split the starting of the timestamp worker out of
mcp251xfd_timestamp_init() into the separate function
mcp251xfd_timestamp_start().

Call mcp251xfd_timestamp_init() before mcp251xfd_chip_start(), move
mcp251xfd_timestamp_start() to mcp251xfd_chip_start(). In this way,
mcp251xfd_timestamp_stop() can be called unconditionally by
mcp251xfd_chip_stop().

Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
(cherry picked from commit a7801540f325d104de5065850a003f1d9bdc6ad3)
Signed-off-by: default avatarAnup <quic_anupkulk@quicinc.com>
parent e289ea83
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment