Patch "can: sun4i: fix loopback mode" has been added to the 4.13-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
can: sun4i: fix loopback mode
to the 4.13-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
can-sun4i-fix-loopback-mode.patch
and it can be found in the queue-4.13 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
3a379f5b36ae039dfeb6f73316e47ab1af4945dfMon Sep 17 00:00:00 2001
From: Gerhard Bertelsmann <[email protected]>
Date: Thu, 17 Aug 2017 15:59:49 +0200
Subject: can: sun4i: fix loopback mode
From: Gerhard Bertelsmann <[email protected]>
commit 3a379f5b36ae039dfeb6f73316e47ab1af4945df upstream.
Fix loopback mode by setting the right flag and remove presume mode.
--- drivers/net/can/sun4i_can.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/can/sun4i_can.c +1 -2
@@ -342,7 +342,7 @@ static int sun4i_can_start(struct net_de/* enter the selected mode */ mod_reg_val =readl (priv->base +SUN4I_REG_MSEL_ADDR ); -if (priv->can.ctrlmode &CAN_CTRLMODE_PRESUME_ACK ) +if (priv->can.ctrlmode &CAN_CTRLMODE_LOOPBACK ) mod_reg_val |=SUN4I_MSEL_LOOPBACK_MODE ;else if (priv->can.ctrlmode &CAN_CTRLMODE_LISTENONLY ) mod_reg_val |=SUN4I_MSEL_LISTEN_ONLY_MODE ;
@@ -811,7 +811,6 @@ static int sun4ican_probe(struct platfor priv->can.ctrlmode_supported =CAN_CTRLMODE_BERR_REPORTING |CAN_CTRLMODE_LISTENONLY |CAN_CTRLMODE_LOOPBACK | -CAN_CTRLMODE_PRESUME_ACK |CAN_CTRLMODE_3_SAMPLES ; priv->base = addr; priv->clk = clk;
Patches currently in stable-queue which might be from [email protected] are
queue-4.13/can-sun4i-fix-loopback-mode.patch