]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
can: m_can: Call the RAM init directly from m_can_chip_config
authorVivek Yadav <vivek.2311@samsung.com>
Wed, 7 Dec 2022 10:06:31 +0000 (15:36 +0530)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 12 Dec 2022 10:42:33 +0000 (11:42 +0100)
commiteaacfeaca7ad0804b9a6eff7afeba93a87db7638
tree4b586d83bf6c18fcd1fded6393a72303e6e3f661
parentbd4a52bf9d56abaabc6926f68c3cc3528937a864
can: m_can: Call the RAM init directly from m_can_chip_config

When we try to access the mcan message ram addresses during the probe,
hclk is gated by any other drivers or disabled, because of that probe
gets failed.

Move the mram init functionality to mcan chip config called by
m_can_start from mcan open function, by that time clocks are
enabled.

Suggested-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Vivek Yadav <vivek.2311@samsung.com>
Link: https://lore.kernel.org/all/20221207100632.96200-2-vivek.2311@samsung.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c
drivers/net/can/m_can/m_can_platform.c
drivers/net/can/m_can/tcan4x5x-core.c