Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2891848rdb; Sat, 9 Dec 2023 03:26:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGrndNchtmZ03+G0AM+jLrYM6fpcgE02KFJW0UhKNxi7ILj9/EzvwiSU81hNgiCBUeCPjfr X-Received: by 2002:a17:90a:f008:b0:286:6cc0:cae8 with SMTP id bt8-20020a17090af00800b002866cc0cae8mr1106108pjb.95.1702121207644; Sat, 09 Dec 2023 03:26:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702121207; cv=none; d=google.com; s=arc-20160816; b=lctxkbon08wZlrzgzUXsjg4jrlLKOiOGDvFh+5+y2WpNMhMkZm0mRpR72YXX7tl+U6 ZBr9up6Z+Ww/A1wuoi+P5/eXntqfkW/6OdQxhbRIFN4ARDyEbxQK9cnPVdWmKf9UDPVf xB7MQ86XIC5QJifnU7E4YxsJBAvJWBL/KtSfzCMXqemHZZycDU3Nuf/UmBj7CXVOrQ/M sCRPWSAdqV/hdaBCysY7+SYGCQXlP5ErLxQHaPGtTFWHhaN/hQd6XpopT6a5htmQjfxG iHyMmdCeym6+JzIbLIwfOpbwh5klmahDrP8Igi5RW5G11d5H8YIXEuPnLP3zJwYRH1iS Dlkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=J5v5o3QyecB7KNXH9Wu055mLuLJCcNOHZUr3n77NKIY=; fh=8PQ9Yo9TQyHTORcyBqF/G8f1uuYaODbuQbsbXuLeNp0=; b=bzmqg/4HLovaz2iE8r+Qo/rzWQ55+JDPKa6m+pvaJT8IMgfDEW2v0d+GbZB8hfrZpp ZCG+Afdd53E8pkmcZWNmDbUXwXLlHKtZLhAzQNDmcOc3tP6DV9nxIBPFuwqDmj7hVhAe g8cs16d4VS9S0kIxzQeUv1REPRwIMKwmqkfYy6AHX4xN5Ano5i366g1hXVOc3x32LS7N 9fZ5bg2vjrxFhhM/9gjlhi0x/BJmSTIXZOTFVxCwHzPX9Mqta1DiH/iZmKRm3FkFD//g Dhrtw0JqJV7/HQriWWCkxQrdSMVWtRGqb+T3JHN1V5T8tanPG96L5JV1MiZn53Iv7uay yGuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=ab2hKpIA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id f12-20020a170902684c00b001d0af27a7f6si2908847pln.623.2023.12.09.03.26.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 03:26:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=ab2hKpIA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 86786805E135; Sat, 9 Dec 2023 03:26:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230057AbjLILZN (ORCPT + 99 others); Sat, 9 Dec 2023 06:25:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjLILZL (ORCPT ); Sat, 9 Dec 2023 06:25:11 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A6D0E7; Sat, 9 Dec 2023 03:25:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1702121091; x=1702725891; i=linosanfilippo@gmx.de; bh=85evGRCJ3tCE0nbUckGUxFOChy15m1jRdB9q8Rfhw7U=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From: In-Reply-To; b=ab2hKpIALjqpW1/N6A3JhJrfll/qcmALE0stPvLHiOAt9HnTo6YO22Y2aShbbJ4a Hhjx6MqgwcpYCjaacCNOx0IZtR5Q5gekwsl/wJqfK6OT77Xt0qbfRQfzh8gSDR3+h ArKxyItqZptHfufLmr1gW5gpBG40pOmAO1ZBy+H7aOrMDhgNqttiQ7LBM/iKcZLuj xKOwY5oit7wYKhsaqq60KirKCs1vg54pjeMj/6wL0SBot+NF1wyQx8L7qRaZXMFjc 9dsP9mhAvkvkq1/+Y2EI1P+G1ypmZjbOXLJmSse9tIbr4blCVzgCJTxhmIokWQVEu fsNb5gpDWvGCIR9rfQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.2.42] ([84.180.3.177]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mlf0K-1rd2jw43BC-00inxw; Sat, 09 Dec 2023 12:24:51 +0100 Message-ID: Date: Sat, 9 Dec 2023 12:24:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] dt-bindings: serial: rs485: add rs485-mux-gpios binding Content-Language: en-US To: Andy Shevchenko Cc: Christoph Niedermaier , Lukas Wunner , Rasmus Villemoes , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-serial@vger.kernel.org" , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , "brenda.streiff@ni.com" , Crescent CY Hsieh , Tomas Paukrt References: <20231120151056.148450-1-linux@rasmusvillemoes.dk> <20231120151056.148450-2-linux@rasmusvillemoes.dk> <20231122145344.GA18949@wunner.de> <3b8548b1-b8a9-0c9e-4040-5cfda06a85c6@gmx.de> <5c140498-69e3-4187-8703-db0c41e7ca89@gmx.de> From: Lino Sanfilippo In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:BlNMhKf4hOn8nZ5VNdviNti3SIQY3MKvaRGu+LAugRLCx7QQqMT FFnqifRU8Kg2D9NDyUAGq5jkD0KCI9PlanSp/Jx0e3SoULmPRa8ER43IqXMCh/zadPNrwwk urE6NNOTrdD6s4k61J0eMU+LOtsSwbIAIkzSH9NpAZgY/4wGwDMmziLeI2CpMIc/ik7XQkd FEvSd+N9SqtfH6jhI+NPA== UI-OutboundReport: notjunk:1;M01:P0:v1c/O4aGaHQ=;zEVAzSrV+86469QKPHUQro+41JV /qoyx8SjuPwLqfJyP6x90+CMDemY2FAq0ESg+srcF7Dgitf3/dVynlwyT6rU9SYfQfCvMTCd4 VekXifIwSdvGU8G6mxD2MwpjH6EESwy4KECLfeWy5cRexsnVCfjRtFDHwmwgo7o4v4mLDXz/4 RbcCmNhHZ42XhYFc+IRHcHlvXisSZHZZ2lwxQqFE439M8/rZs+6s9/ryNNkTDG+z95G89ET5G BdSzOAM3vl595lH7FcHhEuhQEZ2T0ziGNzYdx9Iw0RpugAMzTju+zHD+PBSBRX1L0AXUnZCpq cHhvT+yThbrL35RGvVQZBVw4rR8xYN0AH1dKSIDBu8QXKne6EBj+vC3G1Q/gWu2odF33rqXmb txPsGqS87bVtgmKUtdpsKuv4fQFw1wpEmnaQtb/wdhDLvYvUylplfLgZDHHSZcO/FKwXfzvu0 6ElximgXokwcd1lqijAWVHosMnSpTl8OJv4P1/rSA+VuvwmyfUL3q/sPrFLZpkZZ/Jr7+o6+d +r8GN0pxz8PLAfWlscKq/iC1u4aJnHRH1nGXb/OE0+FN2wmbtUpow/XMFvDWEWquUvu1Cvrgh Ln5xPC2UT04sMJFrVmlnpGdbjj2m2J5bpKa5JViOJhSfox4lbdNHUnm1O/hJAvYcFlVSArtF/ xYXXS/lMFCEAqWF7R8fveABYZOUQpJgJFVnUJbQv+DLGAcU4wFPYRMP0LesLJWCjv5t6ZeO55 k/gSe3+GWU3VWq6qAKD7ZfjVKtjuVYh5di1y68WmdbxVOL2mZxYs6btYw3hxnp1jlLUogN/yy 5kbNJVIET6sAkK0nGoFUHgwRm3lH4tWBTrv8rELqqvAfeb8xWDzG2F11Eb1dO8NeaLyelTt9B A1nxEtC1yAUSABKG7kMsqRCdE0xt8Wdtvoz/GhYi/ahUU0/YA72+fWXvGIaCO1YY2Y3JoOSHw 6sfiEovtkyv1dmgC8LUdhGWCjSk= X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sat, 09 Dec 2023 03:26:01 -0800 (PST) Hi Andy, On 07.12.23 13:35, Andy Shevchenko wrote: > On Wed, Dec 06, 2023 at 04:42:53PM +0100, Lino Sanfilippo wrote: >> On 27.11.23 13:14, Christoph Niedermaier wrote: >>> From: Lino Sanfilippo [mailto:LinoSanfilippo@gmx.de] >>> Sent: Sunday, November 26, 2023 12:40 AM > > ... > >>> RS-485 (2-wire NO RX_DURING_TX): rs485->flags =3D SER_RS485_ENABLED|SE= R_RS485_MODE_HALF_DUPLEX >>> RS-485 (2-wire RX_DURING_TX): rs485->flags =3D SER_RS485_ENABLED|SE= R_RS485_MODE_HALF_DUPLEX|SER_RS485_RX_DURING_TX >> >> I think we can omit the SER_RS485_MODE_HALF_DUPLEX flag if we assume th= at >> a missing SER_RS485_MODE_FULL_DUPLEX means half duplex (i.e. controllin= g >> the RTS line). > > You should be very careful on these assumptions, i.e. one must to check = _all_ > existing user space tools (at least that are in use / supplied by main d= istros) > on how they behave. > Until now the DUPLEX flags do not yet exist, so existing userspace applica= tions are not concerned. Christoph suggested to introduce two flags to distinguish betwe= en a FULL duplex and a half duplex RS485 mode. My point was that we do not n= eed the flag for half duplex, since this would be the default. BR, Lino