From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D966EC04A68 for ; Thu, 28 Jul 2022 10:57:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234566AbiG1K5l (ORCPT ); Thu, 28 Jul 2022 06:57:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235498AbiG1K5k (ORCPT ); Thu, 28 Jul 2022 06:57:40 -0400 Received: from mail.enpas.org (zhong.enpas.org [46.38.239.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 90A945F134; Thu, 28 Jul 2022 03:57:39 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.enpas.org (Postfix) with ESMTPSA id 00AF0FFCE8; Thu, 28 Jul 2022 10:57:36 +0000 (UTC) Date: Thu, 28 Jul 2022 12:57:34 +0200 From: Max Staudt To: Dario Binacchi Cc: Marc Kleine-Budde , linux-kernel@vger.kernel.org, linux-can@vger.kernel.org, Oliver Hartkopp , michael@amarulasolutions.com, Amarula patchwork , Jeroen Hofstee , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Wolfgang Grandegger , netdev@vger.kernel.org Subject: Re: [RFC PATCH v3 8/9] can: slcan: add support to set bit time register (btr) Message-ID: <20220728125734.1c380d25.max@enpas.org> In-Reply-To: <20220728105049.43gbjuctezxzmm4j@pengutronix.de> References: <20220726210217.3368497-1-dario.binacchi@amarulasolutions.com> <20220726210217.3368497-9-dario.binacchi@amarulasolutions.com> <20220727113054.ffcckzlcipcxer2c@pengutronix.de> <20220727192839.707a3453.max@enpas.org> <20220727182414.3mysdeam7mtnqyfx@pengutronix.de> <20220728090228.nckgpmfe7rpnfcyr@pengutronix.de> <20220728105049.43gbjuctezxzmm4j@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-can@vger.kernel.org On Thu, 28 Jul 2022 12:50:49 +0200 Marc Kleine-Budde wrote: > On 28.07.2022 12:23:04, Dario Binacchi wrote: > > > > Does it make sense to use the device tree > > > > > > The driver doesn't support DT and DT only works for static serial > > > interfaces. > > Have you seen my remarks about Device Tree? Dario, there seems to be a misunderstanding about the Device Tree. It is used *only* for hardware that is permanently attached, present at boot, and forever after. Not for dyamically added stuff, and definitely not for ldiscs that have to be attached manually by the user. The only exception to this is if you have an embedded device with an slcan adapter permanently attached to one of its UARTs. Then you can use the serdev ldisc adapter to attach the ldisc automatically at boot. If you are actively developing for such a use case, please let us know, so we know what you're after and can help you better :) Max