Commit c9f4cad6 authored by Sean Nyekjaer's avatar Sean Nyekjaer Committed by Marc Kleine-Budde

can: m_can: m_can_config_endisable(): remove double clearing of clock stop request bit

The CSR bit is already cleared when arriving here so remove this section of
duplicate code.

The registers set in m_can_config_endisable() is set to same exact values as
before this patch.
Signed-off-by: default avatarSean Nyekjaer <sean@geanix.com>
Acked-by: default avatarSriram Dash <sriram.dash@samsung.com>
Acked-by: default avatarDan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20191211063227.84259-1-sean@geanix.com
Fixes: f524f829 ("can: m_can: Create a m_can platform framework")
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent ecbaf5e1
......@@ -380,10 +380,6 @@ void m_can_config_endisable(struct m_can_classdev *cdev, bool enable)
cccr &= ~CCCR_CSR;
if (enable) {
/* Clear the Clock stop request if it was set */
if (cccr & CCCR_CSR)
cccr &= ~CCCR_CSR;
/* enable m_can configuration */
m_can_write(cdev, M_CAN_CCCR, cccr | CCCR_INIT);
udelay(5);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment