Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp145882iol; Thu, 9 Jun 2022 00:24:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0zlkemWwuZp2tLtIxuNXQr/rycniREfGj2GY3Za9TuH8faKOct12iWWvGkxrHcRWOcgKK X-Received: by 2002:a17:906:eb54:b0:708:99d6:83e with SMTP id mc20-20020a170906eb5400b0070899d6083emr34286691ejb.745.1654759460694; Thu, 09 Jun 2022 00:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654759460; cv=none; d=google.com; s=arc-20160816; b=iLzDvDiMU3GgEEr34mkOQrxmeUBiGkEeFyeKRA68L60AsMEdutqtphsPXmEXcdBIc/ GuKwcEmXzQFrRWBxPb/40eBvznALTXswj064ub/f1eg9X9+4QZvcpDrv+dQpFQU57/ZE KcVJwjHb3jedrYg/6rgmoSBw0Tvc//VmlDkytO2Kq2n7PCQeiTl2BLlQLJv2j+AkagXZ Hndnlm49SPVQ349mUL3rDkZpIwTu2WJafqXWG202yaKUWMpLgsHHZrF4y93dr4Kzkvmc /ECgy1Ed1EA1R95RZwKPva82y53AxACrnG2/jKj+QijFy1Xej1GktlRaigmK1aS6+HQG elbQ== 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=BCNz/tnNPn4WeDXHjWP2xfBBeHekS66Q+obVkCj2JTs=; b=eKwwXZXBY04hjaTd/86dfEO6S6ACifA01Av97eOCbgb5NoHiX3XX2bourmtu6h3kxm rttAR5hPCEUOKiNKTLL7xcdt1Trf85eC/gz4CIRhkrgMtle2PtVvKDB6r8H7p8W5aTok Y5tn9kGVSPs1+MsRJau92Q+oUPzCoPwZmaeZVkWZ7iZ5du26D3ThayWgQu+AYUwWmV4o 5PAS1yvrTcyWKUl/mh7CPWP9CSUxzYvCx21vaGF5dlP7qd1QplmF5b3xGPRxsA8Nz1rw SYRJ3dJ4J0GZaYwjFYYJi7lk16cNKJqhVeO0hR4597sgteFMWrKTes96T86yBy5VyV7R OP5g== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc17-20020a170907169100b006e88d2e4fe2si4455390ejc.967.2022.06.09.00.23.52; Thu, 09 Jun 2022 00:24:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238866AbiFIHQv (ORCPT + 99 others); Thu, 9 Jun 2022 03:16:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237469AbiFIHQt (ORCPT ); Thu, 9 Jun 2022 03:16:49 -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 DD9A424319C for ; Thu, 9 Jun 2022 00:16:48 -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 1nzCPH-0004ve-Ff; Thu, 09 Jun 2022 09:16:39 +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 1D9A78FC8B; Thu, 9 Jun 2022 07:16:37 +0000 (UTC) Date: Thu, 9 Jun 2022 09:16:36 +0200 From: Marc Kleine-Budde To: Dario Binacchi Cc: linux-kernel@vger.kernel.org, Amarula patchwork , michael@amarulasolutions.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Wolfgang Grandegger , linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [RFC PATCH 06/13] can: slcan: allow to send commands to the adapter Message-ID: <20220609071636.6tbspftu3yclip55@pengutronix.de> References: <20220607094752.1029295-1-dario.binacchi@amarulasolutions.com> <20220607094752.1029295-7-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7stl6ydzt5xshu4k" Content-Disposition: inline In-Reply-To: <20220607094752.1029295-7-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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 --7stl6ydzt5xshu4k Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 07.06.2022 11:47:45, Dario Binacchi wrote: > This is a preparation patch for the upcoming support to change the > bitrate via ip tool, reset the adapter error states via the ethtool API > and, more generally, send commands to the adapter. >=20 > Since some commands (e. g. setting the bitrate) will be sent before > calling the open_candev(), the netif_running() will return false and so > a new flag bit (i. e. SLF_XCMD) for serial transmission has to be added. >=20 > Signed-off-by: Dario Binacchi I think this patch can be dropped, let me explain: You don't have to implement the do_set_bittiming callback. It's perfectly OK to set the bitrate during the ndo_open callback after open_candev(). 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 | --7stl6ydzt5xshu4k Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmKhnlEACgkQrX5LkNig 011KPAf+MP0nAePFTpQQJOwpxv468csZ37atHCgPNOWmGIw4u0n3zvQnLJzPOzY3 G5hckJvFCJblep4Dxm3k2XU0zYo8cK/nQ5lLJ1jYQ1rh1RZzlET/7bV2nu/yCFzm aiRzEksO6SZMDLCy6BwMB6lwXEtMYdwpDrS2fOcn5Rcv17NJez2bJH5C3kIa5Wrp XPzVcgUYeD8Z+ARdkOsUvbwWnl1bHmGZaLrZWWtEbmqQ5w/Kq0z4zwvwUKo14mNx 4d3KUwFcbJMtuwpz65qc5De9YjESWawuCqJfLw19InkhJElsxNQAUuWIEt+SE8jR UZJRpgRPRue7e1aXyRiGPwmuGwTgEQ== =jCQx -----END PGP SIGNATURE----- --7stl6ydzt5xshu4k--