linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] can: m_can: fix pm_runtime and CAN state handling
@ 2025-08-12 17:36 Marc Kleine-Budde
  2025-08-12 17:36 ` [PATCH 1/7] can: m_can: m_can_plat_remove(): add missing pm_runtime_disable() Marc Kleine-Budde
                   ` (7 more replies)
  0 siblings, 8 replies; 19+ messages in thread
From: Marc Kleine-Budde @ 2025-08-12 17:36 UTC (permalink / raw)
  To: Chandrasekar Ramakrishnan, Vincent Mailhol, Patrik Flykt,
	Dong Aisheng, Fengguang Wu, Varka Bhadram, Wu Bo,
	Markus Schneider-Pargmann, Philipp Zabel
  Cc: linux-can, linux-kernel, kernel, Marc Kleine-Budde

The first patch fixes a pm_runtime imbalance in the m_can_platform
driver.

The rest of this series fixes the CAN state handling in the m_can
driver:
- add the missing state transition from from Error Warning back to
  Error Active (Patches 2+3)
- address the fact that in some SoCs (observed on the STM32MP15) the
  M_CAN IP core keeps the CAN state and CAN error counters over an
  internal reset cycle. Set the correct CAN state during ifup and
  system resume (Patches 4+5)
- add support for optional shared external reset, to properly reset
  the IP core (Patches 6+7)

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
Marc Kleine-Budde (7):
      can: m_can: m_can_plat_remove(): add missing pm_runtime_disable()
      can: m_can: m_can_rx_handler(): only handle active interrupts
      can: m_can: m_can_handle_state_errors(): fix CAN state transition to Error Active
      can: m_can: m_can_chip_config(): bring up interface in correct state
      can: m_can: fix CAN state in system PM
      can: m_can: m_can_get_berr_counter(): don't wake up controller if interface is down
      can: m_can: add optional support for reset

 drivers/net/can/m_can/m_can.c          | 93 ++++++++++++++++++++++++----------
 drivers/net/can/m_can/m_can.h          |  1 +
 drivers/net/can/m_can/m_can_platform.c |  2 +-
 3 files changed, 68 insertions(+), 28 deletions(-)
---
base-commit: 89886abd073489e26614e4d80fb8eb70d3938a0b
change-id: 20250811-m_can-fix-state-handling-0ba4bda6cb8e

Best regards,
--  
Marc Kleine-Budde <mkl@pengutronix.de>



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2025-08-20  9:09 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-12 17:36 [PATCH 0/7] can: m_can: fix pm_runtime and CAN state handling Marc Kleine-Budde
2025-08-12 17:36 ` [PATCH 1/7] can: m_can: m_can_plat_remove(): add missing pm_runtime_disable() Marc Kleine-Budde
2025-08-19  8:22   ` Markus Schneider-Pargmann
2025-08-12 17:36 ` [PATCH 2/7] can: m_can: m_can_rx_handler(): only handle active interrupts Marc Kleine-Budde
2025-08-19  8:29   ` Markus Schneider-Pargmann
2025-08-12 17:36 ` [PATCH 3/7] can: m_can: m_can_handle_state_errors(): fix CAN state transition to Error Active Marc Kleine-Budde
2025-08-20  8:49   ` Markus Schneider-Pargmann
2025-08-20  9:09     ` Markus Schneider-Pargmann
2025-08-12 17:36 ` [PATCH 4/7] can: m_can: m_can_chip_config(): bring up interface in correct state Marc Kleine-Budde
2025-08-20  9:00   ` Markus Schneider-Pargmann
2025-08-12 17:36 ` [PATCH 5/7] can: m_can: fix CAN state in system PM Marc Kleine-Budde
2025-08-20  9:06   ` Markus Schneider-Pargmann
2025-08-12 17:36 ` [PATCH 6/7] can: m_can: m_can_get_berr_counter(): don't wake up controller if interface is down Marc Kleine-Budde
2025-08-12 17:36 ` [PATCH 7/7] can: m_can: add optional support for reset Marc Kleine-Budde
2025-08-13  8:17   ` Philipp Zabel
2025-08-13  8:34     ` Marc Kleine-Budde
2025-08-13  8:44       ` Marc Kleine-Budde
2025-08-13  8:17 ` [PATCH 0/7] can: m_can: fix pm_runtime and CAN state handling Philipp Zabel
2025-08-13  9:06   ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).