netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Marc Kleine-Budde <mkl@pengutronix.de>,
	netdev@vger.kernel.org, Vincent Mailhol <mailhol@kernel.org>
Cc: davem@davemloft.net, kuba@kernel.org, linux-can@vger.kernel.org,
	kernel@pengutronix.de
Subject: Re: [PATCH net 9/9] can: add Transmitter Delay Compensation (TDC) documentation
Date: Mon, 13 Oct 2025 09:45:14 +0200	[thread overview]
Message-ID: <1157f3fe-f88b-449f-a4c2-aac9d27c95ea@redhat.com> (raw)
In-Reply-To: <20251012142836.285370-10-mkl@pengutronix.de>

Ni,

On 10/12/25 4:20 PM, Marc Kleine-Budde wrote:
> From: Vincent Mailhol <mailhol@kernel.org>
> 
> Back in 2021, support for CAN TDC was added to the kernel in series [1]
> and in iproute2 in series [2]. However, the documentation was never
> updated.
> 
> Add a new sub-section under CAN-FD driver support to document how to
> configure the TDC using the "ip tool".
> 
> [1] add the netlink interface for CAN-FD Transmitter Delay Compensation (TDC)
> Link: https://lore.kernel.org/all/20210918095637.20108-1-mailhol.vincent@wanadoo.fr/
> 
> [2] iplink_can: cleaning, fixes and adding TDC support
> Link: https://lore.kernel.org/all/20211103164428.692722-1-mailhol.vincent@wanadoo.fr/
> 
> Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
> Link: https://patch.msgid.link/20251012-can-fd-doc-v1-2-86cc7d130026@kernel.org
> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
> ---
>  Documentation/networking/can.rst | 60 ++++++++++++++++++++++++++++++++
>  1 file changed, 60 insertions(+)
> 
> diff --git a/Documentation/networking/can.rst b/Documentation/networking/can.rst
> index ccd321d29a8a..402fefae0c2f 100644
> --- a/Documentation/networking/can.rst
> +++ b/Documentation/networking/can.rst
> @@ -1464,6 +1464,66 @@ Example when 'fd-non-iso on' is added on this switchable CAN FD adapter::
>     can <FD,FD-NON-ISO> state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
>  
>  
> +Transmitter Delay Compensation
> +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> +
> +At high bit rates, the propagation delay from the TX pin to the RX pin of
> +the transceiver might become greater than the actual bit time causing
> +measurement errors: the RX pin would still be measuring the previous bit.
> +
> +The Transmitter Delay Compensation (thereafter, TDC) resolves this problem
> +by introducing a Secondary Sample Point (SSP) equal to the distance, in
> +minimum time quantum, from the start of the bit time on the TX pin to the
> +actual measurement on the RX pin. The SSP is calculated as the sum of two
> +configurable values: the TDC Value (TDCV) and the TDC offset (TDCO).
> +
> +TDC, if supported by the device, can be configured together with CAN-FD
> +using the ip tool's "tdc-mode" argument as follow::
> +
> +- **omitted**: when no "tdc-mode" option is provided, the kernel will
> +  automatically decide whether TDC should be turned on, in which case it

The above apparently makes htmldoc unhappy:

New errors added
--- /tmp/tmp.ZsYbmUst3Y	2025-10-12 14:23:45.746737362 -0700
+++ /tmp/tmp.8o1xOCQtDp	2025-10-12 14:58:29.920405220 -0700
@@ -15,0 +16 @@
+/home/doc-build/testing/Documentation/networking/can.rst:1484: ERROR:
Unexpected indentation.

Could you please address the above and send a v2?

Thanks,

Paolo


  reply	other threads:[~2025-10-13  7:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-12 14:20 [PATCH net 0/9] pull-request: can 2025-10-12 Marc Kleine-Budde
2025-10-12 14:20 ` [PATCH net 1/9] can: gs_usb: increase max interface to U8_MAX Marc Kleine-Budde
2025-10-12 14:20 ` [PATCH net 2/9] can: gs_usb: gs_make_candev(): populate net_device->dev_port Marc Kleine-Budde
2025-10-12 14:20 ` [PATCH net 3/9] can: m_can: m_can_plat_remove(): add missing pm_runtime_disable() Marc Kleine-Budde
2025-10-12 14:20 ` [PATCH net 4/9] can: m_can: m_can_handle_state_errors(): fix CAN state transition to Error Active Marc Kleine-Budde
2025-10-12 14:20 ` [PATCH net 5/9] can: m_can: m_can_chip_config(): bring up interface in correct state Marc Kleine-Budde
2025-10-12 14:20 ` [PATCH net 6/9] can: m_can: fix CAN state in system PM Marc Kleine-Budde
2025-10-12 14:20 ` [PATCH net 7/9] can: m_can: replace Dong Aisheng's old email address Marc Kleine-Budde
2025-10-12 14:20 ` [PATCH net 8/9] can: remove false statement about 1:1 mapping between DLC and length Marc Kleine-Budde
2025-10-12 14:20 ` [PATCH net 9/9] can: add Transmitter Delay Compensation (TDC) documentation Marc Kleine-Budde
2025-10-13  7:45   ` Paolo Abeni [this message]
2025-10-13 10:12     ` Vincent Mailhol
2025-10-15  9:43     ` Marc Kleine-Budde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1157f3fe-f88b-449f-a4c2-aac9d27c95ea@redhat.com \
    --to=pabeni@redhat.com \
    --cc=davem@davemloft.net \
    --cc=kernel@pengutronix.de \
    --cc=kuba@kernel.org \
    --cc=linux-can@vger.kernel.org \
    --cc=mailhol@kernel.org \
    --cc=mkl@pengutronix.de \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).