can: m_can: Move accessing of message ram to after clocks are enabled
authorFaiz Abbas <faiz_abbas@ti.com>
Tue, 3 Jul 2018 11:17:10 +0000 (16:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:26:28 +0000 (09:26 +0200)
commit562d7bc6c966ad7f66a85f63843a548ffd1eb8ce
tree01c0ad2432489d167f8243b8a8a238e86cc69c4e
parent0b14a856f918fdfb70b234900fb9ecf92311b368
can: m_can: Move accessing of message ram to after clocks are enabled

[ Upstream commit 54e4a0c486041dc1c20593d997fafd67089e8408 ]

MCAN message ram should only be accessed once clocks are enabled.
Therefore, move the call to parse/init the message ram to after
clocks are enabled.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/m_can/m_can.c