[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191030064245.12923-2-qiangqing.zhang@nxp.com>
Date: Wed, 30 Oct 2019 06:45:57 +0000
From: Joakim Zhang <qiangqing.zhang@....com>
To: "mkl@...gutronix.de" <mkl@...gutronix.de>,
"linux-can@...r.kernel.org" <linux-can@...r.kernel.org>
CC: dl-linux-imx <linux-imx@....com>,
"wg@...ndegger.com" <wg@...ndegger.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"sean@...nix.com" <sean@...nix.com>,
Joakim Zhang <qiangqing.zhang@....com>
Subject: [PATCH] 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@....com>
---
drivers/net/can/flexcan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c
index c5d53edb17ad..ee2d57b5a382 100644
--- a/drivers/net/can/flexcan.c
+++ b/drivers/net/can/flexcan.c
@@ -1626,6 +1626,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) {
--
2.17.1
Powered by blists - more mailing lists