Skip to contentSkip to conversation

xilinx_can: Update on xilinx can

PATCH In review Srinivas Neeli 3 participants 6 messages Jun 9, 2022

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

v3 cover xilinx_can: Update on xilinx can

This patch series addresses
1) Reverts the limiting CANFD brp_min to 2.
2) Adds TDC support for Xilinx can driver.

Hi Marc,
Please apply PATCH V3 1/2 on stable branch. Due to some mailing issue i didn't receive your mail.

Changes in V3:
-Implemented GENMASK,FIELD_PERP & FIELD_GET Calls. -Implemented TDC feature for all Xilinx CANFD controllers. -corrected prescalar to prescaler(typo).

Changes in V2:
- Created two patches one for revert another for TDC support.

Srinivas Neeli (2):
Revert "can: xilinx_can: Limit CANFD brp to 2"
can: xilinx_can: Add Transmitter delay compensation (TDC) feature
support

 drivers/net/can/xilinx_can.c | 52 +++++++++++++++++++++++++++++++-----
 1 file changed, 45 insertions(+), 7 deletions(-)
Signature · 1 line
2.25.1
#1 lore raw

PATCH v3 1/2 Revert "can: xilinx_can: Limit CANFD brp to 2"

This reverts commit 05ca14fdb6fe65614e0652d03e44b02748d25af7.

On early silicon engineering samples observed bit shrinking issue when we use brp as 1. Hence updated brp_min as 2. As in production silicon this issue is fixed,so reverting the patch.

---
Changes in V3:
-None
Changes in V2:
-New patch

---
 drivers/net/can/xilinx_can.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/can/xilinx_can.c +2 -2
index 8a3b7b103ca4..e179d311aa28 100644
@@ -258,7 +258,7 @@ static const struct can_bittiming_const xcan_bittiming_const_canfd2 = {
 	.tseg2_min = 1,
 	.tseg2_max = 128,
 	.sjw_max = 128,
-	.brp_min = 2,
+	.brp_min = 1,
 	.brp_max = 256,
 	.brp_inc = 1,
 };
@@ -271,7 +271,7 @@ static const struct can_bittiming_const xcan_data_bittiming_const_canfd2 = {
 	.tseg2_min = 1,
 	.tseg2_max = 16,
 	.sjw_max = 16,
-	.brp_min = 2,
+	.brp_min = 1,
 	.brp_max = 256,
 	.brp_inc = 1,
 };
Signature · 1 line
2.25.1
#2 lore raw

PATCH v3 2/2 can: xilinx_can: Add Transmitter delay compensation (TDC) feature support

In reply to Srinivas Neeli

Added Transmitter delay compensation (TDC) feature support. In the case of higher measured loop delay with higher baud rates, observed bit stuff errors. By enabling the TDC feature in CANFD controllers, will compensate for the measure loop delay in the receive path.

---
Changes in V3:
-Implemented GENMASK,FIELD_PERP & FIELD_GET Calls. -Implemented TDC feature for all Xilinx CANFD controllers. -corrected prescalar to prescaler(typo).
Changes in V2:
-Created two patchs one for revert another for TDC support.

---
 drivers/net/can/xilinx_can.c | 48 ++++++++++++++++++++++++++++++++----
 1 file changed, 43 insertions(+), 5 deletions(-)
drivers/net/can/xilinx_can.c +43 -5
index e179d311aa28..288be69c0aed 100644
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /* Xilinx CAN device driver
  *
- * Copyright (C) 2012 - 2014 Xilinx, Inc.
+ * Copyright (C) 2012 - 2022 Xilinx, Inc.
  * Copyright (C) 2009 PetaLogix. All rights reserved.
  * Copyright (C) 2017 - 2018 Sandvik Mining and Construction Oy
  *
@@ -9,6 +9,7 @@
  * This driver is developed for Axi CAN IP and for Zynq CANPS Controller.
  */
 
+#include <linux/bitfield.h>
 #include <linux/clk.h>
 #include <linux/errno.h>
 #include <linux/init.h>
@@ -99,6 +100,7 @@ enum xcan_reg {
 #define XCAN_ESR_STER_MASK		0x00000004 /* Stuff error */
 #define XCAN_ESR_FMER_MASK		0x00000002 /* Form error */
 #define XCAN_ESR_CRCER_MASK		0x00000001 /* CRC error */
+#define XCAN_SR_TDCV_MASK		GENMASK(22, 16) /* TDCV Value */
 #define XCAN_SR_TXFLL_MASK		0x00000400 /* TX FIFO is full */
 #define XCAN_SR_ESTAT_MASK		0x00000180 /* Error status */
 #define XCAN_SR_ERRWRN_MASK		0x00000040 /* Error warning */
@@ -132,6 +134,8 @@ enum xcan_reg {
 #define XCAN_DLCR_BRS_MASK		0x04000000 /* BRS Mask in DLC */
 
 /* CAN register bit shift - XCAN_<REG>_<BIT>_SHIFT */
+#define XCAN_BRPR_TDCO_SHIFT		GENMASK(13, 8)  /* Transmitter Delay Compensation Offset */
+#define XCAN_BRPR_TDC_ENABLE		BIT(16) /* Transmitter Delay Compensation (TDC) Enable */
 #define XCAN_BTR_SJW_SHIFT		7  /* Synchronous jump width */
 #define XCAN_BTR_TS2_SHIFT		4  /* Time segment 2 */
 #define XCAN_BTR_SJW_SHIFT_CANFD	16 /* Synchronous jump width */
@@ -276,6 +280,16 @@ static const struct can_bittiming_const xcan_data_bittiming_const_canfd2 = {
 	.brp_inc = 1,
 };
 
+/* Transmission Delay Compensation constants for CANFD2.0 and Versal  */
+static const struct can_tdc_const xcan_tdc_const = {
+	.tdcv_min = 0,
+	.tdcv_max = 0, /* Manual mode not supported. */
+	.tdco_min = 0,
+	.tdco_max = 64,
+	.tdcf_min = 0, /* Filter window not supported */
+	.tdcf_max = 0,
+};
+
 /**
  * xcan_write_reg_le - Write a value to the device register little endian
  * @priv:	Driver private data structure
@@ -405,7 +419,7 @@ static int xcan_set_bittiming(struct net_device *ndev)
 		return -EPERM;
 	}
 
-	/* Setting Baud Rate prescalar value in BRPR Register */
+	/* Setting Baud Rate prescaler value in BRPR Register */
 	btr0 = (bt->brp - 1);
 
 	/* Setting Time Segment 1 in BTR Register */
@@ -422,8 +436,12 @@ static int xcan_set_bittiming(struct net_device *ndev)
 
 	if (priv->devtype.cantype == XAXI_CANFD ||
 	    priv->devtype.cantype == XAXI_CANFD_2_0) {
-		/* Setting Baud Rate prescalar value in F_BRPR Register */
+		/* Setting Baud Rate prescaler value in F_BRPR Register */
 		btr0 = dbt->brp - 1;
+		if (can_tdc_is_enabled(&priv->can))
+			btr0 |=
+			FIELD_PREP(XCAN_BRPR_TDCO_SHIFT, priv->can.tdc.tdco) |
+			XCAN_BRPR_TDC_ENABLE;
 
 		/* Setting Time Segment 1 in BTR Register */
 		btr1 = dbt->prop_seg + dbt->phase_seg1 - 1;
@@ -1483,6 +1501,22 @@ static int xcan_get_berr_counter(const struct net_device *ndev,
 	return 0;
 }
 
+/**
+ * xcan_get_auto_tdcv - Get Transmitter Delay Compensation Value
+ * @ndev:	Pointer to net_device structure
+ * @tdcv:	Pointer to TDCV value
+ *
+ * Return: 0 on success
+ */
+static int xcan_get_auto_tdcv(const struct net_device *ndev, u32 *tdcv)
+{
+	struct xcan_priv *priv = netdev_priv(ndev);
+
+	*tdcv = FIELD_GET(XCAN_SR_TDCV_MASK, priv->read_reg(priv, XCAN_SR_OFFSET));
+
+	return 0;
+}
+
 static const struct net_device_ops xcan_netdev_ops = {
 	.ndo_open	= xcan_open,
 	.ndo_stop	= xcan_close,
@@ -1744,8 +1778,12 @@ static int xcan_probe(struct platform_device *pdev)
 			&xcan_data_bittiming_const_canfd2;
 
 	if (devtype->cantype == XAXI_CANFD ||
-	    devtype->cantype == XAXI_CANFD_2_0)
-		priv->can.ctrlmode_supported |= CAN_CTRLMODE_FD;
+	    devtype->cantype == XAXI_CANFD_2_0) {
+		priv->can.ctrlmode_supported |= CAN_CTRLMODE_FD |
+						CAN_CTRLMODE_TDC_AUTO;
+		priv->can.do_get_auto_tdcv = xcan_get_auto_tdcv;
+		priv->can.tdc_const = &xcan_tdc_const;
+	}
 
 	priv->reg_base = addr;
 	priv->tx_max = tx_max;
Signature · 1 line
2.25.1
#3 lore raw

Re: [PATCH V3 2/2] can: xilinx_can: Add Transmitter delay compensation (TDC) feature support

Quoted 48 lines · Srinivas Neeli

Added Transmitter delay compensation (TDC) feature support. In the case of higher measured loop delay with higher baud rates, observed bit stuff errors. By enabling the TDC feature in CANFD controllers, will compensate for the measure loop delay in the receive path.

---
Changes in V3:

(quoted diff) +0 -3
-Implemented GENMASK,FIELD_PERP & FIELD_GET Calls.
-Implemented TDC feature for all Xilinx CANFD controllers.
-corrected prescalar to prescaler(typo).

Changes in V2:

(quoted diff) +0 -2
-Created two patchs one for revert another for TDC support.
---
 drivers/net/can/xilinx_can.c | 48 ++++++++++++++++++++++++++++++++----
 1 file changed, 43 insertions(+), 5 deletions(-)
drivers/net/can/xilinx_can.c +3 -1
index e179d311aa28..288be69c0aed 100644
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /* Xilinx CAN device driver
  *
- * Copyright (C) 2012 - 2014 Xilinx, Inc.
+ * Copyright (C) 2012 - 2022 Xilinx, Inc.
  * Copyright (C) 2009 PetaLogix. All rights reserved.
  * Copyright (C) 2017 - 2018 Sandvik Mining and Construction Oy
  *
@@ -9,6 +9,7 @@
  * This driver is developed for Axi CAN IP and for Zynq CANPS Controller.
  */
 
+#include <linux/bitfield.h>
 #include <linux/clk.h>
 #include <linux/errno.h>
 #include <linux/init.h>
@@ -99,6 +100,7 @@ enum xcan_reg {
 #define XCAN_ESR_STER_MASK		0x00000004 /* Stuff error */
 #define XCAN_ESR_FMER_MASK		0x00000002 /* Form error */
 #define XCAN_ESR_CRCER_MASK		0x00000001 /* CRC error */
+#define XCAN_SR_TDCV_MASK		GENMASK(22, 16) /* TDCV Value */
 #define XCAN_SR_TXFLL_MASK		0x00000400 /* TX FIFO is full */
 #define XCAN_SR_ESTAT_MASK		0x00000180 /* Error status */
 #define XCAN_SR_ERRWRN_MASK		0x00000040 /* Error warning */

drivers/net/can/xilinx_can.c enum xcan_reg { · line 137

Quoted 4 lines
drivers/net/can/xilinx_can.c +1 -0
@@ -132,6 +134,8 @@ enum xcan_reg {
 #define XCAN_DLCR_BRS_MASK		0x04000000 /* BRS Mask in DLC */
 
 /* CAN register bit shift - XCAN_<REG>_<BIT>_SHIFT */
+#define XCAN_BRPR_TDCO_SHIFT		GENMASK(13, 8)  /* Transmitter Delay Compensation Offset */
                          ^^^^^

This is a MASK.

Quoted 22 lines
drivers/net/can/xilinx_can.c +11 -0
+#define XCAN_BRPR_TDC_ENABLE		BIT(16) /* Transmitter Delay Compensation (TDC) Enable */
 #define XCAN_BTR_SJW_SHIFT		7  /* Synchronous jump width */
 #define XCAN_BTR_TS2_SHIFT		4  /* Time segment 2 */
 #define XCAN_BTR_SJW_SHIFT_CANFD	16 /* Synchronous jump width */
@@ -276,6 +280,16 @@ static const struct can_bittiming_const xcan_data_bittiming_const_canfd2 = {
 	.brp_inc = 1,
 };
 
+/* Transmission Delay Compensation constants for CANFD2.0 and Versal  */
+static const struct can_tdc_const xcan_tdc_const = {
+	.tdcv_min = 0,
+	.tdcv_max = 0, /* Manual mode not supported. */
+	.tdco_min = 0,
+	.tdco_max = 64,
+	.tdcf_min = 0, /* Filter window not supported */
+	.tdcf_max = 0,
+};
+
 /**
  * xcan_write_reg_le - Write a value to the device register little endian
  * @priv:	Driver private data structure

drivers/net/can/xilinx_can.c static int xcan_set_bittiming(struct net_device *ndev) · line 422

Quoted 5 lines
drivers/net/can/xilinx_can.c +1 -1
@@ -405,7 +419,7 @@ static int xcan_set_bittiming(struct net_device *ndev)
 		return -EPERM;
 	}
 
-	/* Setting Baud Rate prescalar value in BRPR Register */
+	/* Setting Baud Rate prescaler value in BRPR Register */

unrelated change, please make it a separate patch

drivers/net/can/xilinx_can.c static int xcan_set_bittiming(struct net_device *ndev) · line 439

Quoted 9 lines
drivers/net/can/xilinx_can.c +1 -1
 	btr0 = (bt->brp - 1);
 
 	/* Setting Time Segment 1 in BTR Register */
@@ -422,8 +436,12 @@ static int xcan_set_bittiming(struct net_device *ndev)
 
 	if (priv->devtype.cantype == XAXI_CANFD ||
 	    priv->devtype.cantype == XAXI_CANFD_2_0) {
-		/* Setting Baud Rate prescalar value in F_BRPR Register */
+		/* Setting Baud Rate prescaler value in F_BRPR Register */

same

Quoted 50 lines
drivers/net/can/xilinx_can.c +26 -2
 		btr0 = dbt->brp - 1;
+		if (can_tdc_is_enabled(&priv->can))
+			btr0 |=
+			FIELD_PREP(XCAN_BRPR_TDCO_SHIFT, priv->can.tdc.tdco) |
+			XCAN_BRPR_TDC_ENABLE;
 
 		/* Setting Time Segment 1 in BTR Register */
 		btr1 = dbt->prop_seg + dbt->phase_seg1 - 1;
@@ -1483,6 +1501,22 @@ static int xcan_get_berr_counter(const struct net_device *ndev,
 	return 0;
 }
 
+/**
+ * xcan_get_auto_tdcv - Get Transmitter Delay Compensation Value
+ * @ndev:	Pointer to net_device structure
+ * @tdcv:	Pointer to TDCV value
+ *
+ * Return: 0 on success
+ */
+static int xcan_get_auto_tdcv(const struct net_device *ndev, u32 *tdcv)
+{
+	struct xcan_priv *priv = netdev_priv(ndev);
+
+	*tdcv = FIELD_GET(XCAN_SR_TDCV_MASK, priv->read_reg(priv, XCAN_SR_OFFSET));
+
+	return 0;
+}
+
 static const struct net_device_ops xcan_netdev_ops = {
 	.ndo_open	= xcan_open,
 	.ndo_stop	= xcan_close,
@@ -1744,8 +1778,12 @@ static int xcan_probe(struct platform_device *pdev)
 			&xcan_data_bittiming_const_canfd2;
 
 	if (devtype->cantype == XAXI_CANFD ||
-	    devtype->cantype == XAXI_CANFD_2_0)
-		priv->can.ctrlmode_supported |= CAN_CTRLMODE_FD;
+	    devtype->cantype == XAXI_CANFD_2_0) {
+		priv->can.ctrlmode_supported |= CAN_CTRLMODE_FD |
+						CAN_CTRLMODE_TDC_AUTO;
+		priv->can.do_get_auto_tdcv = xcan_get_auto_tdcv;
+		priv->can.tdc_const = &xcan_tdc_const;
+	}
 
 	priv->reg_base = addr;
 	priv->tx_max = tx_max;
Signature · 1 line
2.25.1

Otherwise looks good.

Marc

Signature · 4 lines
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |
Reviewed-by
#4 lore raw

Re: [PATCH V3 2/2] can: xilinx_can: Add Transmitter delay compensation (TDC) feature support

Quoted 142 lines · Marc Kleine-Budde
Quoted 48 lines · Srinivas Neeli

Added Transmitter delay compensation (TDC) feature support. In the case of higher measured loop delay with higher baud rates, observed bit stuff errors. By enabling the TDC feature in CANFD controllers, will compensate for the measure loop delay in the receive path.

---
Changes in V3:

(quoted diff) +0 -3
-Implemented GENMASK,FIELD_PERP & FIELD_GET Calls.
-Implemented TDC feature for all Xilinx CANFD controllers.
-corrected prescalar to prescaler(typo).

Changes in V2:

(quoted diff) +0 -2
-Created two patchs one for revert another for TDC support.
---
 drivers/net/can/xilinx_can.c | 48 ++++++++++++++++++++++++++++++++----
 1 file changed, 43 insertions(+), 5 deletions(-)
drivers/net/can/xilinx_can.c +3 -1
index e179d311aa28..288be69c0aed 100644
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /* Xilinx CAN device driver
  *
- * Copyright (C) 2012 - 2014 Xilinx, Inc.
+ * Copyright (C) 2012 - 2022 Xilinx, Inc.
  * Copyright (C) 2009 PetaLogix. All rights reserved.
  * Copyright (C) 2017 - 2018 Sandvik Mining and Construction Oy
  *
@@ -9,6 +9,7 @@
  * This driver is developed for Axi CAN IP and for Zynq CANPS Controller.
  */
 
+#include <linux/bitfield.h>
 #include <linux/clk.h>
 #include <linux/errno.h>
 #include <linux/init.h>
@@ -99,6 +100,7 @@ enum xcan_reg {
 #define XCAN_ESR_STER_MASK           0x00000004 /* Stuff error */
 #define XCAN_ESR_FMER_MASK           0x00000002 /* Form error */
 #define XCAN_ESR_CRCER_MASK          0x00000001 /* CRC error */
+#define XCAN_SR_TDCV_MASK            GENMASK(22, 16) /* TDCV Value */
 #define XCAN_SR_TXFLL_MASK           0x00000400 /* TX FIFO is full */
 #define XCAN_SR_ESTAT_MASK           0x00000180 /* Error status */
 #define XCAN_SR_ERRWRN_MASK          0x00000040 /* Error warning */

drivers/net/can/xilinx_can.c enum xcan_reg { · line 137

Quoted 4 lines
drivers/net/can/xilinx_can.c +1 -0
@@ -132,6 +134,8 @@ enum xcan_reg {
 #define XCAN_DLCR_BRS_MASK           0x04000000 /* BRS Mask in DLC */
 
 /* CAN register bit shift - XCAN_<REG>_<BIT>_SHIFT */
+#define XCAN_BRPR_TDCO_SHIFT         GENMASK(13, 8)  /* Transmitter Delay Compensation Offset */
                          ^^^^^

This is a MASK.

Quoted 22 lines
drivers/net/can/xilinx_can.c +11 -0
+#define XCAN_BRPR_TDC_ENABLE         BIT(16) /* Transmitter Delay Compensation (TDC) Enable */
 #define XCAN_BTR_SJW_SHIFT           7  /* Synchronous jump width */
 #define XCAN_BTR_TS2_SHIFT           4  /* Time segment 2 */
 #define XCAN_BTR_SJW_SHIFT_CANFD     16 /* Synchronous jump width */
@@ -276,6 +280,16 @@ static const struct can_bittiming_const xcan_data_bittiming_const_canfd2 = {
      .brp_inc = 1,
 };
 
+/* Transmission Delay Compensation constants for CANFD2.0 and Versal  */
+static const struct can_tdc_const xcan_tdc_const = {
+     .tdcv_min = 0,
+     .tdcv_max = 0, /* Manual mode not supported. */
+     .tdco_min = 0,
+     .tdco_max = 64,
+     .tdcf_min = 0, /* Filter window not supported */
+     .tdcf_max = 0,
+};
+
 /**
  * xcan_write_reg_le - Write a value to the device register little endian
  * @priv:    Driver private data structure

drivers/net/can/xilinx_can.c static int xcan_set_bittiming(struct net_device *ndev) · line 422

Quoted 5 lines
drivers/net/can/xilinx_can.c +1 -1
@@ -405,7 +419,7 @@ static int xcan_set_bittiming(struct net_device *ndev)
              return -EPERM;
      }
 
-     /* Setting Baud Rate prescalar value in BRPR Register */
+     /* Setting Baud Rate prescaler value in BRPR Register */

unrelated change, please make it a separate patch

drivers/net/can/xilinx_can.c static int xcan_set_bittiming(struct net_device *ndev) · line 439

Quoted 9 lines
drivers/net/can/xilinx_can.c +1 -1
      btr0 = (bt->brp - 1);
 
      /* Setting Time Segment 1 in BTR Register */
@@ -422,8 +436,12 @@ static int xcan_set_bittiming(struct net_device *ndev)
 
      if (priv->devtype.cantype == XAXI_CANFD ||
          priv->devtype.cantype == XAXI_CANFD_2_0) {
-             /* Setting Baud Rate prescalar value in F_BRPR Register */
+             /* Setting Baud Rate prescaler value in F_BRPR Register */

same

Quoted 44 lines
drivers/net/can/xilinx_can.c +26 -2
              btr0 = dbt->brp - 1;
+             if (can_tdc_is_enabled(&priv->can))
+                     btr0 |=
+                     FIELD_PREP(XCAN_BRPR_TDCO_SHIFT, priv->can.tdc.tdco) |
+                     XCAN_BRPR_TDC_ENABLE;
 
              /* Setting Time Segment 1 in BTR Register */
              btr1 = dbt->prop_seg + dbt->phase_seg1 - 1;
@@ -1483,6 +1501,22 @@ static int xcan_get_berr_counter(const struct net_device *ndev,
      return 0;
 }
 
+/**
+ * xcan_get_auto_tdcv - Get Transmitter Delay Compensation Value
+ * @ndev:    Pointer to net_device structure
+ * @tdcv:    Pointer to TDCV value
+ *
+ * Return: 0 on success
+ */
+static int xcan_get_auto_tdcv(const struct net_device *ndev, u32 *tdcv)
+{
+     struct xcan_priv *priv = netdev_priv(ndev);
+
+     *tdcv = FIELD_GET(XCAN_SR_TDCV_MASK, priv->read_reg(priv, XCAN_SR_OFFSET));
+
+     return 0;
+}
+
 static const struct net_device_ops xcan_netdev_ops = {
      .ndo_open       = xcan_open,
      .ndo_stop       = xcan_close,
@@ -1744,8 +1778,12 @@ static int xcan_probe(struct platform_device *pdev)
                      &xcan_data_bittiming_const_canfd2;
 
      if (devtype->cantype == XAXI_CANFD ||
-         devtype->cantype == XAXI_CANFD_2_0)
-             priv->can.ctrlmode_supported |= CAN_CTRLMODE_FD;
+         devtype->cantype == XAXI_CANFD_2_0) {
+             priv->can.ctrlmode_supported |= CAN_CTRLMODE_FD |
+                                             CAN_CTRLMODE_TDC_AUTO;
+             priv->can.do_get_auto_tdcv = xcan_get_auto_tdcv;
+             priv->can.tdc_const = &xcan_tdc_const;
+     }
 
Quoted 8 lines
Quoted 6 lines
drivers/net/can/xilinx_can.c +0 -1
      priv->reg_base = addr;
      priv->tx_max = tx_max;
--

2.25.1

Otherwise looks good.

Same for me. Also, thanks for using the TDC framework. You are the first one to use it after I created it!

Assuming you address all of Marc’s comment, please add this in your v4:

Yours sincerely,
Vincent Mailhol

#5 lore raw
In reply to Srinivas Neeli
Quoted 3 lines · Srinivas Neeli

This patch series addresses
1) Reverts the limiting CANFD brp_min to 2.
2) Adds TDC support for Xilinx can driver.

Thanks for your patches!

Quoted 3 lines

Hi Marc,
Please apply PATCH V3 1/2 on stable branch. Due to some mailing issue i didn't receive your mail.

Applied to can/testing, please don't mix patches for can and can-next in on series in the future.

Review

Quoted 4 lines

Changes in V3:

(quoted diff) +0 -3
-Implemented GENMASK,FIELD_PERP & FIELD_GET Calls.
-Implemented TDC feature for all Xilinx CANFD controllers.
-corrected prescalar to prescaler(typo).

Pleas make this a separate patch.

regards,
Marc

Signature · 4 lines
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |