Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D465C433E0 for ; Sun, 21 Mar 2021 07:34:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3AD646191A for ; Sun, 21 Mar 2021 07:34:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229863AbhCUHd6 (ORCPT ); Sun, 21 Mar 2021 03:33:58 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:20198 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbhCUHdw (ORCPT ); Sun, 21 Mar 2021 03:33:52 -0400 Received: from tomoyo.flets-east.jp ([153.202.107.157]) by mwinf5d13 with ME id ivZc240053PnFJp03vZlav; Sun, 21 Mar 2021 08:33:46 +0100 X-ME-Helo: tomoyo.flets-east.jp X-ME-Auth: bWFpbGhvbC52aW5jZW50QHdhbmFkb28uZnI= X-ME-Date: Sun, 21 Mar 2021 08:33:46 +0100 X-ME-IP: 153.202.107.157 From: Vincent Mailhol To: Marc Kleine-Budde , linux-can@vger.kernel.org Cc: Vincent Mailhol Subject: [PATCH v4 0/1] Introducing new CAN FD bittiming parameters: Transmission Delay Compensation (TDC) Date: Sun, 21 Mar 2021 16:33:28 +0900 Message-Id: <20210321073329.1454-1-mailhol.vincent@wanadoo.fr> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-can@vger.kernel.org I made a silly mistake which cause the automatic tdco calculation not to work and failed to catch it during my testing (I probably was to focussed to test the netlink interface, and forget to test the most obvious use case...) One incremental patch to be applied on the v3. The patch contains detailed instruction after the "---" scissors. Changes from v3: - do tdco calculation after data bittiming is copied to can_priv. Changes from v2: - Reorder the IFLA_CAN_TDC* entries in can_policy structure - Increase readability of the TDCO formula by introducing a temporary variable. Changes from v1: - Changed the commit message of the first patch of the serie to clarify the condition of when TDC is active. - Changed the alignment style from tabulations to single space in drivers/net/can/dev/netlink.c - Remove duplicated [IFLA_CAN_TERMINATION] entry in drivers/net/can/dev/netlink.c Changes from the RFC: - The RFC was a single e-mail with all comments in bulk, made this a proper patch series. - Added the netlink interface. - Rename the function can_set_tdc to can_calc_tdco (the formula is the same, everything around it was reworked). - Other small miscellaneous changes. Vincent Mailhol (1): can: netlink: do tdco calculation after data bittiming is copied to can_priv drivers/net/can/dev/netlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.26.2