Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1075267imw; Tue, 5 Jul 2022 03:24:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vsdhBH6dfjtQjplXSDpkE6waZ7s5cW16+lq1saIVaheEu+D+2wT0JJVesFIfzJ0GHqy6z1 X-Received: by 2002:a05:6402:50ce:b0:435:9249:dfe9 with SMTP id h14-20020a05640250ce00b004359249dfe9mr44642424edb.310.1657016660576; Tue, 05 Jul 2022 03:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657016660; cv=none; d=google.com; s=arc-20160816; b=O6gNQ9gkr3WXmi+lNgE7bLDx1rW0EJRpJKs+b6M8VrPckGLdIzZzPjnQGH0D8FXuun RtcaKpEp1ltmxSBh9zbtD9G9kWP0L8mRfDxV5oZTEnE7nkmPrAoqNbCBw+Jbbj+xP6Bd +03mfm2LIkH21cNcvJ4L4/iUhtfXSf35nFSuWtiW1pbrFv6PK3W3bx5WP55dnCPdabsA QCvsqYKul0eAgcORZcJYS8JOVT4Cz5zJ0hVcEp6By84HOv6BWZt6Wl64jTWRA4N+XOvu LwovhouH8xSWJcFclWvef5CkkygSTi5QNnappEqLH2Qec22XfiCSu6Xpd2One774wyME QyBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=GGY/aZjsPyu3ry32VukeCAdIVwAslwvzLYlxwxV3b8s=; b=cuex8kkCYXcqTA/EvxT/th7WU3aU5RTAdLBHbljPrLn6bMwA9PucXZ1LQEXix7Tp9O 3tcQltT8pAIyKCdPqMcfFvrbWqsrc4retgZjvgv967dCvxZ/Uzw0UM4gBNDSj9HxOCXQ UW6SX7IQTnZPiWe079TVyT6RHHVZrj9MKWB19XrIPE409QXdsWyjBpTe9/e4xgJTG7WV MSlpVboNpaQuiYxPmrPfj8BUhDtt7/cBhoesioPeAjmmvE3leZ+kJahL5o17Wu8qfJXN OD7l3/x/tJzbVHOvYTSqJydVfOeh9XXD9OFeB8yzjJA8RgxBW9297yY1kBsJ0xSIflBf 0sSA== 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 u23-20020aa7d0d7000000b0043a69ee06c0si1607279edo.68.2022.07.05.03.23.54; Tue, 05 Jul 2022 03: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 S232397AbiGEKQ3 (ORCPT + 99 others); Tue, 5 Jul 2022 06:16:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232395AbiGEKQX (ORCPT ); Tue, 5 Jul 2022 06:16:23 -0400 Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A4E11401A; Tue, 5 Jul 2022 03:16:23 -0700 (PDT) Received: by mail-qt1-f178.google.com with SMTP id q16so12959750qtn.5; Tue, 05 Jul 2022 03:16:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GGY/aZjsPyu3ry32VukeCAdIVwAslwvzLYlxwxV3b8s=; b=xiXFdULn/SoViU6dtDEB9Bp02qC3kS438IpuZ5gKmhkCoKhANOAALMNfOO8qDiN45u 42JhM7GRuAZgrkjm88Zkoghr8i3Dcrbys/u57PIBaCychviosDBro/ZeCx3IsRn8TiAC 81Qz9tKIcyPn4Vi599MI9QEwLSyRRElqilgd8rSKJitGCEqlmiaaqNrjcuMpa5mDmuD1 YoRY4NIk6HsLbTPugwwdmuXaN+eDaoMIBy5gom7ORTUvK8HD/fAXucuB8OoRPMsjTQS1 RASVm2UmZsNJsZ0f2vhCR9vuwydnT4MuNyp2QLSptUiX8vxRJJ7HzQEXH1s/h0ZhteQf pRrw== X-Gm-Message-State: AJIora8OMNZL3tJfRjjARxHTDq6jh5GtF7HO09rouUNRTypkHcMgRK0v SC0ftrtAAZtEfXIzW+KoD4yFXWT9uXadlA== X-Received: by 2002:a05:6214:20e6:b0:470:b4c7:7f96 with SMTP id 6-20020a05621420e600b00470b4c77f96mr30172046qvk.62.1657016182012; Tue, 05 Jul 2022 03:16:22 -0700 (PDT) Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com. [209.85.128.179]) by smtp.gmail.com with ESMTPSA id h9-20020ac85149000000b003050bd1f7c9sm22579319qtn.76.2022.07.05.03.16.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Jul 2022 03:16:21 -0700 (PDT) Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-31c8bb90d09so49979987b3.8; Tue, 05 Jul 2022 03:16:21 -0700 (PDT) X-Received: by 2002:a81:1090:0:b0:31c:9be5:6c95 with SMTP id 138-20020a811090000000b0031c9be56c95mr10404422ywq.384.1657016181297; Tue, 05 Jul 2022 03:16:21 -0700 (PDT) MIME-Version: 1.0 References: <20220618195031.10975-1-max@enpas.org> <20220627150557.qluqtejrddj5nfif@pengutronix.de> <20220627190126.4eb57a2b.max@enpas.org> <20220705094927.vgtxcjh4klw6dcg3@pengutronix.de> <20220705115613.69d32b22.max@enpas.org> In-Reply-To: <20220705115613.69d32b22.max@enpas.org> From: Geert Uytterhoeven Date: Tue, 5 Jul 2022 12:16:08 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v9] can, tty: can327 CAN/ldisc driver for ELM327 based OBD-II adapters To: Marc Kleine-Budde , Max Staudt Cc: Wolfgang Grandegger , linux-can@vger.kernel.org, Vincent Mailhol , Oliver Neukum , Linux Kernel Mailing List , Vincent Mailhol , Greg Kroah-Hartman , Oliver Hartkopp Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,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 Hi Marc, Max, On Tue, Jul 5, 2022 at 11:56 AM Max Staudt wrote: > On Tue, 5 Jul 2022 11:49:27 +0200 > Marc Kleine-Budde wrote: > > On 05.07.2022 11:43:52, Geert Uytterhoeven wrote: > > > So development started before commit cd6484e1830be260 ("serdev: > > > Introduce new bus for serial attached devices"). I guess that is > > > the reason why this driver uses a line discipline, instead of the > > > serial bus? > > > > > > I had a quick glance through the various revisions posted, and it > > > doesn't seem like anyone mentioned the serial bus. Would there be > > > any advantage in migrating to the serial bus? > > > > Does serial bus work with hot plug devices like USB Serial Adapters > > and/or devices that are not described in the device tree? Probably it cannot work with hot-plug devices yet. And devices must be described in some way (DT, ACPI), it does not support auto-detect. > This is indeed the reason. The device cannot be autodetected, as the > UART has no identifying information (USB VID/PID or the like, and don't > forget the BT variants) attached to it, hence the manual attachment. So you do need a description ;-) So far I've seen serial bus used with e.g. bluetooth and DT. I'm wondering if/how people use it with bluetooth connected to a hot-pluggable device like usb-serial. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds