Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5372616rwr; Mon, 24 Apr 2023 03:12:32 -0700 (PDT) X-Google-Smtp-Source: AKy350al+PZ+L37xc0sOtlBKdAYx8Edj+4qJrdHIYk8vlDj0HHoEu6i+lGT4pBc6JcXcWUGqQQdV X-Received: by 2002:a17:903:124b:b0:1a9:236d:2fd3 with SMTP id u11-20020a170903124b00b001a9236d2fd3mr16000427plh.53.1682331152353; Mon, 24 Apr 2023 03:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682331152; cv=none; d=google.com; s=arc-20160816; b=fa6/8H+oSn0s8lX7L9wk1bQFcqwmCZnAVBRxxsJ1fYfbRrbUb7PCMQwKrClG64aRse 6EQ4eFVHXlVDYsmbeIV69iFiPIe5/zfujZvV8FaSO51UhelaVFzfwdmorwHKA6mGBOi2 01sEd70tHOdEr5AafHh5ChPhnEjQYSsRiDohG96sbc0cvDn2eoP43E1YnkdKcRfYmpCE K7V8FJySEIunzqX4u1bgCbMMAWQcgdXZ8S+kFSsXUC01Bk6MxshtDZ6JHf8DJfd2T4If Go1Ps54hpZFC8b8PzJMIXss3lhwa/nZLZYyBQCOlHajwiZNkY2eyNTLQjBOJHJh0Y05r ycog== 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=IpwYcPz1lKF9SR+ffV6CilJnQhWElPkzLYJrRwVLIsA=; b=aUwkDQ5zfHa4GqDL4xOINmDxyXZH6a66EC7NxLvRIrDEkIh57jL1PKxu8V9YzXsDJQ 8YwT8EbjelBP+j6dhW9LRbT6RCORnzxL8WnnYyKa3hMed4X7zyJrgOEZdxrTi3Zc3cD/ +JzIx0c1aNznyvKtlwHXz43DoXMD200XJYaKUC+qjCs6at5v4vbc8j2t0sMQslP+SESB BGutDjCR2tW1cZi1nRHLfMVwkcgShdppmGWgxWJWl9SI6QzrJIBrhx//BVH8/puG03CB MCQqqNC9DpbBxuXUJVf7LtpzvEz+yEe27A0Nu3dMm38Lw6/ghkpQV9hZbUmGAv3n3XQz fxyA== 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 y18-20020a170902b49200b001a81436c88bsi8822823plr.403.2023.04.24.03.12.20; Mon, 24 Apr 2023 03:12:32 -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 S230426AbjDXKGx (ORCPT + 99 others); Mon, 24 Apr 2023 06:06:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231255AbjDXKGv (ORCPT ); Mon, 24 Apr 2023 06:06:51 -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 9BE911BD3 for ; Mon, 24 Apr 2023 03:06:48 -0700 (PDT) Received: from moin.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::7b] 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 1pqt5c-0004Gj-FR; Mon, 24 Apr 2023 12:06:32 +0200 Received: from pengutronix.de (unknown [172.20.34.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) 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 BEF441B60C8; Mon, 24 Apr 2023 10:06:29 +0000 (UTC) Date: Mon, 24 Apr 2023 12:06:28 +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: [PATCH 4/4] can: bxcan: add support for single peripheral configuration Message-ID: <20230424-fracture-going-5dcaf06a9e6c-mkl@pengutronix.de> References: <20230423172528.1398158-1-dario.binacchi@amarulasolutions.com> <20230423172528.1398158-5-dario.binacchi@amarulasolutions.com> <20230423-surplus-spoon-4e8194434663-mkl@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nlfwcmgjkz5caxu3" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2a0a:edc0:0:b01:1d::7b 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 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 --nlfwcmgjkz5caxu3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 24.04.2023 08:56:03, Dario Binacchi wrote: > > This probably works. Can we do better, i.e. without this additional cod= e? > > > > If you add a syscon node for the single instance CAN, too, you don't > > need a code change here, right? >=20 > I think so. >=20 > I have only one doubt about it. This implementation allows, > implicitly, to distinguish if the peripheral is in single > configuration (without handle to the gcan node) or in double > configuration (with handle to the gcan node). For example, in single > configuration the peripheral has 14 filter banks, while in double > configuration there are 26 shared banks. Without code changes, this > kind of information is lost. Is it better then, for future > developments, to add a new boolean property to the can node of the dts > (e.g. single-conf)? The DT ist not yet mainline, so we can still change it. Another option is to have "st,can-primary" and "st,can-secondary" for the shared peripherals and nothing for the single instance. regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung N=C3=BCrnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 | --nlfwcmgjkz5caxu3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEDs2BvajyNKlf9TJQvlAcSiqKBOgFAmRGVKIACgkQvlAcSiqK BOhkmwf/fVsu1OGCtagGs762m2UGMM/F1PtRokDn3Tcnq/TQBj4sCNJ6zYtz9sfX kk1N7j3IpnOzDGeoR4UaeTzxg3Eu5dHoLsFGoka0mHd3RsOvbL4PO0UFAWAjv8lQ ys32uN6DHtSPHCOWhCWbDxaO+7ebiEXoyCmf8NGYwYBMzOnTSDl13uPTKgo/l60t 2JJFQwbFbmhE9BBxkRKfWuN6VuyO5X0XdQl880tUiWZ8PkUQDwYrTnKYnNE8MIxC xGoAmo1WKnPGCA8HB+878bgQ/Vf8/fMsUZJezFCN8sZ0QGGwo6HKq4MRSJ+Dse40 d/tLDEVGvEa0iVfBmaswhHr+jLd0lg== =Ifbf -----END PGP SIGNATURE----- --nlfwcmgjkz5caxu3--