Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1529532pxp; Sun, 6 Mar 2022 18:13:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyi6ey6m2lhQo3GxjPjM9ou201s07LLHSYEPzg1Kt1pbVoG/5WmVvoJccT3AVyLqEs0ZZHz X-Received: by 2002:a63:d218:0:b0:380:64e0:c4e8 with SMTP id a24-20020a63d218000000b0038064e0c4e8mr583487pgg.320.1646619203423; Sun, 06 Mar 2022 18:13:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646619203; cv=none; d=google.com; s=arc-20160816; b=fFoj1SqCKKDvjVoPUD+0BzWhGYD8Oqwn7L+Nr6d3qmlCZQ2K6ttfZP2ay+ZrltQrMo N2pFysbAQ69SalyNrtoiPImkzva8byo+b/GKidUE6emsGs2zn+MMz3IJ6z8viB1LTb9v a83O7fcmZAhwKzNRuHD+Uz8peVaEW04Ab/c7GF9qB33FiQq3CBQNCnl9iiU1DoauSIJq NjZTUWQQUdpKo91r1Mr1CtOa0AFD9eE7tgqaDMc4sV7Xzahr+4ro2rlMu7TXb+mAsCrl NQHIVmCRJXZMcxclXs1DYLzH/lHQGS8PaDW7vuXn+rQrWLNeGNm87CKWcJfKD7NUhxB3 xbnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=OcDsARewXWGBhiIWuLHCqE6nGCM9K+o2YfxXAzLD7e8=; b=BPZpQMabT7ItLkxkKSbRYdSMs2AZEYronJQIlOHMHibKttMyFUL5h2UOEk1o0SegxW nx1XdCdTaPrf2BLtYwIfjMQrOqcdcRI4tNihrjQYSJTYEA0zqvpzgsWFyqRJct48Y9qp bm9oob+1x6E+R5uT7OlxDRnTp6v+p+uxA5KJIPjiY51fzgxpFvgroGLeqRWslFHV87xn swI5v5tAfwEM45ARqrSjikADHI2MAUSxTD+mZujH808eQRemflxnx/PAW3dAgMhipz2A oGdm1W1gAfb7vNmwzIDAXvjvv3iK7Glb9MmTQDPWrN84VXcbdZjQaAwabwUu91X2Vkjb gjcw== 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 q6-20020a17090a938600b001bd14e01f91si5997216pjo.127.2022.03.06.18.13.02; Sun, 06 Mar 2022 18:13:23 -0800 (PST) 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 S234144AbiCFTk7 (ORCPT + 99 others); Sun, 6 Mar 2022 14:40:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbiCFTk5 (ORCPT ); Sun, 6 Mar 2022 14:40:57 -0500 Received: from bmailout3.hostsharing.net (bmailout3.hostsharing.net [IPv6:2a01:4f8:150:2161:1:b009:f23e:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CB2921E38; Sun, 6 Mar 2022 11:40:04 -0800 (PST) Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id B3C27100D9417; Sun, 6 Mar 2022 20:40:02 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id F33A644C28B; Sun, 6 Mar 2022 20:40:01 +0100 (CET) Date: Sun, 6 Mar 2022 20:40:01 +0100 From: Lukas Wunner To: Ilpo =?iso-8859-1?Q?J=E4rvinen?= Cc: linux-serial@vger.kernel.org, Jiri Slaby , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Johan Hovold , Andy Shevchenko , Heikki Krogerus , linux-api@vger.kernel.org, Richard Henderson , Ivan Kokshaysky , Matt Turner , linux-alpha@vger.kernel.org, Thomas Bogendoerfer , linux-mips@vger.kernel.org, "James E.J. Bottomley" , Helge Deller , linux-parisc@vger.kernel.org, Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org, "David S. Miller" , sparclinux@vger.kernel.org, Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org, Arnd Bergmann , linux-arch@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [RFC PATCH 6/7] serial: General support for multipoint addresses Message-ID: <20220306194001.GD19394@wunner.de> References: <20220302095606.14818-1-ilpo.jarvinen@linux.intel.com> <20220302095606.14818-7-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220302095606.14818-7-ilpo.jarvinen@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Wed, Mar 02, 2022 at 11:56:05AM +0200, Ilpo J?rvinen wrote: > This patch adds generic support for serial multipoint > addressing. Two new ioctls are added. TIOCSADDR is used to Nit: "This patch adds..." is superfluous. Just write "Add ..." in imperative mood. > This change is necessary for supporting devices with RS485 > multipoint addressing [*]. If this is only used with RS485, why can't we just store the addresses in struct serial_rs485 and use the existing TIOCSRS485 and TIOCGRS485 ioctls? There's 20 bytes of padding left in struct serial_rs485 which you could use. No need to add more user-space ABI. > [*] Technically, RS485 is just an electronic spec and does not > itself specify the 9th bit addressing mode but 9th bit seems > at least "semi-standard" way to do addressing with RS485. Is 9th bit addressing actually used by an Intel customer or was it implemented just for feature completeness? I think this mode isn't used often (I've never seen a use case myself), primarily because it requires disabling parity. Thanks, Lukas