Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp435561pxb; Thu, 19 Aug 2021 03:12:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVcDWxKs+bGLZtMJkk8SMzTxAMwfXB15Jw8xLytXSgyWKhVbGXKMkjT/hFhFspnNnnTiGz X-Received: by 2002:a05:6402:5112:: with SMTP id m18mr15663879edd.47.1629367940221; Thu, 19 Aug 2021 03:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629367940; cv=none; d=google.com; s=arc-20160816; b=sn5WL6O04rEZxCZ8A6zfsUOse2h57Q9Y0IRO9FuOWouSe3mZctlpIC9XmkW0m5PXsL v7kN0rjKxhJ1kluY+u2hLenoXS+ShTMMNJChMX9NpRVxG5fnYhLH8PPQHjbE+zJ0reXj S/OQWCuzSxNRWSbyR1Uq01krFPFJuPzpdaTsaGMXBZrwRJbDNx7zVEeBwQdLXUgv4yBu 5Hz0q0NOcdyZml6Gd69PIyJivJXPjSeFMU/+DQu4AjjwxS3j2MwTSEQbNvycatsAls15 aWi8f/unVLEG0EsfE4u9Kdf9iIvFWx6B5ikUNYSDXGfP5dmmOwdGHqzoM16gEH3QKO+E 1v7w== 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=orGJ1WZVEUaKzDgoIBLnMKRHqhkke7+F6qfSyP+7zLY=; b=Q35jTYiHQzYWUXI13tEuBrNKhzsXdhaNyH2cxFBZ5ohSkoWe1ALwi23bdYBR8BFYmg Cfx57M7c9KAmGzGcaumMBaE26ykHg1ETAqVAnNuJsjJ1FSFdVnDrCYOR/br83sdRyW0U 7wRYG133RAnxygM0OEclRxl0gf+zVqzxIkE66wjHPsSqFfcbw8DcbSQclq6hl8N97Jnu XNg3+ESihLo16fQUAfk7vd/jS7TS9QbXxq5SjAEElButJm9k3ylvLCAfUOEwOzRQYo2y 4Yt6dIQVD5w8LXh8lLgkLv9NSHB5FdAuiVgTXCxbbV7z9szNcEIt0mLY/PRHlTAXJtad vKiA== 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 j2si2914522eds.437.2021.08.19.03.11.51; Thu, 19 Aug 2021 03:12:20 -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 S237677AbhHSKIW (ORCPT + 99 others); Thu, 19 Aug 2021 06:08:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237746AbhHSKIW (ORCPT ); Thu, 19 Aug 2021 06:08:22 -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 2DB65C061756 for ; Thu, 19 Aug 2021 03:07:46 -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 1mGexb-00043B-U9; Thu, 19 Aug 2021 12:07:43 +0200 Received: from pengutronix.de (unknown [IPv6:2a02:810a:8940:aa0:5b60:c5f4:67f4:2e1e]) (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 1CC0766A599; Thu, 19 Aug 2021 10:07:42 +0000 (UTC) Date: Thu, 19 Aug 2021 12:07:40 +0200 From: Marc Kleine-Budde To: Vincent MAILHOL Cc: linux-can , Stefan =?utf-8?B?TcOkdGpl?= , netdev , open list Subject: Re: [PATCH v5 1/7] can: netlink: allow user to turn off unsupported features Message-ID: <20210819100740.l4ci5taj6m27x2am@pengutronix.de> References: <20210815033248.98111-1-mailhol.vincent@wanadoo.fr> <20210815033248.98111-2-mailhol.vincent@wanadoo.fr> <20210819074514.jkg7fwztzpxecrwb@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lyy5ts6arsg6xxal" Content-Disposition: inline In-Reply-To: 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 --lyy5ts6arsg6xxal Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 19.08.2021 18:24:27, Vincent MAILHOL wrote: > On Thu. 19 Aug 2021 at 16:45, Marc Kleine-Budde wrot= e: > > On 15.08.2021 12:32:42, Vincent Mailhol wrote: > > > The sanity checks on the control modes will reject any request related > > > to an unsupported features, even turning it off. > > > > > > Example on an interface which does not support CAN-FD: > > > > > > $ ip link set can0 type can bitrate 500000 fd off > > > RTNETLINK answers: Operation not supported > > > > > > This patch lets such command go through (but requests to turn on an > > > unsupported feature are, of course, still denied). > > > > > > Signed-off-by: Vincent Mailhol > > > > I'm planing to send a pull request to net-next today. I want to do some > > more tests with this series >=20 > Ack, I am also preparing a new version. But first, I am just > waiting for your reply on the tdc-mode {auto, manual, off}. :) I want to do some proper testing, if it's now working as I'm expecting, before continuing the discussion. :D > > but this patch is more or less unrelated, > > so I can take it in this PR, should I? >=20 > FYI, the reason to add it to the series is that when setting TDC to > off, the ip tool sets both CAN_CTRLMODE_TDC_AUTO and > CAN_CTRLMODE_TDC_MANUAL to zero (which the corresponding bits in > can_ctrlmode::mask set to 1). Without this patch, netlink would > return -ENOTSUPP if the driver only supported one of > CAN_CTRLMODE_TDC_{AUTO,MANUAL}. Oh, I see. > Regardless, this patch makes sense as a standalone, I am fine if > you include it in your PR. Why not, reduces the patch amount on your side :) > Also, if you want, you can include the latest patch of the series as well: > https://lore.kernel.org/linux-can/20210815033248.98111-8-mailhol.vincent@= wanadoo.fr/ >=20 > It's a comment fix, it should be pretty harmless. Ok, makes sense. 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 | --lyy5ts6arsg6xxal Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEK3kIWJt9yTYMP3ehqclaivrt76kFAmEeLWoACgkQqclaivrt 76kV/Af/aQMfgwa5V4mMqsDeBdm/vXj2gp5/xZI0co2GN7kjwo0sXws9VF7Dsg0Z LIzH79naGLMLfs/3zx1xOpqLCmGNhu9SV+rneZZZtJQ32f18UVD0u34Zg3+SJ3QN DmPO5TKQFS9c+bDXbBxHGxza2eZTP1L1aGqFU4f4GzGB0HMwD84DV7xqmzmzWA3o IkqKqYdTcV0zf6H+IqvtXY1TNKHqTbxPajUn4DwQs2XXZzCyw7ynoR3I+BSZmDNW KEZ5uUBJ4NIYPC5HRfGsftyBfEKARgbzc54Vs0O+b9PPlCR3ucVs15kB4tZbstPn GlgNuVG9//8vf36wGB1Y2HBiIUCD8g== =KMQY -----END PGP SIGNATURE----- --lyy5ts6arsg6xxal--