projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d60f33
)
can: flexcan: Add check for transceiver maximum bitrate limitation
author
Joakim Zhang
<qiangqing.zhang@nxp.com>
Wed, 30 Oct 2019 06:45:57 +0000
(06:45 +0000)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Tue, 22 Sep 2020 14:50:02 +0000
(16:50 +0200)
CAN FD can transmit up to 8Mbps, but some transceivers only can support
5Mbps, so add check in driver.
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Link:
https://lore.kernel.org/r/20191030064245.12923-2-qiangqing.zhang@nxp.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/flexcan.c
b/drivers/net/can/flexcan.c
index
52b53ff
..
5c6903e
100644
(file)
--- a/
drivers/net/can/flexcan.c
+++ b/
drivers/net/can/flexcan.c
@@
-1674,6
+1674,7
@@
static int flexcan_probe(struct platform_device *pdev)
goto failed_register;
}
+ of_can_transceiver(dev);
devm_can_led_init(dev);
if (priv->devtype_data->quirks & FLEXCAN_QUIRK_SETUP_STOP_MODE) {