Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1238701pxj; Fri, 18 Jun 2021 02:44:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzqs13C2z9xsR0AYEo2lgmmbHTGA1iPTv46d/IubXtT/0sguaK2EugwD+uqo6vAfK4/Nux X-Received: by 2002:a05:6402:1a:: with SMTP id d26mr3835210edu.105.1624009442857; Fri, 18 Jun 2021 02:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624009442; cv=none; d=google.com; s=arc-20160816; b=a9Qk5B5X1zDAVbEE2hTWfY09QxAcZ6MOOhhMAJgyaxDtcfV9TmjpLdrJcE2mP7UPEH TTSnlovzP2QNsURTGr2ojBc4x+WVN+Jt7991NlITcSemNsvfFahpA2DS/XZCmrjsrVqu MtH3rnxy+V+wy8NfNcr2kc78LROqbJsuS7LPhM7pUxnYgSjlXj0hc5k4k2lp3d+xtfKt +drZB2AVbeRHAuaOXNsms7W0y/r1pkCpB6u7VS1jndN7V6xUU2xdMAERNKrOAhHeE9En nA6ebyeW2YvQEkAE4fcA7FOe/2VW5VjUYK6+V+BNa6YrHq5OzkZHxi594PbGEoFTRfCt 88hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=bqr99dwuBdUU14WgsVaidgbSZz3PWh2CZfnB8XT4wS8=; b=pw91dvOuR9GKtjLyK+cccLe7hxNpequZjShC06ZAxa6QhQ3M5J+ygiPatcKpnZbokr AaikxqLGUp34UwIqlKDzf3iTk7laut/S5inbcojxOa5Q2RvzRjevrzjVNvzf5lFSGTEz l4Y1CnSsocxyG2ysxfcxqHocwpWouyaE47IGd4jFycVaj9KulOZhbui6YNP2tj2F/ylW Ci6HT3GPW9mkU/2lezjwGbd8o5p7+lSQDcu4YyGHRsSPzoIKN8OIxEreDJUdPSnO/HcW 5F+pyJsxS8uxhPsMl6lHPeIp8mqTf/Hj4j1q94YqAGLWiTMtIwzvlpIVmZCuE7FDboiQ CoPQ== 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 v7si2081662ejk.196.2021.06.18.02.43.40; Fri, 18 Jun 2021 02:44:02 -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 S231467AbhFRJgl (ORCPT + 99 others); Fri, 18 Jun 2021 05:36:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbhFRJgi (ORCPT ); Fri, 18 Jun 2021 05:36:38 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1870C06175F for ; Fri, 18 Jun 2021 02:34:28 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luAtO-00039n-NP; Fri, 18 Jun 2021 11:34:26 +0200 Received: from pengutronix.de (unknown [IPv6:2a03:f580:87bc:d400:e7d0:b47e:7728:2b24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 4E88163EBDD; Fri, 18 Jun 2021 09:34:25 +0000 (UTC) Date: Fri, 18 Jun 2021 11:34:24 +0200 From: Marc Kleine-Budde To: Vincent Mailhol Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Oliver Hartkopp Subject: Re: [PATCH v2 2/2] can: netlink: add interface for CAN-FD Transmitter Delay Compensation (TDC) Message-ID: <20210618093424.xohvsqaaq5qf2bjn@pengutronix.de> References: <20210603151550.140727-1-mailhol.vincent@wanadoo.fr> <20210603151550.140727-3-mailhol.vincent@wanadoo.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="55cmhyzkkat2oovn" Content-Disposition: inline In-Reply-To: <20210603151550.140727-3-mailhol.vincent@wanadoo.fr> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --55cmhyzkkat2oovn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 04.06.2021 00:15:50, Vincent Mailhol wrote: > Add the netlink interface for TDC parameters of struct can_tdc_const > and can_tdc. >=20 > Contrary to the can_bittiming(_const) structures for which there is > just a single IFLA_CAN(_DATA)_BITTMING(_CONST) entry per structure, > here, we create a nested entry IFLA_CAN_TDC. Within this nested entry, > additional IFLA_CAN_TDC_TDC* entries are added for each of the TDC > parameters of the newly introduced struct can_tdc_const and struct > can_tdc. >=20 > For struct can_tdc_const, these are: > IFLA_CAN_TDC_TDCV_MAX > IFLA_CAN_TDC_TDCO_MAX > IFLA_CAN_TDC_TDCF_MAX >=20 > For struct can_tdc, these are: > IFLA_CAN_TDC_TDCV > IFLA_CAN_TDC_TDCO > IFLA_CAN_TDC_TDCF I just noticed in the mcp2518fd data sheet: | bit 14-8 TDCO[6:0]: Transmitter Delay Compensation Offset bits; | Secondary Sample Point (SSP) Two=E2=80=99s complement; offset can be posi= tive, | zero, or negative. |=20 | 011 1111 =3D 63 x TSYSCLK | ... | 000 0000 =3D 0 x TSYSCLK | ... | 111 1111 =3D =E2=80=9364 x TSYSCLK Have you takes this into account? regards, Marc --=20 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 | --55cmhyzkkat2oovn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEK3kIWJt9yTYMP3ehqclaivrt76kFAmDMaJ4ACgkQqclaivrt 76mKgAf9EkwICK14DmNGr4PmhjSWmlCIR0wQxINtOIXd10bn/QiPLDhtu9MSRN3X Z22joQoze/4/cH2nRsPFNmhkNjiPX8CYYR4JJw6wimr9DpNp1l6R2w/gkaZOgJrw QnH9oJ9eIbw0CCK9GHkpB43PoFsJYRNvGJAj6W4aUFY6JfwY1z+OkAkaxsmJL110 wtdD5XxSf2MJlgjrJOG94qI95tbcYvIk48AhiV6f1F7D26jEudo5zWySa0jKw134 q7NerS+9zNf2V5LcSSlE2pMn81aC9JTzYGrsM6lBKJQQSFNqdgT80PPj16A0bdk1 SuFnaI9VtjXbiaj1vv3z8kOt3PrQtA== =1QdF -----END PGP SIGNATURE----- --55cmhyzkkat2oovn--