Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6193197iog; Thu, 23 Jun 2022 13:20:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vB1JGgl673rXazH+Km4t9PbYuP22dLGrekZ6nrQX3zKADedCsEaCl1G76N8vQrVSV4/iWB X-Received: by 2002:a17:907:9719:b0:722:e6cf:128 with SMTP id jg25-20020a170907971900b00722e6cf0128mr10209566ejc.98.1656015614849; Thu, 23 Jun 2022 13:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656015614; cv=none; d=google.com; s=arc-20160816; b=LyI8ozjpV5DAQ7cHv3jceZ9wunSUyVx3lP4su8dX7IbR2fyGHwCvbH+WSOfKAUWOax dhxlTySkmqHVULfg40MNIati2iTQ6xqE7VldX6ePhljsN3eHc7GhduXlVpFFKfVXGBmZ J80fVWI//FsYd7dRDz0sior/B15QsNcjKEMl0sWuYIkZn7K4ptBJjTOoOpUT1xrOWT2P voRSqNq4cg3Ug1i341VmcSBhAALYnu+2XvtV4/nsUQGKCxlAvLxsQux1M+N8eMhHLHlF 7R2UtsGFYBt+/5Zg8yhCvDk7UeeJ87LfgBMnRQ/oAmEBLUw4v9kiGF1qk5d3f86nAScw CYKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=nY3T1c4qM2yuOPGpKm22MzL3Dp3XOLAxfo8t3uAnMW0=; b=pO9kYWDwNqs7nDbOjeauqcAt2fEKyViT0niqt8SBv3XMPZq8+1CKSYs2O9sp1aEZUp IK36zRCh/rOFBXy0Z6JlDteAzm7pUqezMWMr1Ux5bKLIfBVuF89F4uMiUTx/mfIVvKvL 5YIBb2lR8pfkCSSmZGnVTqAmB9TB0g5R5QXO9N3ZXW2NIXrHp3vFCrI1zlqSdpli6FeC z0Id4SzL/XybrQWWbVALslxD+EBrH8N3jJg4OKbctO+NYrO5lT3j3EM7k70XzcQmD92+ ZD6e/TUkOwI7AsRPrA7jHMUbl354rwtVaxyJnmQR7sloSE2jTamGcV3CMlU7Y+A/ed6z dbDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=JhLO6qnJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb11-20020a1709076d8b00b006fe8fdac65dsi44654ejc.745.2022.06.23.13.19.48; Thu, 23 Jun 2022 13:20:14 -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; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=JhLO6qnJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229592AbiFWURt (ORCPT + 99 others); Thu, 23 Jun 2022 16:17:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbiFWURs (ORCPT ); Thu, 23 Jun 2022 16:17:48 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D22CE527E1; Thu, 23 Jun 2022 13:17:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656015429; bh=nY3T1c4qM2yuOPGpKm22MzL3Dp3XOLAxfo8t3uAnMW0=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=JhLO6qnJxCl0lmcSHO6IKOx03XJ3Fz7SXGOquKNagpFHTkwZGNUyXJ3dy11kr2JPC vpxOEePRoXsleVtG3vIldIcF42WgH1HLdkYkjwcbMGnhbDQIyZ59ctm9kH8IR9BNcU 2zQTa3x1v/49WlIr+r1OC8WNrUkELMq1V4h22P64= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.0.33] ([46.223.3.134]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MqJqN-1nIoS62r3r-00nRIC; Thu, 23 Jun 2022 22:17:09 +0200 Subject: Re: [PATCH 5/8] dt_bindings: rs485: Correct delay values To: Andy Shevchenko Cc: gregkh@linuxfoundation.org, jirislaby@kernel.org, ilpo.jarvinen@linux.intel.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, vz@mleia.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, lukas@wunner.de, p.rosenberger@kunbus.com, Lino Sanfilippo References: <20220622154659.8710-1-LinoSanfilippo@gmx.de> <20220622154659.8710-6-LinoSanfilippo@gmx.de> From: Lino Sanfilippo Message-ID: <6c50fdca-aac4-aaf5-ad34-18a60fcc0aa0@gmx.de> Date: Thu, 23 Jun 2022 22:17:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Xk8oEt/xNT1GDPlq/rAOTCmrF9KpcAvXJypRogcgblZ/lBlQDNG V5hmtsdw9JALPfQi8KdnUe/KpwuzryvlCwVJpHDFvU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EjnY5yACTGCI2U3Vfhi+2RIYQ2iFTOHd6vXEzLgIn5x1cys6yai+9BLj9w+yL+NtkV8J5XRr on5VjGXm4a2r3AQlfxUdsjPT/gU+HEcjwrLHDfiQbafTqF/8+hSwztoZHYPsZhplheFiaYr6p sg1DvZsnTtfMzpZ9tZtiGojeU65V4LFbE6oZekXWaVik0dIs+PZe8bpMdgR9yqZWnsKmW/2tP d0ceY7t+raWJymXSgWmspGPtRAtCQ7UrwYqJj1qiILNzX8EgJ88i3LsHg== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,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 23.06.22 at 18:29, Andy Shevchenko wrote: > On Wed, Jun 22, 2022 at 05:46:56PM +0200, Lino Sanfilippo wrote: >> From: Lino Sanfilippo >> >> The maximum allowed delay for RTS before and RTS after send is 100 ms. >> Adjust the documentation accordingly. > > > Is it only documentation issue? If the code allows this to be set higher > than 100, we may not change the documentation since this an ABI (from > firmware <--> kernel perspective) we need to support old variants. > Well currently the documentation claims that a maximum of 1000 msecs is al= lowed but nothing actually checks the values read from device tree/ACPI and so it is= possible to set much higher values (note that the UART drivers dont check the delay= s read from DT/ACPI either, the only exception I found is max310x which clamps it to 1= 5 ms). We already have a maximum of 100 ms defined for RTS delays set via TIOCSRS= 485. To be consistent with TIOCSRS485 the same limit is used for DT/ACPI values in th= is patch. I am aware that this changes the firmware/kernel ABI. But we had a similar= situation when the sanity checks for TIOCSRS485 were introduced (see https://lore.kernel.org/all/20220410104642.32195-2-LinoSanfilippo@gmx= .de/) since before we did not have those limits for all drivers (some drivers cl= amped the values itself but many did not care). Furthermore 100 ms is already a very high value for RTS delays (which are = usually rather in usecs range). So IMHO the risk is very low to break anything when value= s are clamped that are higher than that. Regards, Lino