Ver código fonte

can: m_can: Add call to of_can_transceiver

Add call to new generic functions that provides support via a binding
to limit the arbitration rate and/or data rate imposed by the physical
transceiver connected to the MCAN peripheral.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Franklin S Cooper Jr 7 anos atrás
pai
commit
31643dc8fc
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      drivers/net/can/m_can/m_can.c

+ 2 - 0
drivers/net/can/m_can/m_can.c

@@ -1667,6 +1667,8 @@ static int m_can_plat_probe(struct platform_device *pdev)
 
 	devm_can_led_init(dev);
 
+	of_can_transceiver(dev);
+
 	dev_info(&pdev->dev, "%s device registered (irq=%d, version=%d)\n",
 		 KBUILD_MODNAME, dev->irq, priv->version);