We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b69680 commit 5cff263Copy full SHA for 5cff263
drivers/net/can/rcar/rcar_canfd.c
@@ -823,9 +823,6 @@ static int rcar_canfd_reset_controller(struct rcar_canfd_global *gpriv)
823
/* Reset Global error flags */
824
rcar_canfd_write(gpriv->base, RCANFD_GERFL, 0x0);
825
826
- /* Set the controller into appropriate mode */
827
- rcar_canfd_set_mode(gpriv);
828
-
829
/* Transition all Channels to reset mode */
830
for_each_set_bit(ch, &gpriv->channels_mask, gpriv->info->max_channels) {
831
rcar_canfd_clear_bit(gpriv->base,
@@ -844,6 +841,10 @@ static int rcar_canfd_reset_controller(struct rcar_canfd_global *gpriv)
844
841
return err;
845
842
}
846
843
+
+ /* Set the controller into appropriate mode */
+ rcar_canfd_set_mode(gpriv);
847
848
return 0;
849
850
0 commit comments