Patch "can: ifi: Fix transmitter delay calculation" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
can: ifi: Fix transmitter delay calculation
to the 4.9-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-ifi-fix-transmitter-delay-calculation.patch
and it can be found in the queue-4.9 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
4f7116757b4bd99e4ef2636c7d957a6d63035d11Mon Sep 17 00:00:00 2001
From: Marek Vasut <[email protected]>
Date: Fri, 10 Nov 2017 11:22:39 +0100
Subject: can: ifi: Fix transmitter delay calculation
From: Marek Vasut <[email protected]>
commit 4f7116757b4bd99e4ef2636c7d957a6d63035d11 upstream.
The CANFD transmitter delay calculation formula was updated in the latest software drop from IFI and improves the behavior of the IFI CANFD core during bitrate switching. Use the new formula to improve stability of the CANFD operation.
--- drivers/net/can/ifi_canfd/ifi_canfd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/can/ifi_canfd/ifi_canfd.c +3 -3
@@ -670,9 +670,9 @@ static void ifi_canfd_set_bittiming(stru priv->base + IFI_CANFD_FTIME);/* Configure transmitter delay */ - tdc = (dbt->brp * (dbt->phase_seg1 +1 )) &IFI_CANFD_TDELAY_MASK ; -writel (IFI_CANFD_TDELAY_EN |IFI_CANFD_TDELAY_ABS | tdc, - priv->base +IFI_CANFD_TDELAY ); + tdc = dbt->brp * (dbt->prop_seg + dbt->phase_seg1); + tdc &=IFI_CANFD_TDELAY_MASK ; +writel (IFI_CANFD_TDELAY_EN | tdc, priv->base +IFI_CANFD_TDELAY ); } static void ifi_canfd_set_filter(struct net_device *ndev, const u32 id,
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/can-ifi-fix-transmitter-delay-calculation.patch