]> git.ipfire.org Git - thirdparty/linux.git/commit
can: m_can: Map WoL to device_set_wakeup_enable
authorMarkus Schneider-Pargmann (TI.com) <msp@baylibre.com>
Wed, 1 Oct 2025 14:30:20 +0000 (16:30 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 17 Oct 2025 09:02:28 +0000 (11:02 +0200)
commit04d5826b074e09c69895fc247ce13925bd7a7284
tree9c0c7f2ea1c6492b2322182ddf48146b68459e5b
parent73cc2882b644e5302237cc6ee1f8885cfb387245
can: m_can: Map WoL to device_set_wakeup_enable

In some devices the pins of the m_can module can act as a wakeup source.
This patch helps do that by connecting the PHY_WAKE WoL option to
device_set_wakeup_enable. By marking this device as being wakeup
enabled, this setting can be used by platform code to decide which
sleep or poweroff mode to use.

Also this prepares the driver for the next patch in which the pinctrl
settings are changed depending on the desired wakeup source.

Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Reviewed-by: Kendall Willis <k-willis@ti.com>
Signed-off-by: Markus Schneider-Pargmann (TI.com) <msp@baylibre.com>
Link: https://patch.msgid.link/20251001-topic-mcan-wakeup-source-v6-12-v10-2-4ab508ac5d1e@baylibre.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c