diff options
author | Joakim Zhang <qiangqing.zhang@nxp.com> | 2019-10-30 09:45:57 +0300 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2020-09-22 17:50:02 +0300 |
commit | ee97302d78654eebc1decc80d70c6a7de0217545 (patch) | |
tree | 995f630536f532467cbaba09706c65469c9dbd1c /drivers/net/can/flexcan.c | |
parent | 3d60f33a7a7afa7ba02b96ecc835c3450bf234b1 (diff) | |
download | linux-ee97302d78654eebc1decc80d70c6a7de0217545.tar.xz |
can: flexcan: Add check for transceiver maximum bitrate limitation
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>
Diffstat (limited to 'drivers/net/can/flexcan.c')
-rw-r--r-- | drivers/net/can/flexcan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c index 52b53ff223f4..5c6903e23c01 100644 --- 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) { |