Received: by 2002:a05:6512:e85:0:0:0:0 with SMTP id bi5csp52584lfb; Wed, 29 Jun 2022 17:11:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u73YIDNFnK4AQjhQuG9FR3O/lPX4K6HO3Mlk1WFeR1VDRYdFgCNIlbE0PsGPrdu9xYGp8N X-Received: by 2002:a17:907:6e1e:b0:726:be5e:7130 with SMTP id sd30-20020a1709076e1e00b00726be5e7130mr6116546ejc.381.1656547901500; Wed, 29 Jun 2022 17:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656547901; cv=none; d=google.com; s=arc-20160816; b=xEeQ4wxBVXN++2qwlHpxYLdm4Ak7YQCztF8Qw1S7SotblgqnQdOW/jUNFM03ZhFAAZ CWh9+4cJenqh/QyMC/dYgsyHt6wyYDpRmuSF8DFZmLdSv29jS4GAHaZRh15urB9rffsB M3TTDOl392CrYopsrpvOv2zXT0nM/VjZIRlHK6ZxopIGRKlwHK9RNN+CLqF+YAEwQGW1 6s5aBOiAKkbo0gHzmQ47LgWEmMHBzGRs6QFQhBSjMmzrytHqH/BwyT0y0yNIBcyRQBvK wr3DGx6erabBU9tQ1DWI0otYG+xTiQPmxY2BNSuuNQc2gNarslQCFjzluKq0uDLpKDV6 kDwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3fAg27+TCAw935xSDUf+S6VcS1ZLQuQxlwYS7A2za84=; b=atDKm/RDInXwCmEG8xoc43M57zbiwBjNaBEPyEW4udg6ewCODyYGs3gZVZd12IFKI1 N28IyoNeGM0sSXjzAeWPhvKQNgR6x028+hf/55ruY9AjnyPmeOf6ihqi5DZ1OReORQL7 Kybg/PcFoXstY1oLAjXO49TER3TXMVFLHvdsGlYmroVCnCBJmxPDv6iG6gc6XK8N23zi UlMtRh5/s9O5UovahURNpAMDEq+ZvPyqS+76hP3pIEpWAVI/1fhRwECA0jmTuNdhO78J w2BkgL9zWDoIEKUmkid8zcfUXVxwenPRyYucsu3Pfe5DMPxQ2ACa9gWitA9Q1dFrTDmt FzRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=iSY0fJxe; 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 hw8-20020a170907a0c800b007269e67e7ffsi14985966ejc.544.2022.06.29.17.11.16; Wed, 29 Jun 2022 17:11:41 -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=iSY0fJxe; 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 S231705AbiF2Xuy (ORCPT + 99 others); Wed, 29 Jun 2022 19:50:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231268AbiF2Xux (ORCPT ); Wed, 29 Jun 2022 19:50:53 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A1A02127D; Wed, 29 Jun 2022 16:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656546616; bh=3fAg27+TCAw935xSDUf+S6VcS1ZLQuQxlwYS7A2za84=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=iSY0fJxeUoYgeraRF5pU84ACgeNNYEIdDyIVDzPYoSK+S04RySZMwDCee0Y1XZ3fO QtGFsc4ok3UligJELeTtb7gdV1Ooop60fvJ3vEE7gf3MIzsptDYqrQakVR+O0yO19Q NhWenWfpcGtMD9PmpNRwL6Q7YLMSWp40wldGZjXU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.0.69] ([46.223.3.23]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MlNpH-1nLVeX1rrB-00lmRo; Thu, 30 Jun 2022 01:50:16 +0200 Message-ID: Date: Thu, 30 Jun 2022 01:50:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 5/8] dt_bindings: rs485: Correct delay values Content-Language: en-US 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> <6c50fdca-aac4-aaf5-ad34-18a60fcc0aa0@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:0QiSyAhlTJ7TDzjUjKCzFvaXoizpF1kJducC6AZQT6WWrjML4TL p27AQCym8UlP5l+kLh7vPVARmEuw10GVbP6LJL3fulDLklJj2ED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H/BvH5eGXkvlEItPymKZ0kQjm+z+Bwksvxu+0wD08nENjUTddv8lXVR7G VIxeHkjkKQWcrfq/EnR3qlPu3NxaCfRn8+y0IwoQpwH8s6BebzX8ekipWRey7kbfNUHvp1ZcJ fZt0dXCeHBvfRunjQNcszYT3cgpk3S0rT9Pamcs6iIb51vxvge+kKOQNBR0h4/pM0uMFg095p IEhuOVK28tPlA4+HiHkAlqnKgDrPVm+THmRB9qlxhhUlSBcsyGR+ONRtQ== 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 28.06.22 12:03, Andy Shevchenko wrote: > On Thu, Jun 23, 2022 at 10:17:06PM +0200, Lino Sanfilippo wrote: >> On 23.06.22 at 18:29, Andy Shevchenko wrote: >>> On Wed, Jun 22, 2022 at 05:46:56PM +0200, Lino Sanfilippo wrote: >>>> >>>> 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 high= er >>> 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= allowed 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 de= lays read from >> DT/ACPI either, the only exception I found is max310x which clamps it t= o 15 ms). >> >> We already have a maximum of 100 ms defined for RTS delays set via TIOC= SRS485. To be >> consistent with TIOCSRS485 the same limit is used for DT/ACPI values in= this patch. >> >> I am aware that this changes the firmware/kernel ABI. But we had a simi= lar 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= clamped the >> values itself but many did not care). >> Furthermore 100 ms is already a very high value for RTS delays (which a= re usually rather >> in usecs range). So IMHO the risk is very low to break anything when va= lues are clamped >> that are higher than that. > > You need to elaborate all this in the commit message to justify the chan= ge. > OK, I see. I will rewrite the commit message then to hopefully make the ra= tionale behind the time reduction more clear. Thanks, Lino