Joakim Zhang
247e5356a7
can: flexcan: fix timeout when set small bitrate
...
Current we can meet timeout issue when setting a small bitrate like
10000 as follows on i.MX6UL EVK board (ipg clock = 66MHZ, per clock =
30MHZ):
| root@imx6ul7d:~# ip link set can0 up type can bitrate 10000
A link change request failed with some changes committed already.
Interface can0 may have been left with an inconsistent configuration,
please check.
| RTNETLINK answers: Connection timed out
It is caused by calling of flexcan_chip_unfreeze() timeout.
Originally the code is using usleep_range(10, 20) for unfreeze
operation, but the patch (8badd65 can: flexcan: avoid calling
usleep_range from interrupt context) changed it into udelay(10) which is
only a half delay of before, there're also some other delay changes.
After double to FLEXCAN_TIMEOUT_US to 100 can fix the issue.
Meanwhile, Rasmus Villemoes reported that even with a timeout of 100,
flexcan_probe() fails on the MPC8309, which requires a value of at least
140 to work reliably. 250 works for everyone.
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com >
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com >
Cc: linux-stable <stable@vger.kernel.org >
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de >
2019-06-07 23:03:53 +02:00
..
2019-05-24 17:36:47 +02:00
2019-05-31 10:38:35 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:53 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:32 -07:00
2019-05-15 08:46:44 -07:00
2019-06-02 09:27:44 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:41 -07:00
2019-05-21 11:28:39 +02:00
2019-05-30 11:29:53 -07:00
2019-05-31 08:34:32 -07:00
2019-05-30 11:29:53 -07:00
2019-05-30 11:26:35 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:29:54 -07:00
2019-06-01 18:29:58 +02:00
2019-05-25 10:11:23 -07:00
2019-05-24 17:27:11 +02:00
2019-05-30 11:29:52 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:52 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:29:52 -07:00
2019-05-30 11:29:53 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:35 -07:00
2019-06-02 11:06:13 -07:00
2019-05-24 17:36:45 +02:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:41 -07:00
2019-05-21 10:50:46 +02:00
2019-05-31 08:34:32 -07:00
2019-05-31 08:34:32 -07:00
2019-05-30 11:29:19 -07:00
2019-05-21 10:50:46 +02:00
2019-04-13 09:36:35 -04:00
2019-05-30 11:29:22 -07:00
2019-05-21 10:50:46 +02:00
2019-06-02 10:18:11 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:35 -07:00
2019-05-21 10:50:46 +02:00
2019-05-31 08:34:32 -07:00
2019-06-07 09:25:27 -07:00
2019-05-30 11:29:22 -07:00
2019-05-21 10:50:46 +02:00
2019-06-01 15:51:32 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:41 -07:00
2019-05-31 08:34:32 -07:00
2019-06-02 10:14:25 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:52 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:35 -07:00
2019-05-31 08:34:32 -07:00
2019-05-30 11:26:41 -07:00
2019-05-21 11:28:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:52 -07:00
2019-05-30 11:29:53 -07:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:29:52 -07:00
2019-06-07 23:03:53 +02:00
2019-05-30 11:26:37 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-25 10:11:23 -07:00
2019-05-24 16:02:14 -07:00
2019-05-30 11:26:41 -07:00
2019-05-13 08:52:37 -07:00
2019-05-21 10:50:46 +02:00
2019-06-06 13:13:09 -07:00
2019-05-30 11:26:35 -07:00
2019-05-27 10:55:08 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:41 -07:00
2019-06-01 18:29:58 +02:00
2019-06-01 18:29:58 +02:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:25:19 -07:00
2019-05-30 11:29:54 -07:00
2019-05-21 10:50:46 +02:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:39 -07:00
2019-05-30 11:26:39 -07:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:26:37 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:52 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:29:52 -07:00
2019-05-30 11:29:52 -07:00
2019-06-07 09:29:14 -07:00
2019-05-24 17:36:45 +02:00
2019-06-02 09:26:34 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-04-25 22:23:06 +02:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:53 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:52 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-31 08:31:45 -07:00
2019-05-30 11:26:37 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-06-02 10:16:09 -07:00
2019-05-21 10:50:46 +02:00
2019-05-24 17:08:18 +02:00
2019-05-24 17:36:45 +02:00
2019-05-29 13:26:32 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:52 -07:00
2019-05-27 11:08:23 -04:00
2019-05-31 08:34:32 -07:00
2019-05-21 10:50:46 +02:00
2019-05-27 11:08:22 -04:00
2019-05-21 10:50:46 +02:00
2019-05-24 17:39:00 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:29:53 -07:00
2019-05-31 10:53:34 -07:00
2019-05-21 10:50:46 +02:00
2019-04-25 21:33:37 +02:00
2019-04-25 21:33:37 +02:00