Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1230501pxj; Fri, 18 Jun 2021 02:31:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNwT5djmlNZ8QxPjMTr4VFhYBdMN4rftt+Fg/HsnofE0Pu66aPcrCQhk2SOlpcAUZVfomv X-Received: by 2002:a17:907:d92:: with SMTP id go18mr10152488ejc.317.1624008671577; Fri, 18 Jun 2021 02:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624008671; cv=none; d=google.com; s=arc-20160816; b=juZNutQLN5TnYDGAG4B0jCuVuTrdwtAQn3Yd4XcfQ4ZXfBY4DVs/Y/NgpxuUPqqGem qta4IRt6NEB4WIo4ipOYnE/e42L4lS7fH1A9G9gmgl5YRyyV5/tTbiK9Bib7TY3O2g/r 6KPPGs8IaaKaKJLfqXk8qYdqYCr1s4cCm8RyPu+AHzsRDs8q+zQsrBz9mmCxaLCmItsi +eeKIoemSrLhYftvW6xWWoBLQKpMcaF4Ro7gLJiSjk13Dwa9mwMEl7BaeeLFDv21NF9n rCFbMr4MyTLOj+RwtmZAQiDwsWLS7roTxGSHedbh6PYWQ0yRJV0jrYxAegDO8cIvw6Vp xsXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=qJEScWYt73mXRaQ8GIVke/MJlyIoe5c+YZ1CVgkzQMs=; b=RApS8llMIRxk0DK0iVfw7TP2MB6uJ0en0d7FG/JfrVGXhjso5oaaAO8q4IuKqobfyZ IUWn/Q7YmxXlvOf9OMEEOyHi7PyQF6baE4T5EQwUXrp6L7w7OQw6JLzEpx8ZSGUhnPuI PVRcXdfQfJrFYadghbxxomW+JlH7soosP9HoUKRdWst6rqs8g1EYlpysqIBBS+SuaJ+R etYqB+3v4sFnm2xi2q59Q2Y+ylUnW/U8+z5GeYGxwZmtxxjGHFjOYFBnAcpNRX3vzByS 9R68HNLPE0ARC4X+gFtKB3YvQ2Ek4u/bj1OE6KVhzQdasHfD9m2RHOhJsCMIVD72q23E VSkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si1887469ejz.328.2021.06.18.02.30.47; Fri, 18 Jun 2021 02:31:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231631AbhFRIzs (ORCPT + 99 others); Fri, 18 Jun 2021 04:55:48 -0400 Received: from smtp05.smtpout.orange.fr ([80.12.242.127]:43368 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231319AbhFRIzr (ORCPT ); Fri, 18 Jun 2021 04:55:47 -0400 Received: from localhost.localdomain ([114.149.34.46]) by mwinf5d28 with ME id JYtR2500E0zjR6y03Ytabz; Fri, 18 Jun 2021 10:53:37 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: bWFpbGhvbC52aW5jZW50QHdhbmFkb28uZnI= X-ME-Date: Fri, 18 Jun 2021 10:53:37 +0200 X-ME-IP: 114.149.34.46 From: Vincent Mailhol To: Marc Kleine-Budde , Stephen Hemminger , linux-can@vger.kernel.org Cc: Oliver Hartkopp , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Mailhol Subject: [PATCH v3 0/4] iplink_can: cleaning, fixes and adding TDC support. Date: Fri, 18 Jun 2021 17:53:18 +0900 Message-Id: <20210618085322.147462-1-mailhol.vincent@wanadoo.fr> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The main purpose is to add commandline support for Transmitter Delay Compensation (TDC) in iproute. Other issues found during the development of this feature also get addressed. This patch series contains four patches which respectively: 1. Correct the bittiming ranges in the print_usage function. 2. factorize the many print_*(PRINT_JSON, ...) and fprintf occurrences in a single print_*(PRINT_ANY, ...) call and fix the signedness while doing that. 3. report the value of the bitrate prescalers (brp and dbrp). 4. adds command line support for the TDC in iproute and goes together with below series in the kernel: https://lore.kernel.org/r/20210603151550.140727-3-mailhol.vincent@wanadoo.fr ** Changelog ** From RFC v1 to RFC v2: * Add an additional patch to the series to fix the issues reported by Stephen Hemminger Ref: https://lore.kernel.org/linux-can/20210506112007.1666738-1-mailhol.vincent@wanadoo.fr/T/#t From RFC v2 to v3: * Dropped the RFC tag. Now that the kernel patch reach the testing branch, I am finaly ready. * Regression fix: configuring a link with only nominal bittiming returned -EOPNOTSUPP * Added two more patches to the series: - iplink_can: fix configuration ranges in print_usage() - iplink_can: print brp and dbrp bittiming variables * Other small fixes on formatting. Vincent Mailhol (4): iplink_can: fix configuration ranges in print_usage() iplink_can: use PRINT_ANY to factorize code and fix signedness iplink_can: print brp and dbrp bittiming variables iplink_can: add new CAN FD bittiming parameters: Transmitter Delay Compensation (TDC) include/uapi/linux/can/netlink.h | 25 +- ip/iplink_can.c | 430 ++++++++++++++++--------------- 2 files changed, 247 insertions(+), 208 deletions(-) -- 2.31.1