|
@@ -97,14 +97,14 @@ static void c_can_hw_raminit_ti(const struct c_can_priv *priv, bool enable)
|
|
|
ctrl |= CAN_RAMINIT_DONE_MASK(priv->instance);
|
|
|
writel(ctrl, priv->raminit_ctrlreg);
|
|
|
ctrl &= ~CAN_RAMINIT_DONE_MASK(priv->instance);
|
|
|
- c_can_hw_raminit_wait_ti(priv, ctrl, mask);
|
|
|
+ c_can_hw_raminit_wait_ti(priv, mask, ctrl);
|
|
|
|
|
|
if (enable) {
|
|
|
/* Set start bit and wait for the done bit. */
|
|
|
ctrl |= CAN_RAMINIT_START_MASK(priv->instance);
|
|
|
writel(ctrl, priv->raminit_ctrlreg);
|
|
|
ctrl |= CAN_RAMINIT_DONE_MASK(priv->instance);
|
|
|
- c_can_hw_raminit_wait_ti(priv, ctrl, mask);
|
|
|
+ c_can_hw_raminit_wait_ti(priv, mask, ctrl);
|
|
|
}
|
|
|
spin_unlock(&raminit_lock);
|
|
|
}
|