Commit 0b430985 authored by Pavel Pisa's avatar Pavel Pisa

driver: do not leave rest of register value undefined in ctu_can_fd_reset.

It can only simplify generated code because GCC is sure
that it can replace whole register content.
Signed-off-by: Pavel Pisa's avatarPavel Pisa <pisa@cmp.felk.cvut.cz>
parent 9062ec52
Pipeline #5752 passed with stages
in 10 minutes and 58 seconds
......@@ -208,6 +208,7 @@ void ctu_can_fd_enable(struct ctucanfd_priv *priv, bool enable)
void ctu_can_fd_reset(struct ctucanfd_priv *priv)
{
union ctu_can_fd_mode_command_status_settings mode;
mode.u32 = 0;
mode.s.rst = 1;
/* it does not matter that we overwrite the rest of the reg - we're resetting */
priv->write_reg(priv, CTU_CAN_FD_MODE, mode.u32);
......
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