Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3780842rwb; Tue, 20 Sep 2022 04:48:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Rs4r/rplTimQGKdYwpQizZ5pGys8txsVBd++UPNWofJVC7WoNvhM13spWRCt9MxuFdRwS X-Received: by 2002:a63:4f06:0:b0:439:5e9:3901 with SMTP id d6-20020a634f06000000b0043905e93901mr19285059pgb.126.1663674490956; Tue, 20 Sep 2022 04:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663674490; cv=none; d=google.com; s=arc-20160816; b=dtBhbRHB48qPg6rPQ30kw8ab5MfALQv3aQcmNdsOtlq6CbbV3u0rwRBRpkxJA1fTXC 6DES0nxj35FqXRz4tf5EDV/kMIPmFNy1lKxX9opc8ym+toWe9dETNKyzOk/Fdg3KJeVz VquAjDB0F9bFHfk8ZJLKUtJT3G0O+NpnZplFMlK0/3Vq0uateRxZCPfkSnKYt9sHmT8+ BHfIeh9mzbpQSh5zsqM2O1ly1IT4rDsf2PleoY/Tov8T192PdPSOg67X3C0vvw6QnRsQ sYWnyzibjtI0/Mj0Gu1gwdfP+lJxOmW8HCPG7tEvp2PSysQ8vXGs0//qxIVzkCEQmjYO jPhQ== 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=QAhQa5wYewXTYjIFjXJyMZzcZZbYkbllsQR3ukA7UwE=; b=teOe8T4qnHmXIvzJwlD10YPA73GJq/7cx3UbPgtXAOPJcJUXc6Ri5r/uBfHmSC1sXS 9Y9WhLk5j/ZaAG7WTRvnHuAUEsJBvi4IAQhrrSXKFeuzog68fShsTNTI2QB7pHeS15lW mtB0BRWzRy8WGm86WptFpZaPxjs0iD7rMDqca77o3EMAzgWjz6Or0kOsTLGR8XLuHU48 lcSVXDCtZPJDd2bXso6svqO9e5434TxSZqkisgTN+2BaXU4oMmAKJMHO8LrSN0bFr1CC +NDu9yXBHcF00FrTy9alphyq3iUUwELb+/TOnW0XTYkKxFHDPQAv320tGdrb40K9zmu4 t4iw== 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 u10-20020a62d44a000000b00537280a2fc4si1406728pfl.231.2022.09.20.04.47.58; Tue, 20 Sep 2022 04:48:10 -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 S229905AbiITLUT (ORCPT + 99 others); Tue, 20 Sep 2022 07:20:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbiITLUR (ORCPT ); Tue, 20 Sep 2022 07:20:17 -0400 Received: from bmailout2.hostsharing.net (bmailout2.hostsharing.net [83.223.78.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 776FB32D98; Tue, 20 Sep 2022 04:20:15 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by bmailout2.hostsharing.net (Postfix) with ESMTPS id 84EF2280F3D8F; Tue, 20 Sep 2022 13:20:11 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 7AB6B27C89; Tue, 20 Sep 2022 13:20:11 +0200 (CEST) Date: Tue, 20 Sep 2022 13:20:11 +0200 From: Lukas Wunner To: Ilpo =?iso-8859-1?Q?J=E4rvinen?= Cc: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , Jonathan Corbet , Arnd Bergmann , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Andy Shevchenko , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Lino Sanfilippo , linux-api@vger.kernel.org Subject: Re: [PATCH v9 5/6] serial: Support for RS-485 multipoint addresses Message-ID: <20220920112011.GA7187@wunner.de> References: <20220624204210.11112-1-ilpo.jarvinen@linux.intel.com> <20220624204210.11112-6-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: <20220624204210.11112-6-ilpo.jarvinen@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE 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 Fri, Jun 24, 2022 at 11:42:09PM +0300, Ilpo J?rvinen wrote: > ADDRB in termios indicates 9th bit addressing mode is enabled. In this > mode, 9th bit is used to indicate an address (byte) within the > communication line. ADDRB can only be enabled/disabled through > ->rs485_config() that is also responsible for setting the destination and > receiver (filter) addresses. [...] > --- a/include/uapi/asm-generic/termbits-common.h > +++ b/include/uapi/asm-generic/termbits-common.h > @@ -46,6 +46,7 @@ typedef unsigned int speed_t; > #define EXTA B19200 > #define EXTB B38400 > > +#define ADDRB 0x20000000 /* address bit */ > #define CMSPAR 0x40000000 /* mark or space (stick) parity */ > #define CRTSCTS 0x80000000 /* flow control */ > You may want to consider submitting a patch to the Linux man-pages project to document the newly introduced bit: https://www.kernel.org/doc/man-pages/patches.html https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/man3/termios.3 Thanks, Lukas