Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2136352iof; Tue, 7 Jun 2022 20:58:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUS7FXAmfbTmxsWmEbZnqpCSmhGK1kwcFcosZXiJs5gXvpiSu81CH1C540u18E+Fy9x2Do X-Received: by 2002:a17:902:d584:b0:167:6ab9:b094 with SMTP id k4-20020a170902d58400b001676ab9b094mr18755832plh.16.1654660708089; Tue, 07 Jun 2022 20:58:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654660708; cv=none; d=google.com; s=arc-20160816; b=arwg0hy48Bm/ER8WKOYF8Afgp77/qeKAEdOsgsW8m3YFwlPVNlspDas4L2tpax4dAb ATMvaZu3ksbkuiNemvKdz/vzYVY7ZQoRpbD5GVxajxV+eQCWJzmhE1T8GgM/xC0hO6nL I0zaO1nuVJ8ciBQuRfFwZmaDjr4bTDSWZaIcAdERCdD4nzCt2o5aVQ6I6lzwlH67dgZG W+d2c3r28ZBVB1ycEqKBej0jZRO1pX2Jfm1zAeoE1Pgm7oveiDBXs+Vuy/zUAhe232nh tHflVgIMznW6FlMpip4R3/OMlTu85bYO/8vfeYFjHbBHZCnM5wt001EWtqeSQKstEFtw ljWQ== 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=eTzMG+vQ/Drr0zS8QwddKwJcUr9vO89CGHbTbyzUiIs=; b=WihfSUiup3IG15AiPbt1wIoNuPIuskVhIJAxdX6Uf4z/2c82TGK+PpkqYa9LiHxqX/ NBMoJBHInmYThacGAvOjStA4S5UOKrJJbrzBdFCPsONlHv14PDyeb80beO2sJU99r2W6 i6s26bQzcTO7n8NdTR0Zw3toC/DeW6cLKRSJrkc1j1f3OVuZW3eTkW8qC594p0ugTNOY LZlxLpj1pfjmRCcZjtu96eAN+YhdJo7nI7IJ/w/9XH/Jde1IWdUE2NYXsOs0eDHGvpPj NJRHEcvL83p3WqPaCvfBYb2ZxBUApueE7dMh2sWWbVLMPIKLlRXBg5kTGcaYIa10pITm cr5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q16-20020a63d610000000b003fc3c770296si27275700pgg.83.2022.06.07.20.58.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 20:58:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C3EA93E73C8; Tue, 7 Jun 2022 20:21:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242097AbiFGK4P (ORCPT + 99 others); Tue, 7 Jun 2022 06:56:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242642AbiFGK4A (ORCPT ); Tue, 7 Jun 2022 06:56:00 -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 A9A718A323 for ; Tue, 7 Jun 2022 03:52:39 -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 1nyWp1-00068N-Le; Tue, 07 Jun 2022 12:52:27 +0200 Received: from pengutronix.de (unknown [IPv6:2a01:4f8:1c1c:29e9:22:41ff:fe00:1400]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) 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 C13678DBA9; Tue, 7 Jun 2022 10:52:25 +0000 (UTC) Date: Tue, 7 Jun 2022 12:52:25 +0200 From: Marc Kleine-Budde To: Dario Binacchi Cc: linux-kernel@vger.kernel.org, Amarula patchwork , michael@amarulasolutions.com, "David S. Miller" , Eric Dumazet , Greg Kroah-Hartman , Jakub Kicinski , Jiri Slaby , Paolo Abeni , Sebastian Andrzej Siewior , Vincent Mailhol , Wolfgang Grandegger , linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [RFC PATCH 11/13] can: slcan: add ethtool support to reset adapter errors Message-ID: <20220607105225.xw33w32en7fd4vmh@pengutronix.de> References: <20220607094752.1029295-1-dario.binacchi@amarulasolutions.com> <20220607094752.1029295-12-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="iuaxzdq6irzebpfy" Content-Disposition: inline In-Reply-To: <20220607094752.1029295-12-dario.binacchi@amarulasolutions.com> 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --iuaxzdq6irzebpfy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 07.06.2022 11:47:50, Dario Binacchi wrote: > This patch adds a private flag to the slcan driver to switch the > "err-rst-on-open" setting on and off. >=20 > "err-rst-on-open" on - Reset error states on opening command >=20 > "err-rst-on-open" off - Don't reset error states on opening command > (default) >=20 > The setting can only be changed if the interface is down: >=20 > ip link set dev can0 down > ethtool --set-priv-flags can0 err-rst-on-open {off|on} > ip link set dev can0 up >=20 > Signed-off-by: Dario Binacchi I'm a big fan of bringing the device into a well known good state during ifup. What would be the reasons/use cases to not reset the device? 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 | --iuaxzdq6irzebpfy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmKfLeYACgkQrX5LkNig 012aSQf/XyECEKk/TwoC1qpcrU6CZDRxLCJs8tO38g6r8u6mGtbNQEwIhtUIYwPZ 4bPJ+V4a3GaJ1QyY0uAQUZVvrJLergmgsAw+xXg4wYHFzwSG46M7gxtAFiHP7JE8 rT9u+6IYs7gnhDsp24FpscyE/B7PJ+DaJRvqXe6WO74cPR9hIYlNHgNX5NElUWcz IT1rFeGbnYpuW481T0PELKvF7sx8QnGSMPFtrij3vxaNOE9iI5ikMaTiotYM3u2S 9rG8i3HKyN8xpGt5WXr4mDei4ZQrxSFrUdGQnl6bsDve27+3os44YrXWeFF/+Opa T9DFUSWf/2gt3UrSmFM/Kfb6qvxL0Q== =PcMi -----END PGP SIGNATURE----- --iuaxzdq6irzebpfy--