Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1576699pxp; Thu, 10 Mar 2022 08:05:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+/E2551roDOiOAxffI7BpnRDSzwW/4aYA6qaw+ROe4DYNGX3UZIUT6KiJ54zfS72xK2Lu X-Received: by 2002:a17:906:7f02:b0:6cf:86d8:c31c with SMTP id d2-20020a1709067f0200b006cf86d8c31cmr5025469ejr.518.1646928347744; Thu, 10 Mar 2022 08:05:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646928347; cv=none; d=google.com; s=arc-20160816; b=my8uotdQpJEUTe5vZ/3X/NrhhVZWLUBZUQmRkeddfe73C1i5UtGqWAFpBZfPRhBKkH dXNhY+lI1IiENNyIbv7ZXzPL95WRn8+/acqqyklYfp9IY1plio6jQ7N5b/5f36LOUqD6 hKUlZ8S/ZWjLLljlgXY31+QHy4w565qSuo9x9GYLkNlodE7G9/Ojqc4yTY/A+dHfeX8e 1ZQSG2dtIVv/qhnftccswaIweeGCom1ka2EaOmtz6Ul+siAJ4d+KyX2zJaxn/kcQzT05 KlhZc7a09UTaV5PHA6GgUE1CQ+lH/WkgX9W+e11eEsRlkLD+DDxAflRrzt10SQp5qQrT Uweg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rTKrEk/w1wKclUmYuIRSQHVYnUWnqKwhHvnUFFKvYos=; b=S/13z54KReavp2Wvh535sFdkQRn11drrXBruCjvqcu0SXpF9SLM5YcBLu5TKji++s4 sSSNWMtSOynJ6eDsm+Wv7UugyOiPvZKsRhCGcpWhv+kyVg+v8+zzFQR5clcchzfGNhjK 1OMyNmTobaypTdHtRp0A6URmNbDjDxZHBETfyaAPkK3Bbxmz937PrkY9m03bhupIzWCJ j9oe7Qs6ThNoNEICJTbgr3rnKGvcqabDU89tEmWW5hzn/RZxXLqy3lfkbB1W28J/MCEO m7pVJlmvOVXG+TIuy1vGrCVGNFMIEaTTqYHiv588NmZcWfSLv/Y3FrQYJTmFt93pDXo5 N4Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=G27wyBmW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d6-20020a50cf46000000b0041691b601fdsi3840933edk.260.2022.03.10.08.05.22; Thu, 10 Mar 2022 08:05:47 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=G27wyBmW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242831AbiCJOMF (ORCPT + 99 others); Thu, 10 Mar 2022 09:12:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242756AbiCJOLZ (ORCPT ); Thu, 10 Mar 2022 09:11:25 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 730F2137012; Thu, 10 Mar 2022 06:10:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646921423; x=1678457423; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=Vi9TQW28iAGVT+9VTJCeUAtR3L2XgA27dHLozP1I8zM=; b=G27wyBmWvNEAVSPYPdfrwrw+qFtSOgN9J0kMPS6K/D+VmhuYIzqR1hbC p9bJdKmSO6uC8JCtOBta+bjGdVF+yIluIHkAi1VYR23x6XUKsLfIbWQUx 8vbvo20B+2ak6a7Uav7VcfPjbUHU7Jc+Bb66v0a6QDuuCXDHyGikMH9UW Fczl5/I3uDFul2r3tp176PE3A3q63e/J7OzLrDmd6TuLLSycxbCud80oQ 9I2bOGvifIglHMBsvwzyESSnITNeg8Uar+8S8KZUbKv6h/BKsix/9ianu 0lA3j+sZ1VoUOkGAmoQ/FC3BmimF5cRcludSbtHSMJ0k3JwbGK35jpcQH g==; X-IronPort-AV: E=McAfee;i="6200,9189,10281"; a="279993773" X-IronPort-AV: E=Sophos;i="5.90,170,1643702400"; d="scan'208";a="279993773" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 06:10:23 -0800 X-IronPort-AV: E=Sophos;i="5.90,170,1643702400"; d="scan'208";a="642568750" Received: from smile.fi.intel.com ([10.237.72.59]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 06:10:15 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nSJTv-00EjUS-6x; Thu, 10 Mar 2022 16:09:31 +0200 Date: Thu, 10 Mar 2022 16:09:30 +0200 From: Andy Shevchenko To: Lukas Wunner Cc: Ilpo =?iso-8859-1?Q?J=E4rvinen?= , linux-serial , Jiri Slaby , Greg Kroah-Hartman , LKML , Johan Hovold , 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: References: <20220302095606.14818-1-ilpo.jarvinen@linux.intel.com> <20220302095606.14818-7-ilpo.jarvinen@linux.intel.com> <20220306194001.GD19394@wunner.de> <20220309190521.GA9832@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220309190521.GA9832@wunner.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 09, 2022 at 08:05:21PM +0100, Lukas Wunner wrote: > On Mon, Mar 07, 2022 at 11:48:01AM +0200, Ilpo J?rvinen wrote: > > On Sun, 6 Mar 2022, Lukas Wunner wrote: > > > On Wed, Mar 02, 2022 at 11:56:05AM +0200, Ilpo J?rvinen wrote: > > > > 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. > > > > It could if it is agreed that serial multipoint addressing is just > > a thing in RS-485 and nowhere else? In that case, there is no point > > in adding more generic support for it. > > It's just that the above-quoted sentence in the commit message > specifically mentions RS485. If you intend to use it with RS232 > as well, that should be made explicit, otherwise one wonders why > it wasn't integrated into struct serial_rs485. > > I have no idea how common 9th bit addressing mode is with RS232. > Goggle turns up links saying it's mainly used with RS485, "but also > RS232". Since RS232 isn't a bus but a point-to-point link, > 9th bit addressing doesn't seem to make as much sense. In my student years I have an exercise to use 9-bit addressing mode on RS232. Obviously I forgot all of the details, but I remember that that has a practical application. -- With Best Regards, Andy Shevchenko