[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241115-tcan-standby-v2-0-4eb02026b237@geanix.com>
Date: Fri, 15 Nov 2024 09:15:49 +0100
From: Sean Nyekjaer <sean@...nix.com>
To: Chandrasekar Ramakrishnan <rcsekar@...sung.com>,
Marc Kleine-Budde <mkl@...gutronix.de>,
Vincent Mailhol <mailhol.vincent@...adoo.fr>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>
Cc: linux-can@...r.kernel.org, linux-kernel@...r.kernel.org,
Sean Nyekjaer <sean@...nix.com>
Subject: [PATCH can-next v2 0/3] can: tcan4x5x/m_can: use standby mode when
down and in suspend
When downing the tcan4x5x there is no reason to keep the tcan4x5x in
"normal" mode and waste power.
So set standby mode when the interface is down and normal mode when
interface is up.
Also when going into suspend, set the tcan4x5x into standby mode. The
tcan4x5x can still be used as a wake-source when in standby as low power
rx is enabled.
Signed-off-by: Sean Nyekjaer <sean@...nix.com>
---
Changes in v2:
- Reduced code in tcan4x5x_deinit()
- Taken care of return values from deinit callback
- Link to v1: https://lore.kernel.org/r/20241111-tcan-standby-v1-0-f9337ebaceea@geanix.com
---
Sean Nyekjaer (3):
can: m_can: add deinit callback
can: tcan4x5x: add deinit callback to set standby mode
can: m_can: call deinit/init callback when going into suspend/resume
drivers/net/can/m_can/m_can.c | 25 ++++++++++++++++++-------
drivers/net/can/m_can/m_can.h | 1 +
drivers/net/can/m_can/tcan4x5x-core.c | 9 +++++++++
3 files changed, 28 insertions(+), 7 deletions(-)
---
base-commit: 2b2a9a08f8f0b904ea2bc61db3374421b0f944a6
change-id: 20241107-tcan-standby-def358771b2b
Best regards,
--
Sean Nyekjaer <sean@...nix.com>
Powered by blists - more mailing lists