[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20251231231926.20043-1-pisa@fel.cvut.cz>
Date: Thu, 1 Jan 2026 00:19:26 +0100
From: Pavel Pisa <pisa@....cvut.cz>
To: linux-can@...r.kernel.org,
"Marc Kleine-Budde" <mkl@...gutronix.de>,
David Laight <david.laight.linux@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Andrea Daoud <andreadaoud6@...il.com>,
Wolfgang Grandegger <wg@...ndegger.com>,
Paolo Abeni <pabeni@...hat.com>,
netdev@...r.kernel.org
Cc: Jiri Novak <jnovak@....cvut.cz>,
Ondrej Ille <ondrej.ille@...il.com>,
Pavel Pisa <pisa@....cvut.cz>
Subject: [PATCH] can: ctucanfd: fix SSP_SRC in cases when bit-rate is higher than 1 MBit.
From: Ondrej Ille <ondrej.ille@...il.com>
The change has been tested on AMD/Xilinx Zynq
with the next CTU CN FD IP core versions:
- 2.6 aka master in the "integration with Zynq-7000 system" test
6.12.43-rt12+ #1 SMP PREEMPT_RT kernel with CTU CAN FD git
driver (change already included in the driver repo)
- older 2.5 snapshot with mainline kernels with this patch
applied locally in the multiple CAN latency tester nightly runs
6.18.0-rc4-rt3-dut #1 SMP PREEMPT_RT
6.19.0-rc3-dut
The logs are available at
https://canbus.pages.fel.cvut.cz/
Signed-off-by: Ondrej Ille <ondrej.ille@...il.com>
Signed-off-by: Pavel Pisa <pisa@....cvut.cz>
---
drivers/net/can/ctucanfd/ctucanfd_base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/can/ctucanfd/ctucanfd_base.c b/drivers/net/can/ctucanfd/ctucanfd_base.c
index 1e6b9e3dc2fe..0ea1ff28dfce 100644
--- a/drivers/net/can/ctucanfd/ctucanfd_base.c
+++ b/drivers/net/can/ctucanfd/ctucanfd_base.c
@@ -310,7 +310,7 @@ static int ctucan_set_secondary_sample_point(struct net_device *ndev)
}
ssp_cfg = FIELD_PREP(REG_TRV_DELAY_SSP_OFFSET, ssp_offset);
- ssp_cfg |= FIELD_PREP(REG_TRV_DELAY_SSP_SRC, 0x1);
+ ssp_cfg |= FIELD_PREP(REG_TRV_DELAY_SSP_SRC, 0x0);
}
ctucan_write32(priv, CTUCANFD_TRV_DELAY, ssp_cfg);
--
2.47.3
Powered by blists - more mailing lists